Repeated component creation
Teams recreate familiar controls instead of building on a shared foundation.
PRODUCT ECOSYSTEM · DESIGN SYSTEM
Onefold — One system. Multiple product identities.
Every new product seemed to introduce another version of the same component. Different visual treatments, inconsistent interaction behaviour, and repeated design effort. The problem was not a lack of components. It was the lack of a shared system.
Onefold is that system, and a studio for using it. A shared component foundation, consistent interaction principles, and configurable design foundations support four product identities without rebuilding the interface. The studio is where those decisions can be tried, themed, and handed on.
02 / THE PROBLEM
Across a multi-product environment, familiar components can slowly become separate implementations. The visible differences are only part of the problem: structure, states and interaction rules can drift too.
Teams recreate familiar controls instead of building on a shared foundation.
Colour, radius and typography choices diverge across products, even when the interface serves a similar purpose.
Common patterns are copied and adjusted independently rather than composed from reusable parts.
Focus, disabled, loading and destructive states can behave differently from one component to another.
Without one catalog, a designer, a developer, or an agent has to rediscover the same rules.
03 / THE DESIGN CHALLENGE
Component anatomy, interaction behaviour, accessibility expectations and reusable patterns.
Product theme values such as primary and accent colours, neutrals, typography and base radius.
Specialised experiences and functionality that do not belong in a shared foundation.
The theme, the component, and the catalog. Switch an identity, edit a real control, share that preview, and read the same list from a script.
04 / MY ROLE AND APPROACH
I defined the system specification and the design contract, and I built the studio that runs it. The studio is the place those decisions can be tried. I am not claiming a published package, an automated link to Figma, or a live model.
How shared components, foundations, themes, patterns, and the studio relate.
Token roles, anatomy, variants, states, and usage. A control appears in the studio only when the component reads it.
How a product identity is configured without recreating components. Light and dark are modes of the current theme, not another product.
Shared names, CSS and JSON exports, and one registry.
Purpose, reuse, and the limits that are still true.
05 / ONEFOLD ARCHITECTURE
This is a conceptual view. It explains how the decisions connect. It does not claim that each layer is a separate package.
Playground, theme editor, component library, /registry, and the local script. All of them read one catalog.
Figma specifications, token naming, and manual CSS / JSON exports.
Reusable combinations for common product experiences. Four of them open in the playground.
Primary, accent, neutrals, typography, and radius.
Colour, typography, spacing, radius, focus, semantic status, and the scale the inspector edits.
Reusable elements, anatomy, variants, and predictable behaviour. 126 components, one list.
Structure, anatomy, interaction, states, and patterns.
Configured by product: the theme values the studio actually exposes.
06 / DESIGN FOUNDATIONS AND TOKEN ARCHITECTURE
The core contract is primary, accent, and radius, with supporting values for type, surface, and status.
Primary is reserved for the primary action. Accent supports focus and emphasis. Success, warning, and destructive keep their meaning when the theme changes. Text on a tinted primary button is held to a 4.5:1 contrast target, so a pale primary gets dark text and a dark primary gets light text. That rule is implemented for those controls. It is not a finished accessibility audit of every screen.
Identity with hierarchy. Outfit, Newsreader, or Montserrat, without losing a usable hierarchy.
4812162432
A repeatable rhythm. The inspector edits it as --space.
One base per product. Related sizes are derived from that base. The studio chrome stays at 8px so the tool does not impersonate the product.
Two or three shadow levels distinguish resting cards from raised panels. Shadow softness and depth may vary by product identity; buttons remain flat.
A visible ring for keyboard use, following the control’s radius.
Success, warning, and destructive do not change meaning with the theme.
Text on tinted surfaces should meet a 4.5:1 contrast target. This is a design target, not a claim of completed accessibility testing.
FOUNDATIONS / VISUAL BEHAVIOUR
A design system also defines how surfaces behave. Shadow, blur, motion, opacity, hairline, and texture are part of the language. The running studio is more specific about some of these than others.
Purpose: Communicate elevation and separate surfaces in a restrained hierarchy.
Shared rule: Use two or three levels, such as a resting card and a raised panel. Buttons stay flat.
Can vary: Shadow softness and depth can respond to product identity.
Where it applies: Resting cards and raised panels.
Purpose: Separate an active layer from the content behind it.
Shared rule: A smaller blur supports a menu over a panel; a larger blur supports a dialog over a page.
Can vary: Use is tied to the overlay context, not decoration or a general glass treatment.
Where it applies: Menus over panels; dialogs over pages.
Purpose: Make interaction timing feel coherent across products.
Shared rule: Align opening speed, easing versus snapping, hover duration and panel-transition duration.
Can vary: Product-specific timing should not be invented; shared timing principles remain consistent.
Where it applies: Hover, opening and panel transitions.
Purpose: Express state without creating a new colour for every screen.
Shared rule: Use a short, consistent opacity scale for disabled controls, overlays and pressed states.
Can vary: Application follows the interaction state, rather than a product-specific grey.
Where it applies: Disabled, overlay and pressed states.
Purpose: Give surfaces a consistent, quiet edge.
Shared rule: Keep the edge 1px for cards, inputs and glass surfaces.
Can vary: Border colour can follow the product theme; thickness stays shared.
Where it applies: Cards, inputs and glass surfaces.
Purpose: Add a controlled layer of product-specific character.
Shared rule: Texture is selected at theme level, not added arbitrarily to individual cards.
Can vary: Editorial uses very light grain; Blue App uses no grain.
Where it applies: Product-level visual character.

| Property | Shared system rule | Product-level flexibility | Application |
|---|---|---|---|
| Shadow | Two or three elevation levels; buttons stay flat. | Shadow softness and depth. | Resting cards and raised panels. |
| Blur | Contextual separation with distinct menu and dialog use cases. | Use within relevant product surfaces and overlays. | Menus over panels; dialogs over pages. |
| Motion | Shared interaction timing principles. | No independent product timing is assumed. | Hover, opening and panel transitions. |
| Opacity | Short, consistent opacity scale. | Applied according to interaction state. | Disabled, overlay and pressed states. |
| Hairline | 1px thickness. | Border colour. | Cards, inputs and glass surfaces. |
| Texture | Applied intentionally at theme level. | Presence and treatment; Editorial grain, Blue App none. | Product-level visual character. |
The theme fields: colour, radius, type, spacing, control size, duration.
Roles the components read: --primary, --accent, --radius, --ring, surfaces, and status.
Applied decisions, including a button’s fill and the radius and padding shown for the selected component.

07 / COMPONENT ARCHITECTURE
Components are grouped by purpose. Each one is considered through anatomy, variants, usage, and behaviour, not only its default appearance.
The catalog is one function. The homepage count, the library page, /registry, and the local script all read it. There are 126 components. 113 accept real properties in the playground. Thirteen are specimens, and the inspector says so: Skeleton, Form, Description list, Timeline, Bottom navigation, Nav rail, Activity feed, File list, Stack, Simple grid, Split pane, Image gallery, and Bottom app bar.
The Form template is interactive. The Form component is one of those specimens. The studio labels them differently on purpose.
Selecting a component changes the inspector. Button shows button radius and padding. Dialog shows dialog radius and padding. Field, card, banner, segmented control, menu, and popover follow the same pattern. A row is shown only when that component reads it.
The library page is a browser. Search, the real categories, and a card for every component. Each card is a live preview in the active theme. The card opens the component. Components with props also open in the playground.


08 / INTERACTION PRINCIPLES AND ACCESSIBILITY
The expected states are still default, hover, focus, active, disabled, loading, error, and success. Focus stays visible. Disabled and loading stay understandable. Status colour keeps its meaning and is paired with a label. Tinted surfaces aim for readable type.
Keep focus visible and keyboard interaction in mind.
Make disabled and loading states understandable.
Preserve semantic meaning for status colours.
Pair status colour with text labels or other cues.
Use contrast targets when applying tinted surfaces.
Keyboard testing across components.
Assistive-technology review.
Contrast verification across all four themes.
State coverage and regression checks.
Ongoing accessibility review as components evolve.
09 / FOUR PRODUCT IDENTITIES
The same foundation, four visual languages.
The comparison is one task screen. Layout, components, and interaction stay. Colour, type, neutrals, and radius change. On the homepage that switch is the same frame. In the playground it can be pinned, in light or dark, at a desktop or phone width.
| IDENTITY | PRIMARY | RADIUS | TYPE | WHAT STAYS SHARED |
|---|---|---|---|---|
| Blue App | #1035A3 | 14 | Outfit | The task screen, the anatomy, the behaviour. |
| Shop | #9A3412 | 8 | Newsreader | The same. |
| Health Notes | #1B4332 | 18 | Montserrat | The same. |
| Editorial | #1C1917 | 4 | Newsreader | The same. |




10 / PATTERNS AND COMPOSITIONS
Patterns combine shared components into familiar product experiences. These are reusable compositions and visual patterns, not separate applications or claims of fully implemented product functionality.
Four of them open in the playground and follow the active theme. The others remain compositions you can read and reuse. They are not their own templates.
Information overview and prioritised content. Opens in the playground: a page header, counts, and a primary action.
A working application shell. Opens in the playground: a sidebar, search, and a task list.
A conversation beside the work. Opens in the playground: a status line and the chat window. A sent message stays in the preview and says no model was called.
Structured data capture and validation cues. Opens in the playground: a project form with an email error. Submit stays on the page.
Scannable collections and repeatable rows.
Focused information and contextual actions.
Preferences and configurable controls.
Authentication entry pattern.
Account creation and progressive input.
Guided introduction and first-use steps.
Helpful guidance when content is missing or an action fails.

11 / DESIGN-TO-CODE HANDOFF
Figma variables and components inform the design contract. The studio writes the matching CSS custom properties and a JSON file for the theme in the editor. The handoff is manual. There is no automated Figma-to-code synchronisation.
Primary, accent, radius, and the focus ring are the original contract. Control size, spacing, type size, and duration are included because the playground inspector edits them and the components read them. The JSON carries the same values, with light and dark beside them.
Blue App, Shop, Health Notes, or Editorial, or a theme configured in the studio.
In Themes, or in the playground inspector: colour, radius, type, spacing, control size, and duration.
From Get started. Copy or download the theme currently in the editor.
The same list is at /registry, and from the studio repo:
npm run onefold -- list npm run onefold -- tokens grove npm run onefold -- registry
list prints all 126 components. tokens prints light and dark values for one theme. registry prints the same JSON the studio serves. Each component carries a flag for whether the playground can edit its props.
Copy src/design-system and the theme file into the other app. There is no published package, so there is no install step.
The names match on purpose. Someone still checks the preview against the export, and carries a change from Figma to the studio, or from the studio to Figma.
The Figma file holds all 126 catalog components. A Light and Dark comparison on that page includes Button, Input, Card, Navbar, Dialog, Chat window, Calendar month, Kanban column, Graph, and Carousel. The other components are in the library. They are not all repeated in that one comparison.


12 / ONEFOLD STUDIO
The Onefold Studio brings the foundations, tokens, components, and patterns into one place. It is also where those decisions can be tried. A theme change reaches the components that read it. A component can be opened, edited, and shared.
This is not a second library. It is the same catalog, taken out of the specification and made interactive. Instead of reading what a component is supposed to do, you can see it respond as you change the decisions behind it.
The specification defines what is shared and what can be configured. The playground is where you test whether those decisions hold up.

Select a component and experiment with it before anyone has to redraw it. Switch between Blue App, Shop, Health Notes, and Editorial. Change the colour, typography, or radius, and watch the same component update in real time.
When the setup looks right, copy the link. The next person opens that exact configuration, ready to explore or continue from where you left off.
The playground makes theme decisions visible, testable, and easy to share.
13 / GOVERNANCE AND SYSTEM BOUNDARIES
A multi-product system is not only a library. It needs clear decisions about contribution, ownership, and change.
Component contribution criteria.
Clear system ownership.
Versioning and deprecation practices.
Review and approval expectations.
Change communication.
Theme validation across the four identities.
No shared versioned package. Another app copies the component folder and the theme file.
Manual design-to-code handoff. No automated Figma sync. The file and the studio can drift.
No automated theme regression.
No hosted agent connection, and no live model. The local script can list the 126 components and show tokens for one theme. That is the whole protocol.
No chart library, rich-text editor, or virtualised grid. The graph in the playground draws its own axes, legend, tooltip, and table.
Thirteen components stay specimens: Skeleton, Form, Description list, Timeline, Bottom navigation, Nav rail, Activity feed, File list, Stack, Simple grid, Split pane, Image gallery, and Bottom app bar. Calendar, kanban, and carousel do run in the preview. They are not separate product engines.
A saved theme lives in this browser. It is not a shared account.
Keyboard testing, assistive-technology review, and contrast checks across all four themes are still open.
14 / WHAT WORKS TODAY
The studio demonstrates a working core.
126 components, one catalog.
Four product identities, available in light and dark.
Theme configuration reaches the components reading those values, including readable type on the primary button.
A library page of live previews, with search and categories.
113 components accept real props. Chat, dialog, calendar, kanban, carousel, and the form respond in the preview. The canvas stays a fixed size. The link restores the setup.
An inspector for base, colour, and the selected component’s radius and padding.
CSS and JSON export, including control size, spacing, type size, and duration.
The same catalog at /registry and in the local script.
The Figma library, with all 126 catalog components. The Light and Dark comparison includes Button, Input, Card, Navbar, Dialog, Chat window, Calendar month, Kanban column, Graph, and Carousel.
Dashboard, Enterprise, AI experience, and Form open in the playground and follow the theme.
A published package.
Automated Figma synchronisation.
Automated theme validation.
A contribution and governance workflow.
A live model, or a hosted agent connection.
A chart library, a rich-text editor, or a virtualised grid.
The thirteen specimens listed in the boundaries.
A finished accessibility audit across every component and all four themes.
15 / WHAT'S NEXT
16 / REFLECTION
I started with a familiar problem: drawing the same button again for every product. The deeper question was what should be shared, what should flex, and what should stay unique. The number of components is not the point. The point is that those decisions stay stable, and that a team can use them as the products change.
The studio is that test. Change the radius and the button changes. Ask for the catalog and the same list answers. The limits stay visible, so the system does not quietly grow a second, unofficial one.
One foundation. Multiple identities. No reason to redraw the button.