Skip to content

Commit d8665a3

Browse files
dchyundidoo
authored andcommitted
Feat: Card carbonization tokens and styles
1 parent b81a78e commit d8665a3

File tree

27 files changed

+1441
-11
lines changed

27 files changed

+1441
-11
lines changed

packages/components/src/styles/components/card/container.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010
$hds-card-container-style: ("surface", "elevation");
1111
$hds-card-container-levels: ("base", "mid", "high");
12-
$hds-card-container-border-radius: var(--token-border-radius-medium);
1312

1413
.hds-card__container {
1514
position: relative;
16-
background-color: #fff;
17-
border-radius: $hds-card-container-border-radius;
15+
padding: var(--token-card-padding);
16+
background-color: var(--token-card-surface-color-primary);
17+
border-radius: var(--token-border-radius-medium);
1818
}
1919

2020
// LEVEL (elevation style as "drop" + "border" shadow effects)
@@ -47,11 +47,11 @@ $hds-card-container-border-radius: var(--token-border-radius-medium);
4747
// BACKGROUND
4848

4949
.hds-card__container--background-neutral-primary {
50-
background-color: var(--token-color-surface-primary);
50+
background-color: var(--token-card-surface-color-primary);
5151
}
5252

5353
.hds-card__container--background-neutral-secondary {
54-
background-color: var(--token-color-surface-faint);
54+
background-color: var(--token-card-surface-color-secondary);
5555
}
5656

5757
// OVERFLOW

packages/tokens/dist/devdot/css/tokens.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@
360360
--token-button-icon-size-small: 12px;
361361
--token-button-icon-size-medium: 16px;
362362
--token-button-icon-size-large: 24px;
363+
--token-card-padding: 0px;
364+
--token-card-surface-color-primary: #ffffff;
365+
--token-card-surface-color-secondary: #fafafa;
363366
--token-form-label-color: #0c0c0e;
364367
--token-form-legend-color: #0c0c0e;
365368
--token-form-helper-text-color: #656a76;

0 commit comments

Comments
 (0)