Commit 8723a60
authored
feat(design-system): migrate DS codebase to new tokens (Step 3) [AR-60245] (#449)
# Phase 3 — Removed tokens (apply)
> Replacements were chosen manually in `step-3-removed-prep.md`. Visual
testing required for affected components.
## Summary
- Files scanned: 780
- Files changed: 1
- Total replacements: 1
- Tokens replaced: 12
- Tokens kept (KEEP): 10
## Replacement decisions
| Old token | Replacement |
| --------- | ----------- |
| `--color-gradient-violet-background` | `linear-gradient(90deg, #001b48
-0.12%, #312e81 99.86%)` |
| `--color-gradient-violet-transparent` | `linear-gradient( 180deg,
rgba(30, 89, 215, 0.4) 0%, rgba(0, 27, 72, 0.16) 100% )` |
| `--color-gradient-blue-light` | `linear-gradient(116deg, #e9eefc
22.81%, #d6e2ff 99.14%)` |
| `--color-gradient-linear-1` | `linear-gradient(90deg, #014afb 0%,
#152a7e 100%)` |
| `--color-marker-magenta-12` | `rgba(255, 0, 183, 0.12)` |
| `--color-marker-magenta-60` | `rgba(255, 0, 183, 0.6)` |
| `--color-marker-magenta-100` | `rgba(255, 0, 183)` |
| `--gradient-violet-background` | `linear-gradient(90deg, #001b48
-0.12%, #312e81 99.86%)` |
| `--gradient-violet-transparent` | `linear-gradient(180deg, rgba(30,
89, 215, 0.4) 0%, rgba(0, 27, 72, 0.16) 100%)` |
| `--gradient-blue-light` | `linear-gradient(116deg, #e9eefc 22.81%,
#d6e2ff 99.14%)` |
| `--spacing-10` | `40px` |
| `--exo-spacing-4x-small` | `1px` |
### Kept (KEEP)
- `--letter-spacing--1percent` — old definition stays in place.
- `--icon-width-extra-large` — old definition stays in place.
- `--icon-width-large` — old definition stays in place.
- `--icon-width-medium` — old definition stays in place.
- `--icon-width-small` — old definition stays in place.
- `--icon-width-tiny` — old definition stays in place.
- `--ds-table-row-small` — old definition stays in place.
- `--ds-table-row-medium` — old definition stays in place.
- `--ds-table-row-large` — old definition stays in place.
- `--ds-table-header-height` — old definition stays in place.
## Replacements per token
| Old token | Replacements |
| --------- | ------------ |
| `--exo-spacing-4x-small` | 1 |
## Affected files (grouped by component)
### `ds-file-upload` (1 replacements)
-
`packages/design-system/src/components/ds-file-upload/components/file-upload/file-upload.module.scss`
— `--exo-spacing-4x-small`×1
## Visual retest checklist
- [x] **ds-file-upload** — Visual check: tokens involved —
`--exo-spacing-4x-small` (replaced: `--exo-spacing-4x-small`)
# Phase 2 — Changed tokens
> Renamed AND value differs. Visual testing required for affected
components.
## Summary
- Files scanned: 780
- Files changed: 28
- Total replacements: 116
- Same-name Changed tokens (no rename, just retest): 2
- Affected components: 21
## Value-change reference
| Token mapping | Old value | New value |
| ------------- | --------- | --------- |
| `--color-red-100 → --color-dap-red-100` | `#f5c2bf` | `#ffd2cf` |
| `--color-negative-100 → --negative-100` | `#f5c2bf` | `#ffd2cf` |
| `--color-background-success → --background-success` | `#ecfdf6`
green-50 | `#d9f7e9` green-075 |
| `--color-status-bg-success → --status-bg-success` | `#ecfdf6` green-50
| `#d9f7e9` green-075 |
| `--color-border-disabled → --border-disabled` | `#e5e8ed` brand-050 |
`#c7c9cc` gray-300 |
| `--color-border-danger-weak → --border-error-weak` | `#f5c2bf` |
`#ffd2cf` |
| `--color-font-disabled → --font-disabled` | `#8b98a6` gray-500 |
`#c7c9cc` gray-300 |
| `--color-icon-danger → --icon-error` | `#d70a00` red-400 | `#a10800`
red-500 |
| `--font-family-base (same name)` | `'Roboto', sans-serif` | `Roboto` |
| `--font-family-code (same name)` | `'Fira Mono', monospace` | `Fira
Mono` |
| `--paragraph-spacing-* → --*-paragraph-space-*` | `unitless integer
(e.g. 8)` | `px (e.g. 8px)` |
## Same-name Changed tokens (value differs, no rename)
### `--font-family-base` — 6 usages
-
`packages/design-system/src/components/ds-button-v3/ds-button-v3.module.scss`
(lines 23)
-
`packages/design-system/src/components/ds-button-v3/ds-button-v3.stories.module.scss`
(lines 16, 33, 50)
- `packages/design-system/src/styles/_root_new.scss` (lines 447)
- `packages/design-system/src/styles/_typography.scss` (lines 140)
### `--font-family-code` — 6 usages
-
`packages/design-system/src/components/ds-typography/ds-typography.stories.module.scss`
(lines 9)
- `packages/design-system/src/stories/colors.module.scss` (lines 58, 72)
- `packages/design-system/src/stories/stories-common.module.scss` (lines
76)
- `packages/design-system/src/styles/_root_new.scss` (lines 448)
- `packages/design-system/src/styles/_typography.scss` (lines 155)
## Replacements per token
| Old token | Replacements |
| --------- | ------------ |
| `--exo-spacing-2x-small` | 31 |
| `--action-cta1` | 12 |
| `--system-status-error` | 6 |
| `--neutral-6` | 6 |
| `--spacing-8` | 5 |
| `--neutral-3` | 4 |
| `--system-status-info` | 4 |
| `--system-status-ok` | 4 |
| `--action-active-light` | 3 |
| `--action-disabled` | 3 |
| `--utility-error` | 3 |
| `--exo-spacing-x-small` | 3 |
| `--spacing-2` | 3 |
| `--action-hover-light` | 2 |
| `--utility-disabled` | 2 |
| `--spacing-1` | 2 |
| `--spacing-3` | 2 |
| `--spacing-6` | 2 |
| `--system-status-in-progress` | 2 |
| `--system-status-pending` | 2 |
| `--system-status-alert` | 2 |
| `--spacing-4` | 2 |
| `--action-cta3` | 1 |
| `--exo-spacing-standard` | 1 |
| `--exo-spacing-small` | 1 |
| `--neutral-7` | 1 |
| `--color-status-bg-failed` | 1 |
| `--utility-in-progress` | 1 |
| `--utility-pending` | 1 |
| `--utility-alert` | 1 |
| `--utility-info` | 1 |
| `--utility-ok` | 1 |
| `--neutral-8` | 1 |
## Affected files (grouped by component)
### `ds-alert-banner` (3 replacements)
-
`packages/design-system/src/components/ds-alert-banner/stories/ds-alert-banner.stories.module.scss`
— `--exo-spacing-2x-small`×3
### `ds-breadcrumb` (5 replacements)
-
`packages/design-system/src/components/ds-breadcrumb/ds-breadcrumb.module.scss`
— `--exo-spacing-2x-small`×5
### `ds-button` (21 replacements)
-
`packages/design-system/src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.scss`
— `--action-active-light`×1, `--system-status-error`×1,
`--action-hover-light`×1, `--utility-disabled`×1, `--action-disabled`×3,
`--utility-error`×2, `--action-cta1`×1, `--action-cta3`×1
-
`packages/design-system/src/components/ds-button/versions/ds-button-new/ds-button-new.module.scss`
— `--exo-spacing-2x-small`×10
### `ds-dialog` (2 replacements)
-
`packages/design-system/src/components/ds-dialog/ds-dialog.module.scss`
— `--neutral-3`×1
-
`packages/design-system/src/components/ds-dialog/ds-dialog.stories.module.scss`
— `--action-cta1`×1
### `ds-dropdown-menu` (1 replacements)
-
`packages/design-system/src/components/ds-dropdown-menu/ds-dropdown-menu.stories.scss`
— `--action-cta1`×1
### `ds-file-upload` (9 replacements)
-
`packages/design-system/src/components/ds-file-upload/components/file-upload-item/file-upload-item.module.scss`
— `--exo-spacing-2x-small`×2, `--exo-spacing-x-small`×1
-
`packages/design-system/src/components/ds-file-upload/components/file-upload/file-upload.module.scss`
— `--exo-spacing-standard`×1, `--exo-spacing-2x-small`×2,
`--exo-spacing-x-small`×2, `--exo-spacing-small`×1
### `ds-form-control` (9 replacements)
-
`packages/design-system/src/components/ds-form-control/ds-form-control.module.scss`
— `--neutral-3`×1
-
`packages/design-system/src/components/ds-form-control/stories/ds-form-control.stories.module.scss`
— `--action-cta1`×1, `--neutral-3`×1
-
`packages/design-system/src/components/ds-form-control/stories/ds-form-control.stories.tsx`
— `--action-cta1`×5, `--neutral-3`×1
### `ds-grid` (1 replacements)
- `packages/design-system/src/components/ds-grid/ds-grid.stories.scss` —
`--neutral-7`×1
### `ds-panel` (6 replacements)
- `packages/design-system/src/components/ds-panel/ds-panel.module.scss`
— `--spacing-1`×1, `--spacing-2`×1, `--spacing-3`×2, `--spacing-6`×2
### `ds-progress-arc` (3 replacements)
-
`packages/design-system/src/components/ds-progress-arc/ds-progress-arc.stories.module.scss`
— `--spacing-2`×1, `--spacing-8`×2
### `ds-progress-donut` (3 replacements)
-
`packages/design-system/src/components/ds-progress-donut/ds-progress-donut.stories.module.scss`
— `--spacing-2`×1, `--spacing-8`×2
### `ds-status-badge` (1 replacements)
-
`packages/design-system/src/components/ds-status-badge/ds-status-badge.module.scss`
— `--color-status-bg-failed`×1
### `ds-stepper` (1 replacements)
-
`packages/design-system/src/components/ds-stepper/ds-stepper.module.scss`
— `--spacing-8`×1
### `ds-system-status` (19 replacements)
-
`packages/design-system/src/components/ds-system-status/ds-system-status.module.scss`
— `--system-status-in-progress`×2, `--system-status-pending`×2,
`--system-status-error`×2, `--system-status-alert`×2,
`--utility-in-progress`×1, `--system-status-info`×2,
`--system-status-ok`×2, `--utility-disabled`×1, `--utility-pending`×1,
`--utility-error`×1, `--utility-alert`×1, `--utility-info`×1,
`--utility-ok`×1
### `ds-table` (17 replacements)
-
`packages/design-system/src/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.scss`
— `--action-cta1`×1, `--neutral-6`×2
-
`packages/design-system/src/components/ds-table/components/ds-table-header/ds-table-header.module.scss`
— `--neutral-6`×1
-
`packages/design-system/src/components/ds-table/components/ds-table-row/ds-table-row.tsx`
— `--action-active-light`×1
- `packages/design-system/src/components/ds-table/ds-table.module.scss`
— `--neutral-6`×1
-
`packages/design-system/src/components/ds-table/stories/components/progress-infographic/progress-infographic.module.scss`
— `--system-status-error`×1, `--system-status-info`×1,
`--system-status-ok`×1, `--neutral-6`×1
-
`packages/design-system/src/components/ds-table/stories/ds-table.stories.module.scss`
— `--system-status-error`×2, `--system-status-info`×1,
`--system-status-ok`×1, `--spacing-1`×1, `--spacing-4`×2
### `ds-tabs` (8 replacements)
-
`packages/design-system/src/components/ds-tabs/components/ds-tabs-tab/ds-tabs-tab.module.scss`
— `--exo-spacing-2x-small`×8
### `ds-tooltip` (1 replacements)
-
`packages/design-system/src/components/ds-tooltip/ds-tooltip.module.scss`
— `--exo-spacing-2x-small`×1
### `styles` (6 replacements)
- `packages/design-system/src/styles/mixins/_list.scss` —
`--action-active-light`×1, `--action-hover-light`×1, `--action-cta1`×2,
`--neutral-6`×1, `--neutral-8`×1
## Visual retest checklist
- [x] **ds-alert-banner** — Visual check: tokens involved —
`--exo-spacing-2x-small`
- [x] **ds-breadcrumb** — Visual check: tokens involved —
`--exo-spacing-2x-small`
- [x] **ds-button** — Verify: disabled states (background, border, font
tone)
- [x] **ds-button-v3** — Verify: font fallback chain (Roboto / Fira Mono
now bare)
- [x] **ds-dialog** — Visual check: tokens involved — `--neutral-3`,
`--action-cta1`
- [x] **ds-dropdown-menu** — Visual check: tokens involved —
`--action-cta1`
- [x] **ds-file-upload** — Visual check: tokens involved —
`--exo-spacing-standard`, `--exo-spacing-2x-small`,
`--exo-spacing-x-small`, `--exo-spacing-small`
- [x] **ds-form-control** — Visual check: tokens involved —
`--neutral-3`, `--action-cta1`
- [x] **ds-grid** — Visual check: tokens involved — `--neutral-7`
- [x] **ds-panel** — Visual check: tokens involved — `--spacing-1`,
`--spacing-2`, `--spacing-3`, `--spacing-6`
- [x] **ds-progress-arc** — Visual check: tokens involved —
`--spacing-2`, `--spacing-8`
- [x] **ds-progress-donut** — Visual check: tokens involved —
`--spacing-2`, `--spacing-8`
- [x] **ds-status-badge** — Visual check: tokens involved —
`--color-status-bg-failed`
- [x] **ds-stepper** — Visual check: tokens involved — `--spacing-8`
- [x] **ds-system-status** — Verify: disabled states (background,
border, font tone)
- [x] **ds-table** — Visual check: tokens involved — `--action-cta1`,
`--neutral-6`, `--action-active-light`, `--system-status-error`,
`--system-status-info`, `--system-status-ok`, `--spacing-1`,
`--spacing-4`
- [x] **ds-tabs** — Visual check: tokens involved —
`--exo-spacing-2x-small`
- [x] **ds-tooltip** — Visual check: tokens involved —
`--exo-spacing-2x-small`
- [x] **ds-typography** — Verify: font fallback chain (Roboto / Fira
Mono now bare)
- [x] **stories** — Verify: font fallback chain (Roboto / Fira Mono now
bare)
- [x] **styles** — Verify: font fallback chain (Roboto / Fira Mono now
bare)1 parent 6a917f0 commit 8723a60
33 files changed
Lines changed: 344 additions & 259 deletions
File tree
- .changeset
- packages/design-system/src
- components
- ds-alert-banner/stories
- ds-breadcrumb
- ds-button/versions
- ds-button-legacy
- ds-button-new
- ds-dialog
- ds-file-upload/components
- file-upload-item
- file-upload
- ds-form-control
- stories
- ds-grid
- ds-icon
- ds-panel
- ds-progress-arc
- ds-progress-donut
- ds-status-badge
- ds-stepper
- ds-system-status
- ds-table
- components
- ds-table-bulk-actions
- ds-table-header
- ds-table-row
- stories
- components/progress-infographic
- ds-tabs/components/ds-tabs-tab
- ds-tooltip
- stories
- styles
- mixins
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
| 451 | + | |
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
| 499 | + | |
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
| 547 | + | |
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
| 595 | + | |
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments