diff --git a/packages/components/src/styles/components/card/container.scss b/packages/components/src/styles/components/card/container.scss index 8e7c2a5f6de..2fbb7c30870 100644 --- a/packages/components/src/styles/components/card/container.scss +++ b/packages/components/src/styles/components/card/container.scss @@ -9,12 +9,11 @@ $hds-card-container-style: ("surface", "elevation"); $hds-card-container-levels: ("base", "mid", "high"); -$hds-card-container-border-radius: var(--token-border-radius-medium); .hds-card__container { position: relative; - background-color: #fff; - border-radius: $hds-card-container-border-radius; + background-color: var(--token-card-surface-color-primary); + border-radius: var(--token-border-radius-medium); } // LEVEL (elevation style as "drop" + "border" shadow effects) @@ -47,11 +46,11 @@ $hds-card-container-border-radius: var(--token-border-radius-medium); // BACKGROUND .hds-card__container--background-neutral-primary { - background-color: var(--token-color-surface-primary); + background-color: var(--token-card-surface-color-primary); } .hds-card__container--background-neutral-secondary { - background-color: var(--token-color-surface-faint); + background-color: var(--token-card-surface-color-secondary); } // OVERFLOW diff --git a/packages/tokens/dist/devdot/css/tokens.css b/packages/tokens/dist/devdot/css/tokens.css index 9f66f634fb4..edd05629e89 100644 --- a/packages/tokens/dist/devdot/css/tokens.css +++ b/packages/tokens/dist/devdot/css/tokens.css @@ -362,6 +362,8 @@ --token-button-icon-size-small: 12px; --token-button-icon-size-medium: 16px; --token-button-icon-size-large: 24px; + --token-card-surface-color-primary: #ffffff; + --token-card-surface-color-secondary: #fafafa; --token-dismiss-button-size: 24px; --token-dismiss-button-foreground-color-default: #656a76; --token-dismiss-button-foreground-color-active: #0c0c0e; diff --git a/packages/tokens/dist/docs/products/themed-tokens.json b/packages/tokens/dist/docs/products/themed-tokens.json index 1dd257f3d2d..7d73fad56a0 100644 --- a/packages/tokens/dist/docs/products/themed-tokens.json +++ b/packages/tokens/dist/docs/products/themed-tokens.json @@ -10976,6 +10976,74 @@ "large" ] }, + "token-card-surface-color-primary": { + "key": "{card.surface.color.primary}", + "$type": "color", + "$value": "#ffffff", + "$modes": { + "default": "#ffffff", + "cds-g0": "#f4f4f4", + "cds-g10": "#ffffff", + "cds-g90": "#393939", + "cds-g100": "#262626" + }, + "original": { + "$type": "color", + "$value": "{color.surface.primary}", + "$modes": { + "default": "{color.surface.primary}", + "cds-g0": "{carbon.color.gray.10}", + "cds-g10": "{carbon.color.white.0}", + "cds-g90": "{carbon.color.gray.80}", + "cds-g100": "{carbon.color.gray.90}" + }, + "key": "{card.surface.color.primary}" + }, + "name": "token-card-surface-color-primary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "primary" + ] + }, + "token-card-surface-color-secondary": { + "key": "{card.surface.color.secondary}", + "$type": "color", + "$value": "#fafafa", + "$modes": { + "default": "#fafafa", + "cds-g0": "#ffffff", + "cds-g10": "#f4f4f4", + "cds-g90": "#525252", + "cds-g100": "#393939" + }, + "original": { + "$type": "color", + "$value": "{color.surface.faint}", + "$modes": { + "default": "{color.surface.faint}", + "cds-g0": "{carbon.color.white.0}", + "cds-g10": "{carbon.color.gray.10}", + "cds-g90": "{carbon.color.gray.70}", + "cds-g100": "{carbon.color.gray.80}" + }, + "key": "{card.surface.color.secondary}" + }, + "name": "token-card-surface-color-secondary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "secondary" + ] + }, "token-dismiss-button-size": { "key": "{dismiss-button.size}", "$type": "dimension", @@ -26584,6 +26652,74 @@ "large" ] }, + "token-card-surface-color-primary": { + "key": "{card.surface.color.primary}", + "$type": "color", + "$value": "#f4f4f4", + "$modes": { + "default": "#f4f4f4", + "cds-g0": "#f4f4f4", + "cds-g10": "#ffffff", + "cds-g90": "#393939", + "cds-g100": "#262626" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.gray.10}", + "$modes": { + "default": "{color.surface.primary}", + "cds-g0": "{carbon.color.gray.10}", + "cds-g10": "{carbon.color.white.0}", + "cds-g90": "{carbon.color.gray.80}", + "cds-g100": "{carbon.color.gray.90}" + }, + "key": "{card.surface.color.primary}" + }, + "name": "token-card-surface-color-primary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "primary" + ] + }, + "token-card-surface-color-secondary": { + "key": "{card.surface.color.secondary}", + "$type": "color", + "$value": "#ffffff", + "$modes": { + "default": "#f4f4f4", + "cds-g0": "#ffffff", + "cds-g10": "#f4f4f4", + "cds-g90": "#525252", + "cds-g100": "#393939" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.white.0}", + "$modes": { + "default": "{color.surface.faint}", + "cds-g0": "{carbon.color.white.0}", + "cds-g10": "{carbon.color.gray.10}", + "cds-g90": "{carbon.color.gray.70}", + "cds-g100": "{carbon.color.gray.80}" + }, + "key": "{card.surface.color.secondary}" + }, + "name": "token-card-surface-color-secondary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "secondary" + ] + }, "token-dismiss-button-size": { "key": "{dismiss-button.size}", "$type": "dimension", @@ -42192,6 +42328,74 @@ "large" ] }, + "token-card-surface-color-primary": { + "key": "{card.surface.color.primary}", + "$type": "color", + "$value": "#ffffff", + "$modes": { + "default": "#ffffff", + "cds-g0": "#f4f4f4", + "cds-g10": "#ffffff", + "cds-g90": "#393939", + "cds-g100": "#262626" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.white.0}", + "$modes": { + "default": "{color.surface.primary}", + "cds-g0": "{carbon.color.gray.10}", + "cds-g10": "{carbon.color.white.0}", + "cds-g90": "{carbon.color.gray.80}", + "cds-g100": "{carbon.color.gray.90}" + }, + "key": "{card.surface.color.primary}" + }, + "name": "token-card-surface-color-primary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "primary" + ] + }, + "token-card-surface-color-secondary": { + "key": "{card.surface.color.secondary}", + "$type": "color", + "$value": "#f4f4f4", + "$modes": { + "default": "#ffffff", + "cds-g0": "#ffffff", + "cds-g10": "#f4f4f4", + "cds-g90": "#525252", + "cds-g100": "#393939" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.gray.10}", + "$modes": { + "default": "{color.surface.faint}", + "cds-g0": "{carbon.color.white.0}", + "cds-g10": "{carbon.color.gray.10}", + "cds-g90": "{carbon.color.gray.70}", + "cds-g100": "{carbon.color.gray.80}" + }, + "key": "{card.surface.color.secondary}" + }, + "name": "token-card-surface-color-secondary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "secondary" + ] + }, "token-dismiss-button-size": { "key": "{dismiss-button.size}", "$type": "dimension", @@ -57800,6 +58004,74 @@ "large" ] }, + "token-card-surface-color-primary": { + "key": "{card.surface.color.primary}", + "$type": "color", + "$value": "#393939", + "$modes": { + "default": "#393939", + "cds-g0": "#f4f4f4", + "cds-g10": "#ffffff", + "cds-g90": "#393939", + "cds-g100": "#262626" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.gray.80}", + "$modes": { + "default": "{color.surface.primary}", + "cds-g0": "{carbon.color.gray.10}", + "cds-g10": "{carbon.color.white.0}", + "cds-g90": "{carbon.color.gray.80}", + "cds-g100": "{carbon.color.gray.90}" + }, + "key": "{card.surface.color.primary}" + }, + "name": "token-card-surface-color-primary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "primary" + ] + }, + "token-card-surface-color-secondary": { + "key": "{card.surface.color.secondary}", + "$type": "color", + "$value": "#525252", + "$modes": { + "default": "#393939", + "cds-g0": "#ffffff", + "cds-g10": "#f4f4f4", + "cds-g90": "#525252", + "cds-g100": "#393939" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.gray.70}", + "$modes": { + "default": "{color.surface.faint}", + "cds-g0": "{carbon.color.white.0}", + "cds-g10": "{carbon.color.gray.10}", + "cds-g90": "{carbon.color.gray.70}", + "cds-g100": "{carbon.color.gray.80}" + }, + "key": "{card.surface.color.secondary}" + }, + "name": "token-card-surface-color-secondary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "secondary" + ] + }, "token-dismiss-button-size": { "key": "{dismiss-button.size}", "$type": "dimension", @@ -73408,6 +73680,74 @@ "large" ] }, + "token-card-surface-color-primary": { + "key": "{card.surface.color.primary}", + "$type": "color", + "$value": "#262626", + "$modes": { + "default": "#262626", + "cds-g0": "#f4f4f4", + "cds-g10": "#ffffff", + "cds-g90": "#393939", + "cds-g100": "#262626" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.gray.90}", + "$modes": { + "default": "{color.surface.primary}", + "cds-g0": "{carbon.color.gray.10}", + "cds-g10": "{carbon.color.white.0}", + "cds-g90": "{carbon.color.gray.80}", + "cds-g100": "{carbon.color.gray.90}" + }, + "key": "{card.surface.color.primary}" + }, + "name": "token-card-surface-color-primary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "primary" + ] + }, + "token-card-surface-color-secondary": { + "key": "{card.surface.color.secondary}", + "$type": "color", + "$value": "#393939", + "$modes": { + "default": "#262626", + "cds-g0": "#ffffff", + "cds-g10": "#f4f4f4", + "cds-g90": "#525252", + "cds-g100": "#393939" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.gray.80}", + "$modes": { + "default": "{color.surface.faint}", + "cds-g0": "{carbon.color.white.0}", + "cds-g10": "{carbon.color.gray.10}", + "cds-g90": "{carbon.color.gray.70}", + "cds-g100": "{carbon.color.gray.80}" + }, + "key": "{card.surface.color.secondary}" + }, + "name": "token-card-surface-color-secondary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "secondary" + ] + }, "token-dismiss-button-size": { "key": "{dismiss-button.size}", "$type": "dimension", diff --git a/packages/tokens/dist/docs/products/themed-tokens/cds-g0.json b/packages/tokens/dist/docs/products/themed-tokens/cds-g0.json index bbca917d338..c72d42ba015 100644 --- a/packages/tokens/dist/docs/products/themed-tokens/cds-g0.json +++ b/packages/tokens/dist/docs/products/themed-tokens/cds-g0.json @@ -10969,6 +10969,74 @@ "large" ] }, + { + "key": "{card.surface.color.primary}", + "$type": "color", + "$value": "#f4f4f4", + "$modes": { + "default": "#f4f4f4", + "cds-g0": "#f4f4f4", + "cds-g10": "#ffffff", + "cds-g90": "#393939", + "cds-g100": "#262626" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.gray.10}", + "$modes": { + "default": "{color.surface.primary}", + "cds-g0": "{carbon.color.gray.10}", + "cds-g10": "{carbon.color.white.0}", + "cds-g90": "{carbon.color.gray.80}", + "cds-g100": "{carbon.color.gray.90}" + }, + "key": "{card.surface.color.primary}" + }, + "name": "token-card-surface-color-primary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "primary" + ] + }, + { + "key": "{card.surface.color.secondary}", + "$type": "color", + "$value": "#ffffff", + "$modes": { + "default": "#f4f4f4", + "cds-g0": "#ffffff", + "cds-g10": "#f4f4f4", + "cds-g90": "#525252", + "cds-g100": "#393939" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.white.0}", + "$modes": { + "default": "{color.surface.faint}", + "cds-g0": "{carbon.color.white.0}", + "cds-g10": "{carbon.color.gray.10}", + "cds-g90": "{carbon.color.gray.70}", + "cds-g100": "{carbon.color.gray.80}" + }, + "key": "{card.surface.color.secondary}" + }, + "name": "token-card-surface-color-secondary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "secondary" + ] + }, { "key": "{dismiss-button.size}", "$type": "dimension", diff --git a/packages/tokens/dist/docs/products/themed-tokens/cds-g10.json b/packages/tokens/dist/docs/products/themed-tokens/cds-g10.json index 12ca1387b29..b746c40c4b3 100644 --- a/packages/tokens/dist/docs/products/themed-tokens/cds-g10.json +++ b/packages/tokens/dist/docs/products/themed-tokens/cds-g10.json @@ -10969,6 +10969,74 @@ "large" ] }, + { + "key": "{card.surface.color.primary}", + "$type": "color", + "$value": "#ffffff", + "$modes": { + "default": "#ffffff", + "cds-g0": "#f4f4f4", + "cds-g10": "#ffffff", + "cds-g90": "#393939", + "cds-g100": "#262626" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.white.0}", + "$modes": { + "default": "{color.surface.primary}", + "cds-g0": "{carbon.color.gray.10}", + "cds-g10": "{carbon.color.white.0}", + "cds-g90": "{carbon.color.gray.80}", + "cds-g100": "{carbon.color.gray.90}" + }, + "key": "{card.surface.color.primary}" + }, + "name": "token-card-surface-color-primary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "primary" + ] + }, + { + "key": "{card.surface.color.secondary}", + "$type": "color", + "$value": "#f4f4f4", + "$modes": { + "default": "#ffffff", + "cds-g0": "#ffffff", + "cds-g10": "#f4f4f4", + "cds-g90": "#525252", + "cds-g100": "#393939" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.gray.10}", + "$modes": { + "default": "{color.surface.faint}", + "cds-g0": "{carbon.color.white.0}", + "cds-g10": "{carbon.color.gray.10}", + "cds-g90": "{carbon.color.gray.70}", + "cds-g100": "{carbon.color.gray.80}" + }, + "key": "{card.surface.color.secondary}" + }, + "name": "token-card-surface-color-secondary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "secondary" + ] + }, { "key": "{dismiss-button.size}", "$type": "dimension", diff --git a/packages/tokens/dist/docs/products/themed-tokens/cds-g100.json b/packages/tokens/dist/docs/products/themed-tokens/cds-g100.json index 4c7e6ba5207..1a2df7e5ec3 100644 --- a/packages/tokens/dist/docs/products/themed-tokens/cds-g100.json +++ b/packages/tokens/dist/docs/products/themed-tokens/cds-g100.json @@ -10969,6 +10969,74 @@ "large" ] }, + { + "key": "{card.surface.color.primary}", + "$type": "color", + "$value": "#262626", + "$modes": { + "default": "#262626", + "cds-g0": "#f4f4f4", + "cds-g10": "#ffffff", + "cds-g90": "#393939", + "cds-g100": "#262626" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.gray.90}", + "$modes": { + "default": "{color.surface.primary}", + "cds-g0": "{carbon.color.gray.10}", + "cds-g10": "{carbon.color.white.0}", + "cds-g90": "{carbon.color.gray.80}", + "cds-g100": "{carbon.color.gray.90}" + }, + "key": "{card.surface.color.primary}" + }, + "name": "token-card-surface-color-primary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "primary" + ] + }, + { + "key": "{card.surface.color.secondary}", + "$type": "color", + "$value": "#393939", + "$modes": { + "default": "#262626", + "cds-g0": "#ffffff", + "cds-g10": "#f4f4f4", + "cds-g90": "#525252", + "cds-g100": "#393939" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.gray.80}", + "$modes": { + "default": "{color.surface.faint}", + "cds-g0": "{carbon.color.white.0}", + "cds-g10": "{carbon.color.gray.10}", + "cds-g90": "{carbon.color.gray.70}", + "cds-g100": "{carbon.color.gray.80}" + }, + "key": "{card.surface.color.secondary}" + }, + "name": "token-card-surface-color-secondary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "secondary" + ] + }, { "key": "{dismiss-button.size}", "$type": "dimension", diff --git a/packages/tokens/dist/docs/products/themed-tokens/cds-g90.json b/packages/tokens/dist/docs/products/themed-tokens/cds-g90.json index 491c93ecb68..455cdcfb0c9 100644 --- a/packages/tokens/dist/docs/products/themed-tokens/cds-g90.json +++ b/packages/tokens/dist/docs/products/themed-tokens/cds-g90.json @@ -10969,6 +10969,74 @@ "large" ] }, + { + "key": "{card.surface.color.primary}", + "$type": "color", + "$value": "#393939", + "$modes": { + "default": "#393939", + "cds-g0": "#f4f4f4", + "cds-g10": "#ffffff", + "cds-g90": "#393939", + "cds-g100": "#262626" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.gray.80}", + "$modes": { + "default": "{color.surface.primary}", + "cds-g0": "{carbon.color.gray.10}", + "cds-g10": "{carbon.color.white.0}", + "cds-g90": "{carbon.color.gray.80}", + "cds-g100": "{carbon.color.gray.90}" + }, + "key": "{card.surface.color.primary}" + }, + "name": "token-card-surface-color-primary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "primary" + ] + }, + { + "key": "{card.surface.color.secondary}", + "$type": "color", + "$value": "#525252", + "$modes": { + "default": "#393939", + "cds-g0": "#ffffff", + "cds-g10": "#f4f4f4", + "cds-g90": "#525252", + "cds-g100": "#393939" + }, + "original": { + "$type": "color", + "$value": "{carbon.color.gray.70}", + "$modes": { + "default": "{color.surface.faint}", + "cds-g0": "{carbon.color.white.0}", + "cds-g10": "{carbon.color.gray.10}", + "cds-g90": "{carbon.color.gray.70}", + "cds-g100": "{carbon.color.gray.80}" + }, + "key": "{card.surface.color.secondary}" + }, + "name": "token-card-surface-color-secondary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "secondary" + ] + }, { "key": "{dismiss-button.size}", "$type": "dimension", diff --git a/packages/tokens/dist/docs/products/themed-tokens/default.json b/packages/tokens/dist/docs/products/themed-tokens/default.json index 7997ebd2714..d11e59d9c80 100644 --- a/packages/tokens/dist/docs/products/themed-tokens/default.json +++ b/packages/tokens/dist/docs/products/themed-tokens/default.json @@ -10975,6 +10975,74 @@ "large" ] }, + { + "key": "{card.surface.color.primary}", + "$type": "color", + "$value": "#ffffff", + "$modes": { + "default": "#ffffff", + "cds-g0": "#f4f4f4", + "cds-g10": "#ffffff", + "cds-g90": "#393939", + "cds-g100": "#262626" + }, + "original": { + "$type": "color", + "$value": "{color.surface.primary}", + "$modes": { + "default": "{color.surface.primary}", + "cds-g0": "{carbon.color.gray.10}", + "cds-g10": "{carbon.color.white.0}", + "cds-g90": "{carbon.color.gray.80}", + "cds-g100": "{carbon.color.gray.90}" + }, + "key": "{card.surface.color.primary}" + }, + "name": "token-card-surface-color-primary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "primary" + ] + }, + { + "key": "{card.surface.color.secondary}", + "$type": "color", + "$value": "#fafafa", + "$modes": { + "default": "#fafafa", + "cds-g0": "#ffffff", + "cds-g10": "#f4f4f4", + "cds-g90": "#525252", + "cds-g100": "#393939" + }, + "original": { + "$type": "color", + "$value": "{color.surface.faint}", + "$modes": { + "default": "{color.surface.faint}", + "cds-g0": "{carbon.color.white.0}", + "cds-g10": "{carbon.color.gray.10}", + "cds-g90": "{carbon.color.gray.70}", + "cds-g100": "{carbon.color.gray.80}" + }, + "key": "{card.surface.color.secondary}" + }, + "name": "token-card-surface-color-secondary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "secondary" + ] + }, { "key": "{dismiss-button.size}", "$type": "dimension", diff --git a/packages/tokens/dist/docs/products/tokens.json b/packages/tokens/dist/docs/products/tokens.json index 7997ebd2714..d11e59d9c80 100644 --- a/packages/tokens/dist/docs/products/tokens.json +++ b/packages/tokens/dist/docs/products/tokens.json @@ -10975,6 +10975,74 @@ "large" ] }, + { + "key": "{card.surface.color.primary}", + "$type": "color", + "$value": "#ffffff", + "$modes": { + "default": "#ffffff", + "cds-g0": "#f4f4f4", + "cds-g10": "#ffffff", + "cds-g90": "#393939", + "cds-g100": "#262626" + }, + "original": { + "$type": "color", + "$value": "{color.surface.primary}", + "$modes": { + "default": "{color.surface.primary}", + "cds-g0": "{carbon.color.gray.10}", + "cds-g10": "{carbon.color.white.0}", + "cds-g90": "{carbon.color.gray.80}", + "cds-g100": "{carbon.color.gray.90}" + }, + "key": "{card.surface.color.primary}" + }, + "name": "token-card-surface-color-primary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "primary" + ] + }, + { + "key": "{card.surface.color.secondary}", + "$type": "color", + "$value": "#fafafa", + "$modes": { + "default": "#fafafa", + "cds-g0": "#ffffff", + "cds-g10": "#f4f4f4", + "cds-g90": "#525252", + "cds-g100": "#393939" + }, + "original": { + "$type": "color", + "$value": "{color.surface.faint}", + "$modes": { + "default": "{color.surface.faint}", + "cds-g0": "{carbon.color.white.0}", + "cds-g10": "{carbon.color.gray.10}", + "cds-g90": "{carbon.color.gray.70}", + "cds-g100": "{carbon.color.gray.80}" + }, + "key": "{card.surface.color.secondary}" + }, + "name": "token-card-surface-color-secondary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "secondary" + ] + }, { "key": "{dismiss-button.size}", "$type": "dimension", diff --git a/packages/tokens/dist/marketing/css/tokens.css b/packages/tokens/dist/marketing/css/tokens.css index 73161d316a1..ce5e0de4a59 100644 --- a/packages/tokens/dist/marketing/css/tokens.css +++ b/packages/tokens/dist/marketing/css/tokens.css @@ -360,6 +360,8 @@ --token-button-icon-size-small: 12px; --token-button-icon-size-medium: 16px; --token-button-icon-size-large: 24px; + --token-card-surface-color-primary: #ffffff; + --token-card-surface-color-secondary: #fafafa; --token-dismiss-button-size: 24px; --token-dismiss-button-foreground-color-default: #656a76; --token-dismiss-button-foreground-color-active: #0c0c0e; diff --git a/packages/tokens/dist/marketing/tokens.json b/packages/tokens/dist/marketing/tokens.json index 6dafcedb1c2..37a27cbd9c5 100644 --- a/packages/tokens/dist/marketing/tokens.json +++ b/packages/tokens/dist/marketing/tokens.json @@ -12007,6 +12007,84 @@ } } }, + "card": { + "surface": { + "color": { + "primary": { + "key": "{card.surface.color.primary}", + "$type": "color", + "$value": "#ffffff", + "$modes": { + "default": "#ffffff", + "cds-g0": "#f4f4f4", + "cds-g10": "#ffffff", + "cds-g90": "#393939", + "cds-g100": "#262626" + }, + "filePath": "src/products/shared/card.json", + "isSource": true, + "original": { + "$type": "color", + "$value": "{color.surface.primary}", + "$modes": { + "default": "{color.surface.primary}", + "cds-g0": "{carbon.color.gray.10}", + "cds-g10": "{carbon.color.white.0}", + "cds-g90": "{carbon.color.gray.80}", + "cds-g100": "{carbon.color.gray.90}" + }, + "key": "{card.surface.color.primary}" + }, + "name": "token-card-surface-color-primary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "primary" + ] + }, + "secondary": { + "key": "{card.surface.color.secondary}", + "$type": "color", + "$value": "#fafafa", + "$modes": { + "default": "#fafafa", + "cds-g0": "#ffffff", + "cds-g10": "#f4f4f4", + "cds-g90": "#525252", + "cds-g100": "#393939" + }, + "filePath": "src/products/shared/card.json", + "isSource": true, + "original": { + "$type": "color", + "$value": "{color.surface.faint}", + "$modes": { + "default": "{color.surface.faint}", + "cds-g0": "{carbon.color.white.0}", + "cds-g10": "{carbon.color.gray.10}", + "cds-g90": "{carbon.color.gray.70}", + "cds-g100": "{carbon.color.gray.80}" + }, + "key": "{card.surface.color.secondary}" + }, + "name": "token-card-surface-color-secondary", + "attributes": { + "category": "card" + }, + "path": [ + "card", + "surface", + "color", + "secondary" + ] + } + } + } + }, "dismiss-button": { "size": { "key": "{dismiss-button.size}", diff --git a/packages/tokens/dist/products/css/themed-tokens/with-css-selectors--advanced/tokens.css b/packages/tokens/dist/products/css/themed-tokens/with-css-selectors--advanced/tokens.css index 9ae2916a8cc..9fbaaf82141 100644 --- a/packages/tokens/dist/products/css/themed-tokens/with-css-selectors--advanced/tokens.css +++ b/packages/tokens/dist/products/css/themed-tokens/with-css-selectors--advanced/tokens.css @@ -275,6 +275,8 @@ --token-button-typography-line-height-large: 1.5; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.1429; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 0.9286; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: var(--token-color-surface-primary); + --token-card-surface-color-secondary: var(--token-color-surface-faint); --token-color-border-action: var(--token-color-palette-blue-100); --token-color-border-critical: var(--token-color-palette-red-100); --token-color-border-faint: var(--token-color-palette-alpha-100); @@ -662,6 +664,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #f4f4f4; + --token-card-surface-color-secondary: #ffffff; --token-color-border-action: #0f62fe; --token-color-border-critical: #ff8389; --token-color-border-faint: #e0e0e0; @@ -1002,6 +1006,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #262626; + --token-card-surface-color-secondary: #393939; --token-color-border-action: #4589ff; --token-color-border-critical: #fa4d56; --token-color-border-faint: #393939; @@ -1342,6 +1348,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #f4f4f4; + --token-card-surface-color-secondary: #ffffff; --token-color-border-action: #0f62fe; --token-color-border-critical: #ff8389; --token-color-border-faint: #e0e0e0; @@ -1681,6 +1689,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #262626; + --token-card-surface-color-secondary: #393939; --token-color-border-action: #4589ff; --token-color-border-critical: #fa4d56; --token-color-border-faint: #393939; @@ -2019,6 +2029,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #ffffff; + --token-card-surface-color-secondary: #f4f4f4; --token-color-border-action: #0f62fe; --token-color-border-critical: #ff8389; --token-color-border-faint: #c6c6c6; @@ -2357,6 +2369,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #393939; + --token-card-surface-color-secondary: #525252; --token-color-border-action: #4589ff; --token-color-border-critical: #fa4d56; --token-color-border-faint: #525252; diff --git a/packages/tokens/dist/products/css/themed-tokens/with-css-selectors--migration/tokens.css b/packages/tokens/dist/products/css/themed-tokens/with-css-selectors--migration/tokens.css index 3c1c306e35d..c9eb368b020 100644 --- a/packages/tokens/dist/products/css/themed-tokens/with-css-selectors--migration/tokens.css +++ b/packages/tokens/dist/products/css/themed-tokens/with-css-selectors--migration/tokens.css @@ -275,6 +275,8 @@ --token-button-typography-line-height-large: 1.5; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.1429; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 0.9286; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: var(--token-color-surface-primary); + --token-card-surface-color-secondary: var(--token-color-surface-faint); --token-color-border-action: var(--token-color-palette-blue-100); --token-color-border-critical: var(--token-color-palette-red-100); --token-color-border-faint: var(--token-color-palette-alpha-100); @@ -662,6 +664,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #f4f4f4; + --token-card-surface-color-secondary: #ffffff; --token-color-border-action: #0f62fe; --token-color-border-critical: #ff8389; --token-color-border-faint: #e0e0e0; @@ -1002,6 +1006,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #262626; + --token-card-surface-color-secondary: #393939; --token-color-border-action: #4589ff; --token-color-border-critical: #fa4d56; --token-color-border-faint: #393939; @@ -1341,6 +1347,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #f4f4f4; + --token-card-surface-color-secondary: #ffffff; --token-color-border-action: #0f62fe; --token-color-border-critical: #ff8389; --token-color-border-faint: #e0e0e0; @@ -1679,6 +1687,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #262626; + --token-card-surface-color-secondary: #393939; --token-color-border-action: #4589ff; --token-color-border-critical: #fa4d56; --token-color-border-faint: #393939; diff --git a/packages/tokens/dist/products/css/themed-tokens/with-css-selectors/tokens.css b/packages/tokens/dist/products/css/themed-tokens/with-css-selectors/tokens.css index 7617d5d2a96..e59c2bd2917 100644 --- a/packages/tokens/dist/products/css/themed-tokens/with-css-selectors/tokens.css +++ b/packages/tokens/dist/products/css/themed-tokens/with-css-selectors/tokens.css @@ -122,6 +122,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #f4f4f4; + --token-card-surface-color-secondary: #ffffff; --token-color-border-action: #0f62fe; --token-color-border-critical: #ff8389; --token-color-border-faint: #e0e0e0; @@ -461,6 +463,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #f4f4f4; + --token-card-surface-color-secondary: #ffffff; --token-color-border-action: #0f62fe; --token-color-border-critical: #ff8389; --token-color-border-faint: #e0e0e0; @@ -801,6 +805,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #262626; + --token-card-surface-color-secondary: #393939; --token-color-border-action: #4589ff; --token-color-border-critical: #fa4d56; --token-color-border-faint: #393939; @@ -1140,6 +1146,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #f4f4f4; + --token-card-surface-color-secondary: #ffffff; --token-color-border-action: #0f62fe; --token-color-border-critical: #ff8389; --token-color-border-faint: #e0e0e0; @@ -1478,6 +1486,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #262626; + --token-card-surface-color-secondary: #393939; --token-color-border-action: #4589ff; --token-color-border-critical: #fa4d56; --token-color-border-faint: #393939; diff --git a/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g0/themed-tokens.css b/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g0/themed-tokens.css index 887cefa83d9..930d7a222e7 100644 --- a/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g0/themed-tokens.css +++ b/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g0/themed-tokens.css @@ -122,6 +122,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #f4f4f4; + --token-card-surface-color-secondary: #ffffff; --token-color-border-action: #0f62fe; --token-color-border-critical: #ff8389; --token-color-border-faint: #e0e0e0; diff --git a/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g10/themed-tokens.css b/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g10/themed-tokens.css index d9c528520f5..0fabdf8d4fd 100644 --- a/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g10/themed-tokens.css +++ b/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g10/themed-tokens.css @@ -122,6 +122,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #ffffff; + --token-card-surface-color-secondary: #f4f4f4; --token-color-border-action: #0f62fe; --token-color-border-critical: #ff8389; --token-color-border-faint: #c6c6c6; diff --git a/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g100/themed-tokens.css b/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g100/themed-tokens.css index b299b8e00f2..3362ec8b45b 100644 --- a/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g100/themed-tokens.css +++ b/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g100/themed-tokens.css @@ -122,6 +122,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #262626; + --token-card-surface-color-secondary: #393939; --token-color-border-action: #4589ff; --token-color-border-critical: #fa4d56; --token-color-border-faint: #393939; diff --git a/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g90/themed-tokens.css b/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g90/themed-tokens.css index 64d8f52c13f..bdc300bd18a 100644 --- a/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g90/themed-tokens.css +++ b/packages/tokens/dist/products/css/themed-tokens/with-root-selector/cds-g90/themed-tokens.css @@ -122,6 +122,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #393939; + --token-card-surface-color-secondary: #525252; --token-color-border-action: #4589ff; --token-color-border-critical: #fa4d56; --token-color-border-faint: #525252; diff --git a/packages/tokens/dist/products/css/themed-tokens/with-root-selector/default/themed-tokens.css b/packages/tokens/dist/products/css/themed-tokens/with-root-selector/default/themed-tokens.css index d10144e9799..118e54d898b 100644 --- a/packages/tokens/dist/products/css/themed-tokens/with-root-selector/default/themed-tokens.css +++ b/packages/tokens/dist/products/css/themed-tokens/with-root-selector/default/themed-tokens.css @@ -122,6 +122,8 @@ --token-button-typography-line-height-large: 1.5; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.1429; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 0.9286; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: var(--token-color-surface-primary); + --token-card-surface-color-secondary: var(--token-color-surface-faint); --token-color-border-action: var(--token-color-palette-blue-100); --token-color-border-critical: var(--token-color-palette-red-100); --token-color-border-faint: var(--token-color-palette-alpha-100); diff --git a/packages/tokens/dist/products/css/themed-tokens/with-scss-mixins/tokens.css b/packages/tokens/dist/products/css/themed-tokens/with-scss-mixins/tokens.css index da1a6918a05..e9f847304bd 100644 --- a/packages/tokens/dist/products/css/themed-tokens/with-scss-mixins/tokens.css +++ b/packages/tokens/dist/products/css/themed-tokens/with-scss-mixins/tokens.css @@ -277,6 +277,8 @@ --token-button-typography-line-height-large: 1.5; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.1429; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 0.9286; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: var(--token-color-surface-primary); + --token-card-surface-color-secondary: var(--token-color-surface-faint); --token-color-border-action: var(--token-color-palette-blue-100); --token-color-border-critical: var(--token-color-palette-red-100); --token-color-border-faint: var(--token-color-palette-alpha-100); @@ -673,6 +675,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #f4f4f4; + --token-card-surface-color-secondary: #ffffff; --token-color-border-action: #0f62fe; --token-color-border-critical: #ff8389; --token-color-border-faint: #e0e0e0; @@ -1013,6 +1017,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #262626; + --token-card-surface-color-secondary: #393939; --token-color-border-action: #4589ff; --token-color-border-critical: #fa4d56; --token-color-border-faint: #393939; @@ -1353,6 +1359,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #f4f4f4; + --token-card-surface-color-secondary: #ffffff; --token-color-border-action: #0f62fe; --token-color-border-critical: #ff8389; --token-color-border-faint: #e0e0e0; @@ -1693,6 +1701,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #ffffff; + --token-card-surface-color-secondary: #f4f4f4; --token-color-border-action: #0f62fe; --token-color-border-critical: #ff8389; --token-color-border-faint: #c6c6c6; @@ -2033,6 +2043,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #393939; + --token-card-surface-color-secondary: #525252; --token-color-border-action: #4589ff; --token-color-border-critical: #fa4d56; --token-color-border-faint: #525252; @@ -2373,6 +2385,8 @@ --token-button-typography-line-height-large: 1.2858; /** 24px = 1.5 */ --token-button-typography-line-height-medium: 1.2858; /** 14px ~ 1.1429 */ --token-button-typography-line-height-small: 1.2858; /** 14px ~ 0.9286 - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants) */ + --token-card-surface-color-primary: #262626; + --token-card-surface-color-secondary: #393939; --token-color-border-action: #4589ff; --token-color-border-critical: #fa4d56; --token-color-border-faint: #393939; diff --git a/packages/tokens/dist/products/css/tokens.css b/packages/tokens/dist/products/css/tokens.css index 73161d316a1..ce5e0de4a59 100644 --- a/packages/tokens/dist/products/css/tokens.css +++ b/packages/tokens/dist/products/css/tokens.css @@ -360,6 +360,8 @@ --token-button-icon-size-small: 12px; --token-button-icon-size-medium: 16px; --token-button-icon-size-large: 24px; + --token-card-surface-color-primary: #ffffff; + --token-card-surface-color-secondary: #fafafa; --token-dismiss-button-size: 24px; --token-dismiss-button-foreground-color-default: #656a76; --token-dismiss-button-foreground-color-active: #0c0c0e; diff --git a/packages/tokens/src/products/shared/card.json b/packages/tokens/src/products/shared/card.json new file mode 100644 index 00000000000..c06bfb3b914 --- /dev/null +++ b/packages/tokens/src/products/shared/card.json @@ -0,0 +1,30 @@ +{ + "card": { + "surface": { + "color": { + "primary": { + "$type": "color", + "$value": "{color.surface.primary}", + "$modes": { + "default": "{color.surface.primary}", + "cds-g0": "{carbon.color.gray.10}", + "cds-g10": "{carbon.color.white.0}", + "cds-g90": "{carbon.color.gray.80}", + "cds-g100": "{carbon.color.gray.90}" + } + }, + "secondary": { + "$type": "color", + "$value": "{color.surface.faint}", + "$modes": { + "default": "{color.surface.faint}", + "cds-g0": "{carbon.color.white.0}", + "cds-g10": "{carbon.color.gray.10}", + "cds-g90": "{carbon.color.gray.70}", + "cds-g100": "{carbon.color.gray.80}" + } + } + } + } + } +} diff --git a/showcase/app/components/page-carbonization/components/card/index.gts b/showcase/app/components/page-carbonization/components/card/index.gts new file mode 100644 index 00000000000..40d94f15a6b --- /dev/null +++ b/showcase/app/components/page-carbonization/components/card/index.gts @@ -0,0 +1,135 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + +import type { TemplateOnlyComponent } from '@ember/component/template-only'; +import { pageTitle } from 'ember-page-title'; +import style from 'ember-style-modifier'; + +import ShwTextH1 from 'showcase/components/shw/text/h1'; +import ShwTextH2 from 'showcase/components/shw/text/h2'; +import ShwTextBody from 'showcase/components/shw/text/body'; +import ShwFlex from 'showcase/components/shw/flex'; +import ShwDivider from 'showcase/components/shw/divider'; +import ShwCarbonizationComparisonGrid from 'showcase/components/shw/carbonization/comparison-grid'; +import ShwPlaceholder from 'showcase/components/shw/placeholder'; + +import { + HdsCardContainer, + HdsTextBody, +} from '@hashicorp/design-system-components/components'; +import { + BACKGROUNDS, + LEVELS, +} from '@hashicorp/design-system-components/components/hds/card/container'; + +const CardCarbonizationIndex: TemplateOnlyComponent = ; + +export default CardCarbonizationIndex; diff --git a/showcase/app/index.html b/showcase/app/index.html index 74978589221..13372d47a59 100644 --- a/showcase/app/index.html +++ b/showcase/app/index.html @@ -88,6 +88,7 @@ cds-radio-tile:not(:defined), cds-text-input:not(:defined), cds-tag:not(:defined), + cds-tile:not(:defined), cds-tile-group:not(:defined), cds-dismissible-tag:not(:defined), cds-operational-tag:not(:defined), diff --git a/showcase/app/router.ts b/showcase/app/router.ts index c68519da860..a9ceb752431 100644 --- a/showcase/app/router.ts +++ b/showcase/app/router.ts @@ -175,6 +175,7 @@ Router.map(function () { this.route('badge'); this.route('badge-count'); this.route('button'); + this.route('card'); this.route('form', function (): void { this.route('text-input'); this.route('radio-card'); diff --git a/showcase/app/templates/index.gts b/showcase/app/templates/index.gts index 2a972c4610a..5b73ab08c61 100644 --- a/showcase/app/templates/index.gts +++ b/showcase/app/templates/index.gts @@ -437,6 +437,11 @@ const Index: TemplateOnlyComponent =