@design-system-rte/core 0.3.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/components/button/button.interface.d.ts +2 -4
  3. package/components/button/{button.constants.ts → common/common-button.constants.ts} +1 -1
  4. package/components/button/common/common-button.d.ts +2 -0
  5. package/components/button/icon-button/icon-button.interface.d.ts +12 -0
  6. package/components/grid/grid.scss +21 -20
  7. package/components/grid/grid.stories.scss +2 -2
  8. package/components/icon/icon-utils.ts +3 -0
  9. package/components/split-button/split-button.constants.ts +13 -0
  10. package/components/split-button/split-button.interface.d.ts +19 -0
  11. package/constants/keyboard.constants.ts +1 -0
  12. package/css/bleu_iceberg.css +1 -1
  13. package/css/rte-themes.css +1 -1
  14. package/css/vert_foret.css +1 -1
  15. package/design-tokens/generator.ts +15 -0
  16. package/design-tokens/main.scss +10 -0
  17. package/design-tokens/scripts/common.ts +28 -0
  18. package/design-tokens/scripts/primitives-generator.spec.ts +84 -0
  19. package/{tokens → design-tokens/scripts}/primitives-generator.ts +9 -17
  20. package/design-tokens/scripts/tokens-generator.spec.ts +184 -0
  21. package/design-tokens/scripts/tokens-generator.ts +128 -0
  22. package/design-tokens/scripts/tokens-generators/colors.ts +133 -0
  23. package/design-tokens/scripts/tokens-generators/layout.ts +22 -0
  24. package/design-tokens/scripts/tokens-generators/opacity.ts +14 -0
  25. package/design-tokens/scripts/tokens-generators/shadows.ts +18 -0
  26. package/design-tokens/scripts/tokens-generators/typography.ts +58 -0
  27. package/design-tokens/tokens/_elevation.scss +144 -0
  28. package/design-tokens/tokens/_mixins.scss +250 -0
  29. package/design-tokens/tokens/_shadows.scss +36 -0
  30. package/design-tokens/tokens/_themes.scss +14 -0
  31. package/{tokens → design-tokens/tokens}/_typography.scss +2 -2
  32. package/design-tokens/tokens/themes/_bleu-iceberg-dark.scss +163 -0
  33. package/design-tokens/tokens/themes/_bleu-iceberg-light.scss +163 -0
  34. package/design-tokens/tokens/themes/_main.scss +6 -0
  35. package/design-tokens/tokens/themes/_vert-foret-dark.scss +163 -0
  36. package/design-tokens/tokens/themes/_vert-foret-light.scss +163 -0
  37. package/design-tokens/tokens/themes/_violet-dark.scss +163 -0
  38. package/design-tokens/tokens/themes/_violet-light.scss +163 -0
  39. package/package.json +6 -5
  40. package/tokens/_mixins.scss +0 -284
  41. package/tokens/_shadows.scss +0 -36
  42. package/tokens/_themes.scss +0 -914
  43. package/tokens/main.scss +0 -9
  44. package/tokens/tokens-generator.ts +0 -197
  45. /package/{tokens → design-tokens}/primitives/_colors.scss +0 -0
  46. /package/{tokens → design-tokens}/primitives/_devColors.scss +0 -0
  47. /package/{tokens → design-tokens}/primitives/_typography.scss +0 -0
  48. /package/{tokens → design-tokens/tokens}/_border.scss +0 -0
  49. /package/{tokens → design-tokens/tokens}/_layout.scss +0 -0
  50. /package/{tokens → design-tokens/tokens}/_opacity.scss +0 -0
  51. /package/{tokens → design-tokens/tokens}/_size.scss +0 -0
  52. /package/{tokens → design-tokens/tokens}/_spacing.scss +0 -0
@@ -0,0 +1,163 @@
1
+ @use '../../primitives/colors' as *;
2
+ @use '../../primitives/devColors' as *;
3
+
4
+ $bleu-iceberg-light: (
5
+ "background-default": $core-white,
6
+ "background-hover": $greyscale-50,
7
+ "background-pressed": $greyscale-100,
8
+ "background-disabled": $greyscale-0,
9
+ "background-inverse": $greyscale-900,
10
+ "background-brand-default": $bleu-iceberg-600,
11
+ "background-brand-hover": $bleu-iceberg-700,
12
+ "background-brand-pressed": $bleu-iceberg-800,
13
+ "background-brand-selected-default": $bleu-iceberg-600,
14
+ "background-brand-selected-hover": $bleu-iceberg-700,
15
+ "background-brand-unselected-default": $bleu-iceberg-100,
16
+ "background-brand-unselected-hover": $bleu-iceberg-200,
17
+ "background-brand-inverse-default": $core-white,
18
+ "background-brand-inverse-hover": $bleu-iceberg-50,
19
+ "background-brand-inverse-pressed": $bleu-iceberg-100,
20
+ "background-danger-default": $rouge-indications-600,
21
+ "background-danger-hover": $rouge-indications-700,
22
+ "background-danger-pressed": $rouge-indications-800,
23
+ "background-status-info-subtle": $bleu-digital-100,
24
+ "background-status-info": $bleu-digital-400,
25
+ "background-status-warning": $jaune-500,
26
+ "background-status-warning-subtle": $jaune-100,
27
+ "background-status-success": $vert-digital-400,
28
+ "background-status-success-subtle": $vert-digital-200,
29
+ "background-status-alert": $rouge-indications-500,
30
+ "background-status-alert-subtle": $rouge-indications-100,
31
+ "border-primary": $greyscale-600,
32
+ "border-secondary": $greyscale-400,
33
+ "border-tertiary": $greyscale-200,
34
+ "border-disabled": $greyscale-200,
35
+ "border-inverse": $core-white,
36
+ "border-brand-default": $bleu-iceberg-600,
37
+ "border-brand-focused": $bleu-iceberg-900,
38
+ "border-danger": $rouge-indications-600,
39
+ "border-info": $bleu-digital-500,
40
+ "border-warning": $jaune-indications-400,
41
+ "border-success": $vert-digital-600,
42
+ "chart-brand": $bleu-iceberg-500,
43
+ "chart-neutral": $greyscale-350,
44
+ "chart-category-1": $bleu-iceberg-500,
45
+ "chart-category-2": $fuschia-500,
46
+ "chart-category-3": $violet-600,
47
+ "chart-category-4": $vert-foret-400,
48
+ "chart-category-5": $marine-900,
49
+ "chart-category-6": $jaune-indications-500,
50
+ "chart-category-7": $taupe-700,
51
+ "chart-category-8": $bleu-petrole-400,
52
+ "chart-bleu-iceberg": $bleu-iceberg-100,
53
+ "chart-bleu-iceberg-bold": $bleu-iceberg-500,
54
+ "chart-vert-foret": $vert-foret-100,
55
+ "chart-vert-foret-bold": $vert-foret-400,
56
+ "chart-violet": $violet-300,
57
+ "chart-violet-bold": $violet-600,
58
+ "chart-bleu-rte": $bleu-rte-100,
59
+ "chart-bleu-rte-bold": $bleu-rte-600,
60
+ "chart-bleu-digital": $bleu-digital-100,
61
+ "chart-bleu-digital-bold": $bleu-digital-500,
62
+ "chart-marine": $marine-100,
63
+ "chart-marine-bold": $marine-600,
64
+ "chart-bleu-petrole": $bleu-petrole-100,
65
+ "chart-bleu-petrole-bold": $bleu-petrole-500,
66
+ "chart-bleu-cyan": $bleu-cyan-100,
67
+ "chart-bleu-cyan-bold": $bleu-cyan-500,
68
+ "chart-vert": $vert-100,
69
+ "chart-vert-bold": $vert-500,
70
+ "chart-vert-indications": $vert-indications-200,
71
+ "chart-vert-indications-bold": $vert-indications-400,
72
+ "chart-vert-digital": $vert-digital-100,
73
+ "chart-vert-digital-bold": $vert-digital-400,
74
+ "chart-jaune": $jaune-100,
75
+ "chart-jaune-bold": $jaune-500,
76
+ "chart-jaune-ocre": $jaune-ocre-100,
77
+ "chart-jaune-ocre-bold": $jaune-ocre-400,
78
+ "chart-jaune-indications": $jaune-indications-100,
79
+ "chart-jaune-indications-bold": $jaune-indications-400,
80
+ "chart-saumon": $saumon-100,
81
+ "chart-saumon-bold": $saumon-500,
82
+ "chart-rose-digital": $rose-digital-200,
83
+ "chart-rose-digital-bold": $rose-digital-500,
84
+ "chart-fuschia": $fuschia-100,
85
+ "chart-fuschia-bold": $fuschia-500,
86
+ "chart-rouge-indications": $rouge-indications-200,
87
+ "chart-rouge-indications-bold": $rouge-indications-500,
88
+ "chart-greyscale": $greyscale-50,
89
+ "chart-greyscale-bold": $greyscale-550,
90
+ "chart-taupe": $taupe-200,
91
+ "chart-taupe-bold": $taupe-600,
92
+ "content-primary": $greyscale-900,
93
+ "content-secondary": $greyscale-800,
94
+ "content-tertiary": $greyscale-600,
95
+ "content-primary-inverse": $core-white,
96
+ "content-secondary-inverse": $greyscale-100,
97
+ "content-tertiary-inverse": $greyscale-300,
98
+ "content-disabled": $greyscale-200,
99
+ "content-brand-default": $bleu-iceberg-600,
100
+ "content-brand-hover": $bleu-iceberg-700,
101
+ "content-brand-press": $bleu-iceberg-800,
102
+ "content-link-default": $bleu-digital-500,
103
+ "content-link-hover": $bleu-digital-600,
104
+ "content-link-press": $bleu-digital-700,
105
+ "content-link-visited": $violet-600,
106
+ "content-link-visited-hover": $violet-700,
107
+ "content-link-visited-press": $violet-800,
108
+ "content-danger": $rouge-indications-600,
109
+ "content-danger-hover": $rouge-indications-700,
110
+ "content-danger-press": $rouge-indications-800,
111
+ "content-danger-inverse": $core-white,
112
+ "content-info": $bleu-digital-500,
113
+ "content-info-inverse": $core-white,
114
+ "content-info-bold": $bleu-digital-600,
115
+ "content-warning": $jaune-indications-400,
116
+ "content-warning-inverse": $core-white,
117
+ "content-warning-bold": $jaune-indications-500,
118
+ "content-success": $vert-digital-600,
119
+ "content-success-inverse": $core-white,
120
+ "content-success-bold": $vert-digital-700,
121
+ "content-decorative": $greyscale-900,
122
+ "content-status": $greyscale-900,
123
+ "decorative-neutral": $greyscale-50,
124
+ "decorative-bleu-iceberg": $bleu-iceberg-200,
125
+ "decorative-vert-foret": $vert-foret-100,
126
+ "decorative-violet": $violet-200,
127
+ "decorative-bleu-rte": $bleu-rte-200,
128
+ "decorative-bleu-digital": $bleu-digital-200,
129
+ "decorative-marine": $marine-100,
130
+ "decorative-bleu-petrole": $bleu-petrole-200,
131
+ "decorative-bleu-cyan": $bleu-cyan-200,
132
+ "decorative-vert": $vert-200,
133
+ "decorative-vert-indications": $vert-indications-200,
134
+ "decorative-vert-digital": $vert-digital-200,
135
+ "decorative-jaune": $jaune-100,
136
+ "decorative-jaune-ocre": $jaune-ocre-200,
137
+ "decorative-jaune-indications": $jaune-indications-200,
138
+ "decorative-saumon": $saumon-300,
139
+ "decorative-rose-digital": $rose-digital-200,
140
+ "decorative-fuschia": $fuschia-200,
141
+ "decorative-rouge-indication": $rouge-indications-100,
142
+ "decorative-taupe": $taupe-200,
143
+ "elevation-surface-inner-shadow": rgba(0, 0, 0, 0.00),
144
+ "elevation-surface-shadow-1": rgba(255, 255, 255, 0.00),
145
+ "elevation-surface-shadow-2": rgba(255, 255, 255, 0.00),
146
+ "elevation-surface-shadow-3": rgba(255, 255, 255, 0.00),
147
+ "elevation-surface-shadow-4": rgba(255, 255, 255, 0.00),
148
+ "elevation-surface-shadow-5": rgba(255, 255, 255, 0.00),
149
+ "elevation-surface-shadow-6": rgba(255, 255, 255, 0.00),
150
+ "elevation-shadow-ambient": rgba(0, 0, 0, 0.12),
151
+ "elevation-shadow-ambient-darker": rgba(0, 0, 0, 0.20),
152
+ "elevation-shadow-ambient-brand": rgba(0, 0, 0, 0.25),
153
+ "elevation-shadow-key": rgba(0, 0, 0, 0.14),
154
+ "elevation-shadow-key-darker": rgba(0, 0, 0, 0.24),
155
+ "elevation-shadow-key-brand": rgba(0, 0, 0, 0.31),
156
+ "gradient-default": #ffffff,
157
+ // TODO remove this color (not a real token)
158
+ "background-brand-hover-opacity-20": $bleu-iceberg-700-opacity-20,
159
+ // TODO remove this color (not a real token)
160
+ "background-danger-hover-opacity-20": $rouge-indications-700-opacity-20,
161
+ // TODO remove this color (not a real token)
162
+ "background-hover-opacity-50": $greyscale-50-opacity-50,
163
+ );
@@ -0,0 +1,6 @@
1
+ @forward "bleu-iceberg-light";
2
+ @forward "bleu-iceberg-dark";
3
+ @forward "violet-light";
4
+ @forward "violet-dark";
5
+ @forward "vert-foret-light";
6
+ @forward "vert-foret-dark";
@@ -0,0 +1,163 @@
1
+ @use '../../primitives/colors' as *;
2
+ @use '../../primitives/devColors' as *;
3
+
4
+ $vert-foret-dark: (
5
+ "background-default": $greyscale-900,
6
+ "background-hover": $greyscale-800,
7
+ "background-pressed": $greyscale-700,
8
+ "background-disabled": $greyscale-800,
9
+ "background-inverse": $core-white,
10
+ "background-brand-default": $vert-foret-300,
11
+ "background-brand-hover": $vert-foret-200,
12
+ "background-brand-pressed": $vert-foret-100,
13
+ "background-brand-selected-default": $vert-foret-300,
14
+ "background-brand-selected-hover": $vert-foret-200,
15
+ "background-brand-unselected-default": $vert-foret-700,
16
+ "background-brand-unselected-hover": $vert-foret-600,
17
+ "background-brand-inverse-default": $greyscale-900,
18
+ "background-brand-inverse-hover": $vert-foret-700,
19
+ "background-brand-inverse-pressed": $vert-foret-600,
20
+ "background-danger-default": $rouge-indications-400,
21
+ "background-danger-hover": $rouge-indications-500,
22
+ "background-danger-pressed": $rouge-indications-600,
23
+ "background-status-info-subtle": $bleu-digital-100,
24
+ "background-status-info": $bleu-digital-400,
25
+ "background-status-warning": $jaune-500,
26
+ "background-status-warning-subtle": $jaune-100,
27
+ "background-status-success": $vert-digital-400,
28
+ "background-status-success-subtle": $vert-digital-200,
29
+ "background-status-alert": $rouge-indications-500,
30
+ "background-status-alert-subtle": $rouge-indications-100,
31
+ "border-primary": $greyscale-400,
32
+ "border-secondary": $greyscale-600,
33
+ "border-tertiary": $greyscale-800,
34
+ "border-disabled": $greyscale-700,
35
+ "border-inverse": $greyscale-900,
36
+ "border-brand-default": $vert-foret-0,
37
+ "border-brand-focused": $vert-foret-0,
38
+ "border-danger": $rouge-indications-600,
39
+ "border-info": $bleu-digital-500,
40
+ "border-warning": $jaune-indications-400,
41
+ "border-success": $vert-digital-600,
42
+ "chart-brand": $vert-foret-500,
43
+ "chart-neutral": $greyscale-350,
44
+ "chart-category-1": $bleu-iceberg-500,
45
+ "chart-category-2": $fuschia-500,
46
+ "chart-category-3": $violet-600,
47
+ "chart-category-4": $vert-foret-500,
48
+ "chart-category-5": $marine-900,
49
+ "chart-category-6": $jaune-indications-500,
50
+ "chart-category-7": $taupe-700,
51
+ "chart-category-8": $bleu-petrole-400,
52
+ "chart-bleu-iceberg": $bleu-iceberg-100,
53
+ "chart-bleu-iceberg-bold": $bleu-iceberg-500,
54
+ "chart-vert-foret": $vert-foret-100,
55
+ "chart-vert-foret-bold": $vert-foret-400,
56
+ "chart-violet": $violet-300,
57
+ "chart-violet-bold": $violet-600,
58
+ "chart-bleu-rte": $bleu-rte-100,
59
+ "chart-bleu-rte-bold": $bleu-rte-600,
60
+ "chart-bleu-digital": $bleu-digital-100,
61
+ "chart-bleu-digital-bold": $bleu-digital-500,
62
+ "chart-marine": $marine-100,
63
+ "chart-marine-bold": $marine-500,
64
+ "chart-bleu-petrole": $bleu-petrole-100,
65
+ "chart-bleu-petrole-bold": $bleu-petrole-500,
66
+ "chart-bleu-cyan": $bleu-cyan-100,
67
+ "chart-bleu-cyan-bold": $bleu-cyan-500,
68
+ "chart-vert": $vert-100,
69
+ "chart-vert-bold": $vert-500,
70
+ "chart-vert-indications": $vert-indications-200,
71
+ "chart-vert-indications-bold": $vert-indications-400,
72
+ "chart-vert-digital": $vert-digital-100,
73
+ "chart-vert-digital-bold": $vert-digital-400,
74
+ "chart-jaune": $jaune-100,
75
+ "chart-jaune-bold": $jaune-500,
76
+ "chart-jaune-ocre": $jaune-ocre-100,
77
+ "chart-jaune-ocre-bold": $jaune-ocre-400,
78
+ "chart-jaune-indications": $jaune-indications-100,
79
+ "chart-jaune-indications-bold": $jaune-indications-400,
80
+ "chart-saumon": $saumon-100,
81
+ "chart-saumon-bold": $saumon-500,
82
+ "chart-rose-digital": $rose-digital-200,
83
+ "chart-rose-digital-bold": $rose-digital-500,
84
+ "chart-fuschia": $fuschia-100,
85
+ "chart-fuschia-bold": $fuschia-500,
86
+ "chart-rouge-indications": $rouge-indications-100,
87
+ "chart-rouge-indications-bold": $rouge-indications-500,
88
+ "chart-greyscale": $greyscale-50,
89
+ "chart-greyscale-bold": $greyscale-550,
90
+ "chart-taupe": $taupe-200,
91
+ "chart-taupe-bold": $taupe-600,
92
+ "content-primary": $core-white,
93
+ "content-secondary": $greyscale-100,
94
+ "content-tertiary": $greyscale-300,
95
+ "content-primary-inverse": $greyscale-900,
96
+ "content-secondary-inverse": $greyscale-800,
97
+ "content-tertiary-inverse": $greyscale-600,
98
+ "content-disabled": $greyscale-700,
99
+ "content-brand-default": $vert-foret-0,
100
+ "content-brand-hover": $vert-foret-50,
101
+ "content-brand-press": $vert-foret-100,
102
+ "content-link-default": $bleu-digital-500,
103
+ "content-link-hover": $bleu-digital-400,
104
+ "content-link-press": $bleu-digital-300,
105
+ "content-link-visited": $violet-500,
106
+ "content-link-visited-hover": $violet-400,
107
+ "content-link-visited-press": $violet-300,
108
+ "content-danger": $rouge-indications-400,
109
+ "content-danger-hover": $rouge-indications-500,
110
+ "content-danger-press": $rouge-indications-600,
111
+ "content-danger-inverse": $core-white,
112
+ "content-info": $bleu-digital-500,
113
+ "content-info-inverse": $core-white,
114
+ "content-info-bold": $bleu-digital-400,
115
+ "content-warning": $jaune-indications-400,
116
+ "content-warning-inverse": $core-white,
117
+ "content-warning-bold": $jaune-indications-300,
118
+ "content-success": $vert-digital-600,
119
+ "content-success-inverse": $core-white,
120
+ "content-success-bold": $vert-digital-500,
121
+ "content-decorative": $greyscale-900,
122
+ "content-status": $greyscale-900,
123
+ "decorative-neutral": $greyscale-50,
124
+ "decorative-bleu-iceberg": $bleu-iceberg-200,
125
+ "decorative-vert-foret": $vert-foret-100,
126
+ "decorative-violet": $violet-200,
127
+ "decorative-bleu-rte": $bleu-rte-200,
128
+ "decorative-bleu-digital": $bleu-digital-200,
129
+ "decorative-marine": $marine-100,
130
+ "decorative-bleu-petrole": $bleu-petrole-200,
131
+ "decorative-bleu-cyan": $bleu-cyan-200,
132
+ "decorative-vert": $vert-200,
133
+ "decorative-vert-indications": $vert-indications-200,
134
+ "decorative-vert-digital": $vert-digital-200,
135
+ "decorative-jaune": $jaune-100,
136
+ "decorative-jaune-ocre": $jaune-ocre-200,
137
+ "decorative-jaune-indications": $jaune-indications-200,
138
+ "decorative-saumon": $saumon-300,
139
+ "decorative-rose-digital": $rose-digital-200,
140
+ "decorative-fuschia": $fuschia-200,
141
+ "decorative-rouge-indication": $rouge-indications-100,
142
+ "decorative-taupe": $taupe-200,
143
+ "elevation-surface-inner-shadow": rgba(0, 0, 0, 0.20),
144
+ "elevation-surface-shadow-1": rgba(255, 255, 255, 0.03),
145
+ "elevation-surface-shadow-2": rgba(255, 255, 255, 0.05),
146
+ "elevation-surface-shadow-3": rgba(255, 255, 255, 0.08),
147
+ "elevation-surface-shadow-4": rgba(255, 255, 255, 0.10),
148
+ "elevation-surface-shadow-5": rgba(255, 255, 255, 0.12),
149
+ "elevation-surface-shadow-6": rgba(255, 255, 255, 0.14),
150
+ "elevation-shadow-ambient": rgba(0, 0, 0, 0.20),
151
+ "elevation-shadow-ambient-darker": rgba(0, 0, 0, 0.40),
152
+ "elevation-shadow-ambient-brand": rgba(0, 0, 0, 0.17),
153
+ "elevation-shadow-key": rgba(0, 0, 0, 0.28),
154
+ "elevation-shadow-key-darker": rgba(0, 0, 0, 0.48),
155
+ "elevation-shadow-key-brand": rgba(0, 0, 0, 0.21),
156
+ "gradient-default": #ffffff,
157
+ // TODO remove this color (not a real token)
158
+ "background-brand-hover-opacity-20": $vert-foret-200-opacity-20,
159
+ // TODO remove this color (not a real token)
160
+ "background-danger-hover-opacity-20": $rouge-indications-500-opacity-20,
161
+ // TODO remove this color (not a real token)
162
+ "background-hover-opacity-50": $greyscale-800-opacity-50,
163
+ );
@@ -0,0 +1,163 @@
1
+ @use '../../primitives/colors' as *;
2
+ @use '../../primitives/devColors' as *;
3
+
4
+ $vert-foret-light: (
5
+ "background-default": $core-white,
6
+ "background-hover": $greyscale-50,
7
+ "background-pressed": $greyscale-100,
8
+ "background-disabled": $greyscale-0,
9
+ "background-inverse": $greyscale-900,
10
+ "background-brand-default": $vert-foret-600,
11
+ "background-brand-hover": $vert-foret-700,
12
+ "background-brand-pressed": $vert-foret-800,
13
+ "background-brand-selected-default": $vert-foret-600,
14
+ "background-brand-selected-hover": $vert-foret-700,
15
+ "background-brand-unselected-default": $vert-foret-100,
16
+ "background-brand-unselected-hover": $vert-foret-200,
17
+ "background-brand-inverse-default": $core-white,
18
+ "background-brand-inverse-hover": $vert-foret-50,
19
+ "background-brand-inverse-pressed": $vert-foret-100,
20
+ "background-danger-default": $rouge-indications-600,
21
+ "background-danger-hover": $rouge-indications-700,
22
+ "background-danger-pressed": $rouge-indications-800,
23
+ "background-status-info-subtle": $bleu-digital-100,
24
+ "background-status-info": $bleu-digital-400,
25
+ "background-status-warning": $jaune-500,
26
+ "background-status-warning-subtle": $jaune-100,
27
+ "background-status-success": $vert-digital-400,
28
+ "background-status-success-subtle": $vert-digital-200,
29
+ "background-status-alert": $rouge-indications-500,
30
+ "background-status-alert-subtle": $rouge-indications-100,
31
+ "border-primary": $greyscale-600,
32
+ "border-secondary": $greyscale-400,
33
+ "border-tertiary": $greyscale-200,
34
+ "border-disabled": $greyscale-200,
35
+ "border-inverse": $core-white,
36
+ "border-brand-default": $vert-foret-600,
37
+ "border-brand-focused": $vert-foret-900,
38
+ "border-danger": $rouge-indications-600,
39
+ "border-info": $bleu-digital-500,
40
+ "border-warning": $jaune-indications-400,
41
+ "border-success": $vert-digital-600,
42
+ "chart-brand": $vert-foret-500,
43
+ "chart-neutral": $greyscale-350,
44
+ "chart-category-1": $bleu-iceberg-500,
45
+ "chart-category-2": $fuschia-500,
46
+ "chart-category-3": $violet-600,
47
+ "chart-category-4": $vert-foret-500,
48
+ "chart-category-5": $marine-900,
49
+ "chart-category-6": $jaune-indications-500,
50
+ "chart-category-7": $taupe-700,
51
+ "chart-category-8": $bleu-petrole-400,
52
+ "chart-bleu-iceberg": $bleu-iceberg-100,
53
+ "chart-bleu-iceberg-bold": $bleu-iceberg-500,
54
+ "chart-vert-foret": $vert-foret-100,
55
+ "chart-vert-foret-bold": $vert-foret-400,
56
+ "chart-violet": $violet-300,
57
+ "chart-violet-bold": $violet-600,
58
+ "chart-bleu-rte": $bleu-rte-100,
59
+ "chart-bleu-rte-bold": $bleu-rte-600,
60
+ "chart-bleu-digital": $bleu-digital-100,
61
+ "chart-bleu-digital-bold": $bleu-digital-500,
62
+ "chart-marine": $marine-100,
63
+ "chart-marine-bold": $marine-500,
64
+ "chart-bleu-petrole": $bleu-petrole-100,
65
+ "chart-bleu-petrole-bold": $bleu-petrole-500,
66
+ "chart-bleu-cyan": $bleu-cyan-100,
67
+ "chart-bleu-cyan-bold": $bleu-cyan-500,
68
+ "chart-vert": $vert-100,
69
+ "chart-vert-bold": $vert-500,
70
+ "chart-vert-indications": $vert-indications-200,
71
+ "chart-vert-indications-bold": $vert-indications-400,
72
+ "chart-vert-digital": $vert-digital-100,
73
+ "chart-vert-digital-bold": $vert-digital-400,
74
+ "chart-jaune": $jaune-100,
75
+ "chart-jaune-bold": $jaune-500,
76
+ "chart-jaune-ocre": $jaune-ocre-100,
77
+ "chart-jaune-ocre-bold": $jaune-ocre-400,
78
+ "chart-jaune-indications": $jaune-indications-100,
79
+ "chart-jaune-indications-bold": $jaune-indications-400,
80
+ "chart-saumon": $saumon-100,
81
+ "chart-saumon-bold": $saumon-500,
82
+ "chart-rose-digital": $rose-digital-200,
83
+ "chart-rose-digital-bold": $rose-digital-500,
84
+ "chart-fuschia": $fuschia-100,
85
+ "chart-fuschia-bold": $fuschia-500,
86
+ "chart-rouge-indications": $rouge-indications-100,
87
+ "chart-rouge-indications-bold": $rouge-indications-500,
88
+ "chart-greyscale": $greyscale-50,
89
+ "chart-greyscale-bold": $greyscale-550,
90
+ "chart-taupe": $taupe-200,
91
+ "chart-taupe-bold": $taupe-600,
92
+ "content-primary": $greyscale-900,
93
+ "content-secondary": $greyscale-800,
94
+ "content-tertiary": $greyscale-600,
95
+ "content-primary-inverse": $core-white,
96
+ "content-secondary-inverse": $greyscale-100,
97
+ "content-tertiary-inverse": $greyscale-300,
98
+ "content-disabled": $greyscale-200,
99
+ "content-brand-default": $vert-foret-600,
100
+ "content-brand-hover": $vert-foret-700,
101
+ "content-brand-press": $vert-foret-800,
102
+ "content-link-default": $bleu-digital-500,
103
+ "content-link-hover": $bleu-digital-600,
104
+ "content-link-press": $bleu-digital-700,
105
+ "content-link-visited": $violet-600,
106
+ "content-link-visited-hover": $violet-700,
107
+ "content-link-visited-press": $violet-800,
108
+ "content-danger": $rouge-indications-600,
109
+ "content-danger-hover": $rouge-indications-700,
110
+ "content-danger-press": $rouge-indications-800,
111
+ "content-danger-inverse": $core-white,
112
+ "content-info": $bleu-digital-500,
113
+ "content-info-inverse": $core-white,
114
+ "content-info-bold": $bleu-digital-600,
115
+ "content-warning": $jaune-indications-400,
116
+ "content-warning-inverse": $core-white,
117
+ "content-warning-bold": $jaune-indications-500,
118
+ "content-success": $vert-digital-600,
119
+ "content-success-inverse": $core-white,
120
+ "content-success-bold": $vert-digital-700,
121
+ "content-decorative": $greyscale-900,
122
+ "content-status": $greyscale-900,
123
+ "decorative-neutral": $greyscale-50,
124
+ "decorative-bleu-iceberg": $bleu-iceberg-200,
125
+ "decorative-vert-foret": $vert-foret-100,
126
+ "decorative-violet": $violet-200,
127
+ "decorative-bleu-rte": $bleu-rte-200,
128
+ "decorative-bleu-digital": $bleu-digital-200,
129
+ "decorative-marine": $marine-100,
130
+ "decorative-bleu-petrole": $bleu-petrole-200,
131
+ "decorative-bleu-cyan": $bleu-cyan-200,
132
+ "decorative-vert": $vert-200,
133
+ "decorative-vert-indications": $vert-indications-200,
134
+ "decorative-vert-digital": $vert-digital-200,
135
+ "decorative-jaune": $jaune-100,
136
+ "decorative-jaune-ocre": $jaune-ocre-200,
137
+ "decorative-jaune-indications": $jaune-indications-200,
138
+ "decorative-saumon": $saumon-300,
139
+ "decorative-rose-digital": $rose-digital-200,
140
+ "decorative-fuschia": $fuschia-200,
141
+ "decorative-rouge-indication": $rouge-indications-100,
142
+ "decorative-taupe": $taupe-200,
143
+ "elevation-surface-inner-shadow": rgba(0, 0, 0, 0.00),
144
+ "elevation-surface-shadow-1": rgba(255, 255, 255, 0.00),
145
+ "elevation-surface-shadow-2": rgba(255, 255, 255, 0.00),
146
+ "elevation-surface-shadow-3": rgba(255, 255, 255, 0.00),
147
+ "elevation-surface-shadow-4": rgba(255, 255, 255, 0.00),
148
+ "elevation-surface-shadow-5": rgba(255, 255, 255, 0.00),
149
+ "elevation-surface-shadow-6": rgba(255, 255, 255, 0.00),
150
+ "elevation-shadow-ambient": rgba(0, 0, 0, 0.12),
151
+ "elevation-shadow-ambient-darker": rgba(0, 0, 0, 0.20),
152
+ "elevation-shadow-ambient-brand": rgba(0, 0, 0, 0.25),
153
+ "elevation-shadow-key": rgba(0, 0, 0, 0.14),
154
+ "elevation-shadow-key-darker": rgba(0, 0, 0, 0.24),
155
+ "elevation-shadow-key-brand": rgba(0, 0, 0, 0.31),
156
+ "gradient-default": #ffffff,
157
+ // TODO remove this color (not a real token)
158
+ "background-brand-hover-opacity-20": $vert-foret-700-opacity-20,
159
+ // TODO remove this color (not a real token)
160
+ "background-danger-hover-opacity-20": $rouge-indications-700-opacity-20,
161
+ // TODO remove this color (not a real token)
162
+ "background-hover-opacity-50": $greyscale-50-opacity-50,
163
+ );
@@ -0,0 +1,163 @@
1
+ @use '../../primitives/colors' as *;
2
+ @use '../../primitives/devColors' as *;
3
+
4
+ $violet-dark: (
5
+ "background-default": $greyscale-900,
6
+ "background-hover": $greyscale-800,
7
+ "background-pressed": $greyscale-700,
8
+ "background-disabled": $greyscale-800,
9
+ "background-inverse": $core-white,
10
+ "background-brand-default": $violet-300,
11
+ "background-brand-hover": $violet-200,
12
+ "background-brand-pressed": $violet-100,
13
+ "background-brand-selected-default": $violet-300,
14
+ "background-brand-selected-hover": $violet-200,
15
+ "background-brand-unselected-default": $violet-700,
16
+ "background-brand-unselected-hover": $violet-600,
17
+ "background-brand-inverse-default": $greyscale-900,
18
+ "background-brand-inverse-hover": $violet-700,
19
+ "background-brand-inverse-pressed": $violet-600,
20
+ "background-danger-default": $rouge-indications-400,
21
+ "background-danger-hover": $rouge-indications-500,
22
+ "background-danger-pressed": $rouge-indications-600,
23
+ "background-status-info-subtle": $bleu-digital-100,
24
+ "background-status-info": $bleu-digital-400,
25
+ "background-status-warning": $jaune-500,
26
+ "background-status-warning-subtle": $jaune-100,
27
+ "background-status-success": $vert-digital-400,
28
+ "background-status-success-subtle": $vert-digital-200,
29
+ "background-status-alert": $rouge-indications-500,
30
+ "background-status-alert-subtle": $rouge-indications-100,
31
+ "border-primary": $greyscale-400,
32
+ "border-secondary": $greyscale-600,
33
+ "border-tertiary": $greyscale-800,
34
+ "border-disabled": $greyscale-700,
35
+ "border-inverse": $greyscale-900,
36
+ "border-brand-default": $violet-0,
37
+ "border-brand-focused": $violet-0,
38
+ "border-danger": $rouge-indications-600,
39
+ "border-info": $bleu-digital-500,
40
+ "border-warning": $jaune-indications-400,
41
+ "border-success": $vert-digital-600,
42
+ "chart-brand": $violet-600,
43
+ "chart-neutral": $greyscale-350,
44
+ "chart-category-1": $bleu-iceberg-500,
45
+ "chart-category-2": $fuschia-500,
46
+ "chart-category-3": $violet-600,
47
+ "chart-category-4": $vert-foret-500,
48
+ "chart-category-5": $marine-900,
49
+ "chart-category-6": $jaune-indications-500,
50
+ "chart-category-7": $taupe-700,
51
+ "chart-category-8": $bleu-petrole-400,
52
+ "chart-bleu-iceberg": $bleu-iceberg-100,
53
+ "chart-bleu-iceberg-bold": $bleu-iceberg-500,
54
+ "chart-vert-foret": $vert-foret-100,
55
+ "chart-vert-foret-bold": $vert-foret-400,
56
+ "chart-violet": $violet-300,
57
+ "chart-violet-bold": $violet-600,
58
+ "chart-bleu-rte": $bleu-rte-100,
59
+ "chart-bleu-rte-bold": $bleu-rte-600,
60
+ "chart-bleu-digital": $bleu-digital-100,
61
+ "chart-bleu-digital-bold": $bleu-digital-500,
62
+ "chart-marine": $marine-100,
63
+ "chart-marine-bold": $marine-500,
64
+ "chart-bleu-petrole": $bleu-petrole-100,
65
+ "chart-bleu-petrole-bold": $bleu-petrole-500,
66
+ "chart-bleu-cyan": $bleu-cyan-100,
67
+ "chart-bleu-cyan-bold": $bleu-cyan-500,
68
+ "chart-vert": $vert-100,
69
+ "chart-vert-bold": $vert-500,
70
+ "chart-vert-indications": $vert-indications-200,
71
+ "chart-vert-indications-bold": $vert-indications-400,
72
+ "chart-vert-digital": $vert-digital-100,
73
+ "chart-vert-digital-bold": $vert-digital-400,
74
+ "chart-jaune": $jaune-100,
75
+ "chart-jaune-bold": $jaune-500,
76
+ "chart-jaune-ocre": $jaune-ocre-100,
77
+ "chart-jaune-ocre-bold": $jaune-ocre-400,
78
+ "chart-jaune-indications": $jaune-indications-100,
79
+ "chart-jaune-indications-bold": $jaune-indications-400,
80
+ "chart-saumon": $saumon-100,
81
+ "chart-saumon-bold": $saumon-500,
82
+ "chart-rose-digital": $rose-digital-200,
83
+ "chart-rose-digital-bold": $rose-digital-500,
84
+ "chart-fuschia": $fuschia-100,
85
+ "chart-fuschia-bold": $fuschia-500,
86
+ "chart-rouge-indications": $rouge-indications-100,
87
+ "chart-rouge-indications-bold": $rouge-indications-500,
88
+ "chart-greyscale": $greyscale-50,
89
+ "chart-greyscale-bold": $greyscale-550,
90
+ "chart-taupe": $taupe-200,
91
+ "chart-taupe-bold": $taupe-600,
92
+ "content-primary": $core-white,
93
+ "content-secondary": $greyscale-100,
94
+ "content-tertiary": $greyscale-300,
95
+ "content-primary-inverse": $greyscale-900,
96
+ "content-secondary-inverse": $greyscale-800,
97
+ "content-tertiary-inverse": $greyscale-600,
98
+ "content-disabled": $greyscale-700,
99
+ "content-brand-default": $violet-0,
100
+ "content-brand-hover": $violet-50,
101
+ "content-brand-press": $violet-100,
102
+ "content-link-default": $bleu-digital-500,
103
+ "content-link-hover": $bleu-digital-400,
104
+ "content-link-press": $bleu-digital-300,
105
+ "content-link-visited": $violet-500,
106
+ "content-link-visited-hover": $violet-400,
107
+ "content-link-visited-press": $violet-300,
108
+ "content-danger": $rouge-indications-400,
109
+ "content-danger-hover": $rouge-indications-500,
110
+ "content-danger-press": $rouge-indications-600,
111
+ "content-danger-inverse": $core-white,
112
+ "content-info": $bleu-digital-500,
113
+ "content-info-inverse": $core-white,
114
+ "content-info-bold": $bleu-digital-400,
115
+ "content-warning": $jaune-indications-400,
116
+ "content-warning-inverse": $core-white,
117
+ "content-warning-bold": $jaune-indications-300,
118
+ "content-success": $vert-digital-600,
119
+ "content-success-inverse": $core-white,
120
+ "content-success-bold": $vert-digital-500,
121
+ "content-decorative": $greyscale-900,
122
+ "content-status": $greyscale-900,
123
+ "decorative-neutral": $greyscale-50,
124
+ "decorative-bleu-iceberg": $bleu-iceberg-200,
125
+ "decorative-vert-foret": $vert-foret-100,
126
+ "decorative-violet": $violet-200,
127
+ "decorative-bleu-rte": $bleu-rte-200,
128
+ "decorative-bleu-digital": $bleu-digital-200,
129
+ "decorative-marine": $marine-100,
130
+ "decorative-bleu-petrole": $bleu-petrole-200,
131
+ "decorative-bleu-cyan": $bleu-cyan-200,
132
+ "decorative-vert": $vert-200,
133
+ "decorative-vert-indications": $vert-indications-200,
134
+ "decorative-vert-digital": $vert-digital-200,
135
+ "decorative-jaune": $jaune-100,
136
+ "decorative-jaune-ocre": $jaune-ocre-200,
137
+ "decorative-jaune-indications": $jaune-indications-200,
138
+ "decorative-saumon": $saumon-300,
139
+ "decorative-rose-digital": $rose-digital-200,
140
+ "decorative-fuschia": $fuschia-200,
141
+ "decorative-rouge-indication": $rouge-indications-100,
142
+ "decorative-taupe": $taupe-200,
143
+ "elevation-surface-inner-shadow": rgba(0, 0, 0, 0.20),
144
+ "elevation-surface-shadow-1": rgba(255, 255, 255, 0.03),
145
+ "elevation-surface-shadow-2": rgba(255, 255, 255, 0.05),
146
+ "elevation-surface-shadow-3": rgba(255, 255, 255, 0.08),
147
+ "elevation-surface-shadow-4": rgba(255, 255, 255, 0.10),
148
+ "elevation-surface-shadow-5": rgba(255, 255, 255, 0.12),
149
+ "elevation-surface-shadow-6": rgba(255, 255, 255, 0.14),
150
+ "elevation-shadow-ambient": rgba(0, 0, 0, 0.20),
151
+ "elevation-shadow-ambient-darker": rgba(0, 0, 0, 0.40),
152
+ "elevation-shadow-ambient-brand": rgba(0, 0, 0, 0.17),
153
+ "elevation-shadow-key": rgba(0, 0, 0, 0.28),
154
+ "elevation-shadow-key-darker": rgba(0, 0, 0, 0.48),
155
+ "elevation-shadow-key-brand": rgba(0, 0, 0, 0.21),
156
+ "gradient-default": #ffffff,
157
+ // TODO remove this color (not a real token)
158
+ "background-brand-hover-opacity-20": $violet-200-opacity-20,
159
+ // TODO remove this color (not a real token)
160
+ "background-danger-hover-opacity-20": $rouge-indications-500-opacity-20,
161
+ // TODO remove this color (not a real token)
162
+ "background-hover-opacity-50": $greyscale-800-opacity-50,
163
+ );