Tomato Lab Graphic Standards

Ask hello@tomatolab.org for access.

Roma, the design system, is open to everyone: Using Roma.

Tomato Lab Graphic Standards

Roma

Flavors of Roma

Edit this page

Roma is the parent system. Pencil Box, the Department of Information's interface layer, is its first flavor: the same components and states, dressed in different tokens.

How the two relate

Roma is the source. A flavor starts as a copy of Roma with its prefix swapped (tl- becomes doi-), then changes only values: the palette, the default theme, a corner radius, the reading face. A component is added or fixed in Roma first, and then the flavor takes the change.

RomaPencil Box
Stylesheetroma.csspencil-box.css
Scriptroma.jspencil-box.js
Prefixtl-doi-
Tokenstokens.css, themes Light, Dark, Tomatothemes Dark, Light, Blue, Yellow
FigmaRomaPencil Box

Component map

Every Roma component and its Pencil Box counterpart. The class names match apart from the prefix.

ComponentRomaPencil BoxDocs
Buttontl-buttondoi-buttonButton
Text input, Fieldtl-input, tl-fielddoi-input, doi-fieldText input
Checkbox, Radio, Toggle, Choicetl-checkbox tl-radio tl-toggle tl-choicedoi-…Selection controls
Tag, Badgetl-tag, tl-badgedoi-tag, doi-badgeTags and badges
Provenance labeltl-provenancedoi-provenanceTags and badges
Audio, Video, Gallerytl-audio tl-video tl-gallerydoi-…Media players
Button, Emphasis varianttl-button--emphasisdoi-button--emphasisButton
Chart kit: charts, infographics.chart, charts.js (6 types), TL_D3 in d3-charts.js (6 charts).chart, charts.js, DOI_D3 (10 charts)Chart kit
Running headtl-runningdoi-runningRunning head
Texturestl-patterndoi-patternTextures
Iconstl-icondoi-iconIcons

What stays in the flavor

Some things belong to one brand and are not part of Roma.

WhereWhatWhy
Pencil BoxBroadcast interference (doi-broadcast)The look of the Department's 1980s public-access television station: scan lines and a colored fringe. An archival effect, not an interface component.
Pencil BoxFour infographics: the attention map, the column bubble chart, the starburst and the 3D bar chartThey are drawn around Department stories (offices, anomalies, the post office, intern excuses). Everything else in the kit is shared, with each brand's own filler data.
RomaAnimated logo (tl-logo-draw)The Tomato Lab logo drawing itself.

Keeping them in step

When Roma gains or changes a component:

  1. Change roma.css (and roma.js if it has behavior) and document it here.
  2. Copy the change into pencil-box.css and pencil-box.js, swapping tl- for doi- and Roma’s color roles for the Department’s. Corner radii, the reading face and any value that is the flavor’s own stay as they are in Pencil Box.
  3. Make the same change in both Figma files, with the same names.

A component that only exists in a flavor should be proposed to Roma first.