Page
The quiet foundation beneath the experience.
- Light
- #f3f1ed
- Dark
- #141410
A calm foundation, a clear hierarchy, and color that means something. The same roles work in light and dark.
Implementation previewUse page and surface roles to establish structure. Reserve stronger contrast for the content that needs attention.
The quiet foundation beneath the experience.
A raised space for related content.
A deliberate moment of stronger emphasis.
The primary action uses a dark container in the light theme. Orange is the brand accent; it is not a substitute for the primary-action token.
--cds-button-primary-container and --cds-button-primary-text change together. Preserve that relationship when the theme changes.
Explore every named example, including states, compositions, and theme variants.
packages/design-system/src/foundations/Foundations.stories.tsxExport ColorImplementation preview Local Storybook build 0.2.0-preview.1. Source specification status does not approve this runtime.
Full story catalog JSON ↗Pair a status color with specific text and an appropriate icon. Color alone cannot explain an error or confirm an outcome.
Contrast depends on both colors, text size, and the actual surface. A token name is not an accessibility guarantee.
Use public --cds-* roles in product code. Keep primitive --cds-color-* values inside the design system.
Both theme selectors are retained. Copy a semantic token above, or inspect the full versioned source.
| Token | Source value | Theme selector |
|---|---|---|
--cds-brand | var(--cds-color-brand) | [data-theme='light'] |
--cds-bg-page | var(--cds-color-grey-01) | [data-theme='light'] |
--cds-bg-dashboard | var(--cds-color-grey-01) | [data-theme='light'] |
--cds-bg-surface | var(--cds-color-white) | [data-theme='light'] |
--cds-bg-ai-input | var(--cds-color-black) | [data-theme='light'] |
--cds-text-primary | var(--cds-color-grey-07) | [data-theme='light'] |
--cds-text-secondary | var(--cds-color-grey-04-strong) | [data-theme='light'] |
--cds-text-danger | var(--cds-color-red-01) | [data-theme='light'] |
--cds-text-ai-primary | var(--cds-color-grey-01) | [data-theme='light'] |
--cds-text-ai-secondary | var(--cds-color-grey-04) | [data-theme='light'] |
--cds-divider | var(--cds-color-grey-02) | [data-theme='light'] |
--cds-input-container | var(--cds-color-grey-01) | [data-theme='light'] |
--cds-banner-text-primary | var(--cds-color-grey-07) | [data-theme='light'] |
--cds-banner-text-secondary | var(--cds-color-grey-04) | [data-theme='light'] |
--cds-banner-container | var(--cds-color-grey-01) | [data-theme='light'] |
--cds-button-primary-text | var(--cds-color-white) | [data-theme='light'] |
--cds-button-primary-container | var(--cds-color-black) | [data-theme='light'] |
--cds-button-secondary-text | var(--cds-color-grey-07) | [data-theme='light'] |
--cds-button-secondary-container | var(--cds-color-grey-01) | [data-theme='light'] |
--cds-button-danger-text | var(--cds-color-white) | [data-theme='light'] |
--cds-button-danger-container | var(--cds-color-red-01) | [data-theme='light'] |
--cds-fab-container | var(--cds-color-white-60) | [data-theme='light'] |
--cds-bg-bold | var(--cds-color-black) | [data-theme='light'] |
--cds-text-on-bold | var(--cds-color-white) | [data-theme='light'] |
--cds-surface-subtle | var(--cds-color-grey-02) | [data-theme='light'] |
--cds-selection-off-container | var(--cds-color-grey-02) | [data-theme='light'] |
--cds-toggle-off-container | var(--cds-color-grey-03) | [data-theme='light'] |
--cds-status-success-solid | var(--cds-color-green-01) | [data-theme='light'] |
--cds-status-success-subtle | var(--cds-color-green-02) | [data-theme='light'] |
--cds-status-danger-solid | var(--cds-color-red-01) | [data-theme='light'] |
--cds-status-danger-subtle | var(--cds-color-red-02) | [data-theme='light'] |
--cds-status-warning-solid | var(--cds-color-orange-01) | [data-theme='light'] |
--cds-status-warning-subtle | var(--cds-color-orange-02) | [data-theme='light'] |
--cds-status-info-solid | var(--cds-color-risk-excellent) | [data-theme='light'] |
--cds-status-info-subtle | rgba(52, 152, 219, 0.1) | [data-theme='light'] |
--cds-status-neutral-solid | var(--cds-color-grey-04) | [data-theme='light'] |
--cds-status-neutral-subtle | rgba(132, 130, 126, 0.1) | [data-theme='light'] |
--cds-bg-status-success | var(--cds-status-success-subtle) | [data-theme='light'] |
--cds-text-on-status-success | var(--cds-status-success-solid) | [data-theme='light'] |
--cds-bg-status-warning | var(--cds-status-warning-subtle) | [data-theme='light'] |
--cds-text-on-status-warning | var(--cds-status-warning-solid) | [data-theme='light'] |
--cds-bg-status-danger | var(--cds-status-danger-subtle) | [data-theme='light'] |
--cds-text-on-status-danger | var(--cds-status-danger-solid) | [data-theme='light'] |
--cds-bg-status-info | var(--cds-status-info-subtle) | [data-theme='light'] |
--cds-text-on-status-info | var(--cds-status-info-solid) | [data-theme='light'] |
--cds-bg-status-neutral | var(--cds-color-grey-01) | [data-theme='light'] |
--cds-text-on-status-neutral | var(--cds-color-black) | [data-theme='light'] |
--cds-graph-bg | var(--cds-color-black-05) | [data-theme='light'] |
--cds-brand-subtle | rgba(255, 85, 12, 0.15) | [data-theme='light'] |
--cds-skeleton-base | var(--cds-color-black-05) | [data-theme='light'] |
--cds-skeleton-highlight | var(--cds-color-black-15) | [data-theme='light'] |
--cds-bg-inverse | var(--cds-color-black) | [data-theme='light'] |
--cds-bg-inverse-elevated | var(--cds-color-grey-06) | [data-theme='light'] |
--cds-text-inverse | var(--cds-color-white) | [data-theme='light'] |
--cds-text-on-light | var(--cds-color-black) | [data-theme='light'] |
--cds-scrim | var(--cds-color-black) | [data-theme='light'] |
--cds-bg-subtle | var(--cds-color-grey-01) | [data-theme='light'] |
--cds-bg-subtle-inverse | var(--cds-color-white-15) | [data-theme='light'] |
--cds-skeleton-base-inverse | var(--cds-color-white-05) | [data-theme='light'] |
--cds-skeleton-highlight-inverse | var(--cds-color-white-15) | [data-theme='light'] |
--cds-feature-monitoring | var(--cds-color-feature-monitoring) | [data-theme='light'] |
--cds-feature-guard | var(--cds-color-feature-guard) | [data-theme='light'] |
--cds-feature-identity | var(--cds-color-feature-identity) | [data-theme='light'] |
--cds-feature-monitoring-container | var(--cds-color-feature-monitoring-container-01) | [data-theme='light'] |
--cds-feature-guard-container | var(--cds-color-feature-guard-container-01) | [data-theme='light'] |
--cds-feature-identity-container | var(--cds-color-feature-identity-container-01) | [data-theme='light'] |
--cds-feature-monitoring-backdrop | var(--cds-color-feature-monitoring-container-02) | [data-theme='light'] |
--cds-feature-guard-backdrop | var(--cds-color-feature-guard-container-02) | [data-theme='light'] |
--cds-feature-identity-backdrop | var(--cds-color-feature-identity-container-02) | [data-theme='light'] |
--cds-risk-excellent | var(--cds-color-risk-excellent) | [data-theme='light'] |
--cds-risk-good | var(--cds-color-risk-good) | [data-theme='light'] |
--cds-risk-fair | var(--cds-color-risk-fair) | [data-theme='light'] |
--cds-risk-high | var(--cds-color-red-01) | [data-theme='light'] |
--cds-risk-critical | var(--cds-color-risk-critical) | [data-theme='light'] |
--cds-pii-category-name | #00c876 | [data-theme='light'] |
--cds-pii-category-email | #ffd447 | [data-theme='light'] |
--cds-pii-category-phone | #e172eb | [data-theme='light'] |
--cds-pii-category-address | #0067ff | [data-theme='light'] |
--cds-pii-category-family | #003677 | [data-theme='light'] |
--cds-brand | var(--cds-color-brand) | [data-theme='dark'] |
--cds-bg-page | var(--cds-color-grey-07) | [data-theme='dark'] |
--cds-bg-dashboard | var(--cds-color-black) | [data-theme='dark'] |
--cds-bg-surface | var(--cds-color-grey-06) | [data-theme='dark'] |
--cds-bg-ai-input | var(--cds-color-black) | [data-theme='dark'] |
--cds-text-primary | var(--cds-color-grey-01) | [data-theme='dark'] |
--cds-text-secondary | var(--cds-color-white-60) | [data-theme='dark'] |
--cds-text-danger | color-mix(in srgb, var(--cds-color-red-01) 60%, var(--cds-color-white)) | [data-theme='dark'] |
--cds-text-ai-primary | var(--cds-color-grey-01) | [data-theme='dark'] |
--cds-text-ai-secondary | var(--cds-color-grey-04) | [data-theme='dark'] |
--cds-divider | var(--cds-color-white-10) | [data-theme='dark'] |
--cds-input-container | var(--cds-color-grey-05) | [data-theme='dark'] |
--cds-banner-text-primary | var(--cds-color-grey-01) | [data-theme='dark'] |
--cds-banner-text-secondary | var(--cds-color-grey-02) | [data-theme='dark'] |
--cds-banner-container | var(--cds-color-grey-07) | [data-theme='dark'] |
--cds-button-primary-text | var(--cds-color-grey-07) | [data-theme='dark'] |
--cds-button-primary-container | var(--cds-color-white) | [data-theme='dark'] |
--cds-button-secondary-text | var(--cds-color-grey-01) | [data-theme='dark'] |
--cds-button-secondary-container | var(--cds-color-white-05) | [data-theme='dark'] |
--cds-button-danger-text | var(--cds-color-white) | [data-theme='dark'] |
--cds-button-danger-container | var(--cds-color-red-01) | [data-theme='dark'] |
--cds-fab-container | var(--cds-color-white-10) | [data-theme='dark'] |
--cds-bg-bold | var(--cds-color-white) | [data-theme='dark'] |
--cds-text-on-bold | var(--cds-color-grey-07) | [data-theme='dark'] |
--cds-surface-subtle | var(--cds-color-white-15) | [data-theme='dark'] |
--cds-selection-off-container | var(--cds-color-white-15) | [data-theme='dark'] |
--cds-toggle-off-container | var(--cds-color-white-15) | [data-theme='dark'] |
--cds-status-success-solid | var(--cds-color-green-01) | [data-theme='dark'] |
--cds-status-success-subtle | var(--cds-color-green-02) | [data-theme='dark'] |
--cds-status-danger-solid | var(--cds-color-red-01) | [data-theme='dark'] |
--cds-status-danger-subtle | var(--cds-color-red-02) | [data-theme='dark'] |
--cds-status-warning-solid | var(--cds-color-orange-01) | [data-theme='dark'] |
--cds-status-warning-subtle | var(--cds-color-orange-02) | [data-theme='dark'] |
--cds-status-info-solid | var(--cds-color-risk-excellent) | [data-theme='dark'] |
--cds-status-info-subtle | rgba(52, 152, 219, 0.1) | [data-theme='dark'] |
--cds-status-neutral-solid | var(--cds-color-grey-04) | [data-theme='dark'] |
--cds-status-neutral-subtle | rgba(132, 130, 126, 0.1) | [data-theme='dark'] |
--cds-bg-status-success | var(--cds-status-success-solid) | [data-theme='dark'] |
--cds-text-on-status-success | var(--cds-color-white) | [data-theme='dark'] |
--cds-bg-status-warning | var(--cds-status-warning-solid) | [data-theme='dark'] |
--cds-text-on-status-warning | var(--cds-color-white) | [data-theme='dark'] |
--cds-bg-status-danger | var(--cds-status-danger-solid) | [data-theme='dark'] |
--cds-text-on-status-danger | var(--cds-color-white) | [data-theme='dark'] |
--cds-bg-status-info | var(--cds-status-info-solid) | [data-theme='dark'] |
--cds-text-on-status-info | var(--cds-color-white) | [data-theme='dark'] |
--cds-bg-status-neutral | var(--cds-color-grey-05) | [data-theme='dark'] |
--cds-text-on-status-neutral | var(--cds-color-white) | [data-theme='dark'] |
--cds-graph-bg | var(--cds-color-white-05) | [data-theme='dark'] |
--cds-brand-subtle | rgba(255, 85, 12, 0.15) | [data-theme='dark'] |
--cds-skeleton-base | var(--cds-color-white-05) | [data-theme='dark'] |
--cds-skeleton-highlight | var(--cds-color-white-15) | [data-theme='dark'] |
--cds-bg-inverse | var(--cds-color-black) | [data-theme='dark'] |
--cds-bg-inverse-elevated | var(--cds-color-grey-06) | [data-theme='dark'] |
--cds-text-inverse | var(--cds-color-white) | [data-theme='dark'] |
--cds-text-on-light | var(--cds-color-black) | [data-theme='dark'] |
--cds-scrim | var(--cds-color-black) | [data-theme='dark'] |
--cds-bg-subtle | var(--cds-color-white-05) | [data-theme='dark'] |
--cds-bg-subtle-inverse | var(--cds-color-white-15) | [data-theme='dark'] |
--cds-skeleton-base-inverse | var(--cds-color-white-05) | [data-theme='dark'] |
--cds-skeleton-highlight-inverse | var(--cds-color-white-15) | [data-theme='dark'] |
--cds-feature-monitoring | var(--cds-color-feature-monitoring) | [data-theme='dark'] |
--cds-feature-guard | var(--cds-color-feature-guard) | [data-theme='dark'] |
--cds-feature-identity | var(--cds-color-feature-identity) | [data-theme='dark'] |
--cds-feature-monitoring-container | var(--cds-color-feature-monitoring-container-01) | [data-theme='dark'] |
--cds-feature-guard-container | var(--cds-color-feature-guard-container-01) | [data-theme='dark'] |
--cds-feature-identity-container | var(--cds-color-feature-identity-container-01) | [data-theme='dark'] |
--cds-feature-monitoring-backdrop | var(--cds-color-feature-monitoring-container-02) | [data-theme='dark'] |
--cds-feature-guard-backdrop | var(--cds-color-feature-guard-container-02) | [data-theme='dark'] |
--cds-feature-identity-backdrop | var(--cds-color-feature-identity-container-02) | [data-theme='dark'] |
--cds-risk-excellent | var(--cds-color-risk-excellent) | [data-theme='dark'] |
--cds-risk-good | var(--cds-color-risk-good) | [data-theme='dark'] |
--cds-risk-fair | var(--cds-color-risk-fair) | [data-theme='dark'] |
--cds-risk-high | var(--cds-color-red-01) | [data-theme='dark'] |
--cds-risk-critical | var(--cds-color-risk-critical) | [data-theme='dark'] |
--cds-pii-category-name | #00c876 | [data-theme='dark'] |
--cds-pii-category-email | #ffd447 | [data-theme='dark'] |
--cds-pii-category-phone | #e172eb | [data-theme='dark'] |
--cds-pii-category-address | #0067ff | [data-theme='dark'] |
--cds-pii-category-family | #003677 | [data-theme='dark'] |