Give the container a purpose
Use the page as the foundation and a surface to group related content. Add another container only when it communicates a separate responsibility.
Build a clear sense of place. Explore page, content, input, and inverse surfaces in one readable composition.
Implementation previewSee page, surface, subtle, and inverse roles together. Switch themes to inspect how their foregrounds and backgrounds work as pairs.
Explore every named example, including states, compositions, and theme variants.
packages/design-system/src/foundations/Foundations.stories.tsxExport ThemeSurfacesImplementation preview Local Storybook build 0.2.0-preview.1. Source specification status does not approve this runtime.
Full story catalog JSON ↗Use the page as the foundation and a surface to group related content. Add another container only when it communicates a separate responsibility.
Text suited to the page can disappear on an inverse or status surface. Use the appropriate semantic foreground and verify labels, helper text, and controls together.
Keep the role name when changing themes. The reference preserves each light and dark definition so the same layout can adapt without replacing tokens with raw colors.
These values come directly from the design-owned source. Aliases, expressions, theme selectors, and source files are retained.
| Token | Source value | Selector | Source file |
|---|---|---|---|
var(--cds-color-grey-01) | [data-theme='light'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-grey-01) | [data-theme='light'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-white) | [data-theme='light'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-black) | [data-theme='light'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-black) | [data-theme='light'] | packages/design-system/src/tokens/themes.css | |
var(--cds-status-success-subtle) | [data-theme='light'] | packages/design-system/src/tokens/themes.css | |
var(--cds-status-warning-subtle) | [data-theme='light'] | packages/design-system/src/tokens/themes.css | |
var(--cds-status-danger-subtle) | [data-theme='light'] | packages/design-system/src/tokens/themes.css | |
var(--cds-status-info-subtle) | [data-theme='light'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-grey-01) | [data-theme='light'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-black) | [data-theme='light'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-grey-06) | [data-theme='light'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-grey-01) | [data-theme='light'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-white-15) | [data-theme='light'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-grey-07) | [data-theme='dark'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-black) | [data-theme='dark'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-grey-06) | [data-theme='dark'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-black) | [data-theme='dark'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-white) | [data-theme='dark'] | packages/design-system/src/tokens/themes.css | |
var(--cds-status-success-solid) | [data-theme='dark'] | packages/design-system/src/tokens/themes.css | |
var(--cds-status-warning-solid) | [data-theme='dark'] | packages/design-system/src/tokens/themes.css | |
var(--cds-status-danger-solid) | [data-theme='dark'] | packages/design-system/src/tokens/themes.css | |
var(--cds-status-info-solid) | [data-theme='dark'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-grey-05) | [data-theme='dark'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-black) | [data-theme='dark'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-grey-06) | [data-theme='dark'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-white-05) | [data-theme='dark'] | packages/design-system/src/tokens/themes.css | |
var(--cds-color-white-15) | [data-theme='dark'] | packages/design-system/src/tokens/themes.css |
Design-owned preview Version 0.2.0-preview.1 28 definitions
Give an agent the guidance, source values, and working example together.
Use the Cloaked surfaces foundations. Read https://design.cloaked.team/data/foundations/surfaces.json first. Use the exact token names, values, and theme selectors in this contract. Check the shared foundation-surfaces example and preserve its visual intent. Verify keyboard access, both themes, responsive layout, and reduced-motion behavior where applicable. Treat this design-owned version as an implementation preview, pending sign-off.