Skip to content

Commit 1471a5b

Browse files
committed
Reduce color mappings
1 parent 05f5a20 commit 1471a5b

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

polaris-migrator/src/migrations/replace-sass-color/color-maps.ts

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,21 @@ export const colorMap = createMap({
1515
base: '--p-interactive',
1616
},
1717
green: {
18-
text: '--text-success',
1918
dark: '--text-success',
2019
base: '--text-success',
2120
},
2221
yellow: {
23-
text: '--p-text-warning',
2422
dark: '--p-text-warning',
2523
base: '--p-text-warning',
2624
},
2725
red: {
28-
text: '--p-text-critical',
2926
dark: '--p-text-critical',
3027
base: '--p-text-critical',
3128
},
3229
ink: {
3330
base: '--p-text',
3431
lighter: '--p-text-subdued',
35-
lightest: '--p-text-disabled',
32+
lightest: '--p-text-subdued',
3633
},
3734
black: {
3835
base: '--p-text',
@@ -43,20 +40,20 @@ export const colorMap = createMap({
4340
});
4441

4542
export const backgroundColorMap = createMap({
46-
ink: {
47-
lighter: '--p-surface-neutral',
48-
},
4943
green: {
50-
base: '--p-surface-success',
51-
light: '--p-surface-success-subdued',
44+
light: '--p-surface-success',
45+
lighter: '--p-surface-success-subdued',
5246
},
5347
yellow: {
54-
base: '--p-surface-warning',
55-
light: '--p-surface-warning-subdued',
48+
light: '--p-surface-warning',
49+
lighter: '--p-surface-warning-subdued',
5650
},
5751
red: {
58-
base: '--p-surface-critical',
59-
light: '--p-surface-critical-subdued',
52+
light: '--p-surface-critical',
53+
lighter: '--p-surface-critical-subdued',
54+
},
55+
ink: {
56+
lighter: '--p-surface-neutral',
6057
},
6158
sky: {
6259
base: '--p-surface-neutral',
@@ -72,12 +69,6 @@ export const backgroundColorMap = createMap({
7269
});
7370

7471
export const borderColorMap = createMap({
75-
indigo: {
76-
base: '--p-interactive',
77-
},
78-
blue: {
79-
base: '--p-border-subdued',
80-
},
8172
green: {
8273
dark: '--p-border-success',
8374
base: '--p-border-success',

0 commit comments

Comments
 (0)