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.
| Roma | Pencil Box | |
|---|---|---|
| Stylesheet | roma.css | pencil-box.css |
| Script | roma.js | pencil-box.js |
| Prefix | tl- | doi- |
| Tokens | tokens.css, themes Light, Dark, Tomato | themes Dark, Light, Blue, Yellow |
| Figma | Roma | Pencil Box |
Component map
Every Roma component and its Pencil Box counterpart. The class names match apart from the prefix.
| Component | Roma | Pencil Box | Docs |
|---|---|---|---|
| Button | tl-button | doi-button | Button |
| Text input, Field | tl-input, tl-field | doi-input, doi-field | Text input |
| Checkbox, Radio, Toggle, Choice | tl-checkbox tl-radio tl-toggle tl-choice | doi-… | Selection controls |
| Tag, Badge | tl-tag, tl-badge | doi-tag, doi-badge | Tags and badges |
| Provenance label | tl-provenance | doi-provenance | Tags and badges |
| Audio, Video, Gallery | tl-audio tl-video tl-gallery | doi-… | Media players |
| Button, Emphasis variant | tl-button--emphasis | doi-button--emphasis | Button |
| 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 head | tl-running | doi-running | Running head |
| Textures | tl-pattern | doi-pattern | Textures |
| Icons | tl-icon | doi-icon | Icons |
What stays in the flavor
Some things belong to one brand and are not part of Roma.
| Where | What | Why |
|---|---|---|
| Pencil Box | Broadcast 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 Box | Four infographics: the attention map, the column bubble chart, the starburst and the 3D bar chart | They 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. |
| Roma | Animated logo (tl-logo-draw) | The Tomato Lab logo drawing itself. |
Keeping them in step
When Roma gains or changes a component:
- Change
roma.css(androma.jsif it has behavior) and document it here. - Copy the change into
pencil-box.cssandpencil-box.js, swappingtl-fordoi-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. - 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.