@drivy/cobalt 0.25.0 → 0.26.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 (66) hide show
  1. package/cjs/tokens/theme.js +86 -79
  2. package/cjs/tokens/theme.js.map +1 -1
  3. package/components/Callout/index.js +3 -1
  4. package/components/Callout/index.js.map +1 -1
  5. package/components/Flash/index.js +1 -1
  6. package/components/Flash/index.js.map +1 -1
  7. package/components/Rating/RatingIcons.js +2 -2
  8. package/components/Rating/RatingIcons.js.map +1 -1
  9. package/package.json +13 -13
  10. package/styles/components/BasicCell/index.scss +8 -6
  11. package/styles/components/BulletList/index.scss +2 -2
  12. package/styles/components/Buttons/GhostButton/index.scss +4 -4
  13. package/styles/components/Buttons/index.scss +5 -3
  14. package/styles/components/Calendar/CalendarRangePicker/index.scss +39 -17
  15. package/styles/components/Calendar/CalendarView/index.scss +10 -9
  16. package/styles/components/Callout/index.scss +37 -29
  17. package/styles/components/Card/index.scss +9 -10
  18. package/styles/components/Cell/index.scss +5 -4
  19. package/styles/components/Chip/index.scss +12 -15
  20. package/styles/components/EmptyState/index.scss +5 -5
  21. package/styles/components/Flash/index.scss +21 -7
  22. package/styles/components/Form/Autocomplete/index.scss +3 -3
  23. package/styles/components/Form/CheckablePill.scss +3 -3
  24. package/styles/components/Form/Checkmark.scss +3 -3
  25. package/styles/components/Form/ComposedField.scss +2 -2
  26. package/styles/components/Form/Fieldset.scss +6 -6
  27. package/styles/components/Form/Hint.scss +3 -3
  28. package/styles/components/Form/RadioWithDetails.scss +1 -1
  29. package/styles/components/Form/Select.scss +1 -1
  30. package/styles/components/Form/Slider.scss +7 -7
  31. package/styles/components/Form/Stepper.scss +2 -2
  32. package/styles/components/Form/TextArea.scss +2 -2
  33. package/styles/components/Form/TextInput.scss +1 -1
  34. package/styles/components/Form/ToggleSwitch.scss +4 -4
  35. package/styles/components/Form/field.scss +5 -5
  36. package/styles/components/Form/form.scss +2 -2
  37. package/styles/components/Helper/index.scss +1 -1
  38. package/styles/components/Icon/iconColors.scss +46 -42
  39. package/styles/components/Icon/index.scss +9 -2
  40. package/styles/components/Modal/index.scss +1 -1
  41. package/styles/components/Note/index.scss +2 -2
  42. package/styles/components/Pill/index.scss +3 -5
  43. package/styles/components/Popover/index.scss +1 -1
  44. package/styles/components/PriceTable/index.scss +1 -1
  45. package/styles/components/ProgressBar/index.scss +6 -5
  46. package/styles/components/Rating/index.scss +3 -3
  47. package/styles/components/TabBar/index.scss +9 -12
  48. package/styles/components/Tabs/index.scss +9 -11
  49. package/styles/components/Tag/index.scss +3 -2
  50. package/styles/core/_colors-map.scss +83 -76
  51. package/styles/core/card.scss +1 -0
  52. package/styles/core/color.scss +4 -0
  53. package/styles/core/fonts.scss +0 -2
  54. package/styles/core/global-variables.scss +1 -1
  55. package/styles/core/text.scss +29 -8
  56. package/styles/core/theme.scss +64 -57
  57. package/styles/core/typography.scss +14 -12
  58. package/styles/fonts/README.md +2 -2
  59. package/styles/fonts/{BrandFont.woff → placeholder-BrandFont.woff} +0 -0
  60. package/styles/global/typography.scss +1 -1
  61. package/styles/index.scss +1 -1
  62. package/tokens/theme.js +86 -79
  63. package/tokens/theme.js.map +1 -1
  64. package/types/components/Icon/index.d.ts +1 -1
  65. package/types/tokens/index.d.ts +73 -66
  66. package/utilities.css +132 -108
@@ -4,6 +4,12 @@
4
4
  /**********************************/
5
5
  $theme-colors-map: (
6
6
  background: (
7
+ primary: var(--c-l-grey-lighter),
8
+ secondary: var(--c-l-white),
9
+ secondaryInteractive: (
10
+ DEFAULT: var(--c-l-white),
11
+ hover: var(--c-l-grey-lighter)
12
+ ),
7
13
  accent: var(--c-l-purple),
8
14
  accentInteractive: (
9
15
  DEFAULT: var(--c-l-purple),
@@ -14,30 +20,58 @@ $theme-colors-map: (
14
20
  DEFAULT: var(--c-l-indigo),
15
21
  hover: var(--c-l-indigo)
16
22
  ),
17
- connect: var(--c-l-turquoise),
18
- connectInteractive: (
19
- DEFAULT: var(--c-l-turquoise),
20
- hover: var(--c-l-turquoise)
21
- ),
22
- driver: var(--c-l-deprecatedDriver),
23
+ info: var(--c-l-grey-lighter),
23
24
  error: var(--c-l-red),
24
25
  errorInteractive: (
25
26
  DEFAULT: var(--c-l-red),
26
27
  hover: var(--c-l-red)
27
28
  ),
28
29
  errorAlt: var(--c-l-graphite),
29
- info: var(--c-l-grey-lighter),
30
- neutral: var(--c-l-grey-light),
31
- neutralAlt: var(--c-l-grey-lighter),
30
+ success: var(--c-l-green),
31
+ successAlt: var(--c-l-graphite),
32
+ connect: var(--c-l-turquoise),
33
+ connectInteractive: (
34
+ DEFAULT: var(--c-l-turquoise),
35
+ hover: var(--c-l-turquoise)
36
+ ),
37
+ driver: var(--c-l-deprecatedDriver),
32
38
  owner: var(--c-l-indigo-dark),
33
- primary: var(--c-l-grey-lighter),
34
- secondary: var(--c-l-white),
35
- secondaryInteractive: (
39
+ disabled: var(--c-l-grey-light),
40
+ neutral: var(--c-l-grey-light),
41
+ neutralAlt: var(--c-l-grey-lighter)
42
+ ),
43
+ text: (
44
+ base: var(--c-l-graphite),
45
+ baseInteractive: (
46
+ DEFAULT: var(--c-l-graphite),
47
+ hover: var(--c-l-graphite)
48
+ ),
49
+ subdued: var(--c-l-graphite-light),
50
+ subduedInteractive: (
51
+ DEFAULT: var(--c-l-graphite-light),
52
+ hover: var(--c-l-graphite)
53
+ ),
54
+ accent: var(--c-l-purple),
55
+ accentInteractive: (
56
+ DEFAULT: var(--c-l-blue),
57
+ hover: var(--c-l-blue)
58
+ ),
59
+ accentAlt: var(--c-l-white),
60
+ accentAltInteractive: (
36
61
  DEFAULT: var(--c-l-white),
37
- hover: var(--c-l-grey-lighter)
62
+ hover: var(--c-l-indigo)
38
63
  ),
64
+ info: var(--c-l-graphite-light),
65
+ error: var(--c-l-red),
66
+ errorAlt: var(--c-l-white),
39
67
  success: var(--c-l-green),
40
- successAlt: var(--c-l-graphite)
68
+ successAlt: var(--c-l-white),
69
+ connect: var(--c-l-turquoise),
70
+ driver: var(--c-l-graphite),
71
+ owner: var(--c-l-white),
72
+ warning: var(--c-l-coral),
73
+ infoAlt: var(--c-l-turquoise),
74
+ inversed: var(--c-l-white)
41
75
  ),
42
76
  buttonBackground: (
43
77
  selected: var(--c-l-indigo),
@@ -129,14 +163,17 @@ $theme-colors-map: (
129
163
  press: var(--c-l-blue)
130
164
  )
131
165
  ),
132
- fill: (
133
- accent: var(--c-l-purple),
134
- accentAlt: var(--c-l-purple),
135
- disabled: var(--c-l-grey-dark),
136
- secondary: var(--c-l-turquoise),
137
- subdued: var(--c-l-grey-light)
138
- ),
139
166
  icon: (
167
+ base: var(--c-l-graphite),
168
+ baseInteractive: (
169
+ DEFAULT: var(--c-l-graphite),
170
+ hover: var(--c-l-graphite)
171
+ ),
172
+ subdued: var(--c-l-graphite-light),
173
+ subduedInteractive: (
174
+ DEFAULT: var(--c-l-graphite-light),
175
+ hover: var(--c-l-graphite)
176
+ ),
140
177
  accent: var(--c-l-purple),
141
178
  accentInteractive: (
142
179
  DEFAULT: var(--c-l-purple),
@@ -147,29 +184,27 @@ $theme-colors-map: (
147
184
  DEFAULT: var(--c-l-white),
148
185
  hover: var(--c-l-indigo)
149
186
  ),
150
- base: var(--c-l-graphite),
151
- baseInteractive: (
152
- DEFAULT: var(--c-l-graphite),
153
- hover: var(--c-l-graphite)
154
- ),
155
- connect: var(--c-l-turquoise),
156
- driver: var(--c-l-graphite),
187
+ info: var(--c-l-graphite-light),
157
188
  error: var(--c-l-red),
158
189
  errorAlt: var(--c-l-red),
159
- info: var(--c-l-graphite-light),
160
- infoAlt: var(--c-l-turquoise),
161
- inversed: var(--c-l-white),
162
- owner: var(--c-l-white),
163
- subdued: var(--c-l-graphite-light),
164
- subduedInteractive: (
165
- DEFAULT: var(--c-l-graphite-light),
166
- hover: var(--c-l-graphite)
167
- ),
168
190
  success: var(--c-l-green),
169
191
  successAlt: var(--c-l-white),
170
- warning: var(--c-l-coral)
192
+ connect: var(--c-l-turquoise),
193
+ driver: var(--c-l-graphite),
194
+ owner: var(--c-l-white),
195
+ warning: var(--c-l-coral),
196
+ infoAlt: var(--c-l-turquoise),
197
+ inversed: var(--c-l-white),
198
+ disabled: var(--c-l-grey-lighter)
171
199
  ),
172
200
  stroke: (
201
+ base: var(--c-l-grey),
202
+ baseInteractive: (
203
+ DEFAULT: var(--c-l-grey),
204
+ hover: var(--c-l-graphite-light),
205
+ press: var(--c-l-graphite)
206
+ ),
207
+ subdued: var(--c-l-grey-light),
173
208
  accent: var(--c-l-indigo),
174
209
  accentInteractive: (
175
210
  DEFAULT: var(--c-l-indigo),
@@ -177,49 +212,21 @@ $theme-colors-map: (
177
212
  press: var(--c-l-indigo-dark)
178
213
  ),
179
214
  accentAlt: var(--c-l-purple),
180
- base: var(--c-l-grey),
181
- baseInteractive: (
182
- DEFAULT: var(--c-l-grey),
183
- hover: var(--c-l-graphite-light),
184
- press: var(--c-l-graphite)
185
- ),
186
215
  error: var(--c-l-red),
187
216
  errorAlt: var(--c-l-red),
188
- subdued: var(--c-l-grey-light),
189
217
  success: var(--c-l-green),
190
218
  successAlt: var(--c-l-green)
191
219
  ),
192
- text: (
193
- accent: var(--c-l-purple),
194
- accentInteractive: (
195
- DEFAULT: var(--c-l-blue),
196
- hover: var(--c-l-blue)
197
- ),
198
- accentAlt: var(--c-l-white),
199
- accentAltInteractive: (
200
- DEFAULT: var(--c-l-white),
201
- hover: var(--c-l-indigo)
202
- ),
220
+ fill: (
203
221
  base: var(--c-l-graphite),
204
- baseInteractive: (
205
- DEFAULT: var(--c-l-graphite),
206
- hover: var(--c-l-graphite)
207
- ),
208
- connect: var(--c-l-turquoise),
209
- driver: var(--c-l-graphite),
210
- error: var(--c-l-red),
211
- errorAlt: var(--c-l-white),
212
- info: var(--c-l-graphite-light),
213
- infoAlt: var(--c-l-turquoise),
214
- inversed: var(--c-l-white),
215
- owner: var(--c-l-white),
216
- subdued: var(--c-l-graphite-light),
217
- subduedInteractive: (
218
- DEFAULT: var(--c-l-graphite-light),
219
- hover: var(--c-l-graphite)
220
- ),
221
- success: var(--c-l-green),
222
- successAlt: var(--c-l-white),
223
- warning: var(--c-l-coral)
222
+ secondary: var(--c-l-turquoise),
223
+ subdued: var(--c-l-grey-light),
224
+ accent: var(--c-l-purple),
225
+ accentAlt: var(--c-l-purple),
226
+ success: var(--c-l-red),
227
+ error: var(--c-l-green),
228
+ negative: var(--c-l-red),
229
+ neutral: var(--c-l-grey-lighter),
230
+ disabled: var(--c-l-grey-dark)
224
231
  )
225
232
  );
@@ -1,5 +1,6 @@
1
1
  $card-strip-width: 3px;
2
2
 
3
+ // To deprecate
3
4
  @mixin card-strip($variant: gradient) {
4
5
  position: relative;
5
6
 
@@ -32,6 +32,10 @@
32
32
  @include semantic-color($color, fill, fill);
33
33
  }
34
34
 
35
+ @mixin fill-bg-color($color) {
36
+ @include semantic-color($color, fill, background-color);
37
+ }
38
+
35
39
  @mixin border-color($color) {
36
40
  @include semantic-color($color, stroke, border-color);
37
41
  }
@@ -3,7 +3,5 @@
3
3
  font-style: normal;
4
4
  font-weight: bold;
5
5
  font-display: swap;
6
- // path here is related to the root file (here ../core.scss) for the sass resolver
7
- // https://webpack.js.org/loaders/sass-loader/
8
6
  src: url("fonts/BrandFont.woff") format("woff");
9
7
  }
@@ -1,2 +1,2 @@
1
- $card-padding: spacing();
1
+ $card-padding: spacing(md);
2
2
  $unit: 4px;
@@ -22,19 +22,16 @@
22
22
  }
23
23
  }
24
24
 
25
- @mixin c-text-section-heading {
26
- font-family: BrownPro,BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
27
- font-size: 0.875rem;
28
- font-weight: 700;
29
- line-height: 1.5rem;
30
- color: #757575;
31
- }
32
-
33
25
  @mixin c-text-title-xl {
34
26
  font-family: BrownPro,BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
35
27
  font-size: 2rem;
36
28
  font-weight: 700;
37
29
  line-height: 2.25rem;
30
+
31
+ @include breakpoint($from: sm) {
32
+ font-size: 2.5rem;
33
+ line-height: 2.75rem;
34
+ }
38
35
  }
39
36
 
40
37
  @mixin c-text-title-lg {
@@ -42,6 +39,11 @@
42
39
  font-size: 1.5rem;
43
40
  font-weight: 700;
44
41
  line-height: 1.75rem;
42
+
43
+ @include breakpoint($from: sm) {
44
+ font-size: 2rem;
45
+ line-height: 2.25rem;
46
+ }
45
47
  }
46
48
 
47
49
  @mixin c-text-title-md {
@@ -49,6 +51,11 @@
49
51
  font-size: 1.125rem;
50
52
  font-weight: 700;
51
53
  line-height: 1.25rem;
54
+
55
+ @include breakpoint($from: sm) {
56
+ font-size: 1.5rem;
57
+ line-height: 1.75rem;
58
+ }
52
59
  }
53
60
 
54
61
  @mixin c-text-title-sm {
@@ -56,6 +63,11 @@
56
63
  font-size: 0.9375rem;
57
64
  font-weight: 600;
58
65
  line-height: 1.25rem;
66
+
67
+ @include breakpoint($from: sm) {
68
+ font-size: 1.125rem;
69
+ line-height: 1.5rem;
70
+ }
59
71
  }
60
72
 
61
73
  @mixin c-text-title-xs {
@@ -82,3 +94,12 @@
82
94
  font-size: 0.75rem;
83
95
  line-height: 1rem;
84
96
  }
97
+
98
+ @mixin c-text-section-heading {
99
+ font-family: BrownPro,BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
100
+ font-size: 0.875rem;
101
+ font-weight: 700;
102
+ line-height: 1.5rem;
103
+ text-transform: uppercase;
104
+ color: #757575;
105
+ }
@@ -3,30 +3,54 @@
3
3
  /*** DO NOT MODIFY IT DIRECTLY ****/
4
4
  /**********************************/
5
5
  :root {
6
+ --c-background-primary: var(--c-l-grey-lighter);
7
+ --c-background-secondary: var(--c-l-white);
8
+ --c-background-secondaryInteractive: var(--c-l-white);
9
+ --c-background-secondaryInteractive--hover: var(--c-l-grey-lighter);
6
10
  --c-background-accent: var(--c-l-purple);
7
11
  --c-background-accentInteractive: var(--c-l-purple);
8
12
  --c-background-accentInteractive--hover: var(--c-l-purple);
9
13
  --c-background-accentAlt: var(--c-l-indigo);
10
14
  --c-background-accentAltInteractive: var(--c-l-indigo);
11
15
  --c-background-accentAltInteractive--hover: var(--c-l-indigo);
12
- --c-background-connect: var(--c-l-turquoise);
13
- --c-background-connectInteractive: var(--c-l-turquoise);
14
- --c-background-connectInteractive--hover: var(--c-l-turquoise);
15
- --c-background-driver: var(--c-l-deprecatedDriver);
16
+ --c-background-info: var(--c-l-grey-lighter);
16
17
  --c-background-error: var(--c-l-red);
17
18
  --c-background-errorInteractive: var(--c-l-red);
18
19
  --c-background-errorInteractive--hover: var(--c-l-red);
19
20
  --c-background-errorAlt: var(--c-l-graphite);
20
- --c-background-info: var(--c-l-grey-lighter);
21
- --c-background-neutral: var(--c-l-grey-light);
22
- --c-background-neutralAlt: var(--c-l-grey-lighter);
23
- --c-background-owner: var(--c-l-indigo-dark);
24
- --c-background-primary: var(--c-l-grey-lighter);
25
- --c-background-secondary: var(--c-l-white);
26
- --c-background-secondaryInteractive: var(--c-l-white);
27
- --c-background-secondaryInteractive--hover: var(--c-l-grey-lighter);
28
21
  --c-background-success: var(--c-l-green);
29
22
  --c-background-successAlt: var(--c-l-graphite);
23
+ --c-background-connect: var(--c-l-turquoise);
24
+ --c-background-connectInteractive: var(--c-l-turquoise);
25
+ --c-background-connectInteractive--hover: var(--c-l-turquoise);
26
+ --c-background-driver: var(--c-l-deprecatedDriver);
27
+ --c-background-owner: var(--c-l-indigo-dark);
28
+ --c-background-disabled: var(--c-l-grey-light);
29
+ --c-background-neutral: var(--c-l-grey-light);
30
+ --c-background-neutralAlt: var(--c-l-grey-lighter);
31
+ --c-text-base: var(--c-l-graphite);
32
+ --c-text-baseInteractive: var(--c-l-graphite);
33
+ --c-text-baseInteractive--hover: var(--c-l-graphite);
34
+ --c-text-subdued: var(--c-l-graphite-light);
35
+ --c-text-subduedInteractive: var(--c-l-graphite-light);
36
+ --c-text-subduedInteractive--hover: var(--c-l-graphite);
37
+ --c-text-accent: var(--c-l-purple);
38
+ --c-text-accentInteractive: var(--c-l-blue);
39
+ --c-text-accentInteractive--hover: var(--c-l-blue);
40
+ --c-text-accentAlt: var(--c-l-white);
41
+ --c-text-accentAltInteractive: var(--c-l-white);
42
+ --c-text-accentAltInteractive--hover: var(--c-l-indigo);
43
+ --c-text-info: var(--c-l-graphite-light);
44
+ --c-text-error: var(--c-l-red);
45
+ --c-text-errorAlt: var(--c-l-white);
46
+ --c-text-success: var(--c-l-green);
47
+ --c-text-successAlt: var(--c-l-white);
48
+ --c-text-connect: var(--c-l-turquoise);
49
+ --c-text-driver: var(--c-l-graphite);
50
+ --c-text-owner: var(--c-l-white);
51
+ --c-text-warning: var(--c-l-coral);
52
+ --c-text-infoAlt: var(--c-l-turquoise);
53
+ --c-text-inversed: var(--c-l-white);
30
54
  --c-buttonBackground-selected: var(--c-l-indigo);
31
55
  --c-buttonBackground-destructiveInteractive: var(--c-l-red);
32
56
  --c-buttonBackground-destructiveInteractive--hover: var(--c-l-red);
@@ -81,69 +105,52 @@
81
105
  --c-buttonLabel-tertiaryInteractive: var(--c-l-blue);
82
106
  --c-buttonLabel-tertiaryInteractive--hover: var(--c-l-blue);
83
107
  --c-buttonLabel-tertiaryInteractive--press: var(--c-l-blue);
84
- --c-fill-accent: var(--c-l-purple);
85
- --c-fill-accentAlt: var(--c-l-purple);
86
- --c-fill-disabled: var(--c-l-grey-dark);
87
- --c-fill-secondary: var(--c-l-turquoise);
88
- --c-fill-subdued: var(--c-l-grey-light);
108
+ --c-icon-base: var(--c-l-graphite);
109
+ --c-icon-baseInteractive: var(--c-l-graphite);
110
+ --c-icon-baseInteractive--hover: var(--c-l-graphite);
111
+ --c-icon-subdued: var(--c-l-graphite-light);
112
+ --c-icon-subduedInteractive: var(--c-l-graphite-light);
113
+ --c-icon-subduedInteractive--hover: var(--c-l-graphite);
89
114
  --c-icon-accent: var(--c-l-purple);
90
115
  --c-icon-accentInteractive: var(--c-l-purple);
91
116
  --c-icon-accentInteractive--hover: var(--c-l-indigo);
92
117
  --c-icon-accentAlt: var(--c-l-white);
93
118
  --c-icon-accentAltInteractive: var(--c-l-white);
94
119
  --c-icon-accentAltInteractive--hover: var(--c-l-indigo);
95
- --c-icon-base: var(--c-l-graphite);
96
- --c-icon-baseInteractive: var(--c-l-graphite);
97
- --c-icon-baseInteractive--hover: var(--c-l-graphite);
98
- --c-icon-connect: var(--c-l-turquoise);
99
- --c-icon-driver: var(--c-l-graphite);
120
+ --c-icon-info: var(--c-l-graphite-light);
100
121
  --c-icon-error: var(--c-l-red);
101
122
  --c-icon-errorAlt: var(--c-l-red);
102
- --c-icon-info: var(--c-l-graphite-light);
103
- --c-icon-infoAlt: var(--c-l-turquoise);
104
- --c-icon-inversed: var(--c-l-white);
105
- --c-icon-owner: var(--c-l-white);
106
- --c-icon-subdued: var(--c-l-graphite-light);
107
- --c-icon-subduedInteractive: var(--c-l-graphite-light);
108
- --c-icon-subduedInteractive--hover: var(--c-l-graphite);
109
123
  --c-icon-success: var(--c-l-green);
110
124
  --c-icon-successAlt: var(--c-l-white);
125
+ --c-icon-connect: var(--c-l-turquoise);
126
+ --c-icon-driver: var(--c-l-graphite);
127
+ --c-icon-owner: var(--c-l-white);
111
128
  --c-icon-warning: var(--c-l-coral);
129
+ --c-icon-infoAlt: var(--c-l-turquoise);
130
+ --c-icon-inversed: var(--c-l-white);
131
+ --c-icon-disabled: var(--c-l-grey-lighter);
132
+ --c-stroke-base: var(--c-l-grey);
133
+ --c-stroke-baseInteractive: var(--c-l-grey);
134
+ --c-stroke-baseInteractive--hover: var(--c-l-graphite-light);
135
+ --c-stroke-baseInteractive--press: var(--c-l-graphite);
136
+ --c-stroke-subdued: var(--c-l-grey-light);
112
137
  --c-stroke-accent: var(--c-l-indigo);
113
138
  --c-stroke-accentInteractive: var(--c-l-indigo);
114
139
  --c-stroke-accentInteractive--hover: var(--c-l-indigo);
115
140
  --c-stroke-accentInteractive--press: var(--c-l-indigo-dark);
116
141
  --c-stroke-accentAlt: var(--c-l-purple);
117
- --c-stroke-base: var(--c-l-grey);
118
- --c-stroke-baseInteractive: var(--c-l-grey);
119
- --c-stroke-baseInteractive--hover: var(--c-l-graphite-light);
120
- --c-stroke-baseInteractive--press: var(--c-l-graphite);
121
142
  --c-stroke-error: var(--c-l-red);
122
143
  --c-stroke-errorAlt: var(--c-l-red);
123
- --c-stroke-subdued: var(--c-l-grey-light);
124
144
  --c-stroke-success: var(--c-l-green);
125
145
  --c-stroke-successAlt: var(--c-l-green);
126
- --c-text-accent: var(--c-l-purple);
127
- --c-text-accentInteractive: var(--c-l-blue);
128
- --c-text-accentInteractive--hover: var(--c-l-blue);
129
- --c-text-accentAlt: var(--c-l-white);
130
- --c-text-accentAltInteractive: var(--c-l-white);
131
- --c-text-accentAltInteractive--hover: var(--c-l-indigo);
132
- --c-text-base: var(--c-l-graphite);
133
- --c-text-baseInteractive: var(--c-l-graphite);
134
- --c-text-baseInteractive--hover: var(--c-l-graphite);
135
- --c-text-connect: var(--c-l-turquoise);
136
- --c-text-driver: var(--c-l-graphite);
137
- --c-text-error: var(--c-l-red);
138
- --c-text-errorAlt: var(--c-l-white);
139
- --c-text-info: var(--c-l-graphite-light);
140
- --c-text-infoAlt: var(--c-l-turquoise);
141
- --c-text-inversed: var(--c-l-white);
142
- --c-text-owner: var(--c-l-white);
143
- --c-text-subdued: var(--c-l-graphite-light);
144
- --c-text-subduedInteractive: var(--c-l-graphite-light);
145
- --c-text-subduedInteractive--hover: var(--c-l-graphite);
146
- --c-text-success: var(--c-l-green);
147
- --c-text-successAlt: var(--c-l-white);
148
- --c-text-warning: var(--c-l-coral);
146
+ --c-fill-base: var(--c-l-graphite);
147
+ --c-fill-secondary: var(--c-l-turquoise);
148
+ --c-fill-subdued: var(--c-l-grey-light);
149
+ --c-fill-accent: var(--c-l-purple);
150
+ --c-fill-accentAlt: var(--c-l-purple);
151
+ --c-fill-success: var(--c-l-red);
152
+ --c-fill-error: var(--c-l-green);
153
+ --c-fill-negative: var(--c-l-red);
154
+ --c-fill-neutral: var(--c-l-grey-lighter);
155
+ --c-fill-disabled: var(--c-l-grey-dark);
149
156
  }
@@ -73,6 +73,8 @@ $text-variants-data: (
73
73
  @return nth(font-styles($name), 2);
74
74
  }
75
75
 
76
+ // Those mixins are deprecated, please use the ones from ./text.scss
77
+
76
78
  @mixin text-style-hero-heading {
77
79
  // reset is necessary as we still apply default style to html tags such as hX
78
80
  margin-bottom: 0;
@@ -114,9 +116,9 @@ $text-variants-data: (
114
116
  margin-bottom: 0;
115
117
 
116
118
  font-family: BrownPro,BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
117
- font-size: font-size(title-extralarge);
119
+ font-size: 2rem;
118
120
  font-weight: 700;
119
- line-height: line-height(title-extralarge);
121
+ line-height: 2.25rem;
120
122
  color: color(indigo, dark);
121
123
 
122
124
  @include breakpoint($from: sm) {
@@ -130,9 +132,9 @@ $text-variants-data: (
130
132
  margin-bottom: 0;
131
133
 
132
134
  font-family: BrownPro,BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
133
- font-size: font-size(title-large);
135
+ font-size: 1.5rem;
134
136
  font-weight: 700;
135
- line-height: line-height(title-large);
137
+ line-height: 1.75rem;
136
138
  color: color(indigo, dark);
137
139
 
138
140
  @include breakpoint($from: sm) {
@@ -146,9 +148,9 @@ $text-variants-data: (
146
148
  margin-bottom: 0;
147
149
 
148
150
  font-family: BrownPro,BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
149
- font-size: font-size(title);
151
+ font-size: 1.125rem;
150
152
  font-weight: 700;
151
- line-height: line-height(title);
153
+ line-height: 1.25rem;
152
154
  color: color(indigo, dark);
153
155
 
154
156
  @include breakpoint($from: sm) {
@@ -162,9 +164,9 @@ $text-variants-data: (
162
164
  margin-bottom: 0;
163
165
 
164
166
  font-family: BrownPro,BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
165
- font-size: font-size(title-small);
167
+ font-size: 0.9375rem;
166
168
  font-weight: 600;
167
- line-height: line-height(title-small);
169
+ line-height: 1.25rem;
168
170
  color: color(indigo, dark);
169
171
 
170
172
  @include breakpoint($from: sm) {
@@ -178,9 +180,9 @@ $text-variants-data: (
178
180
  margin-bottom: 0;
179
181
 
180
182
  font-family: BrownPro,BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
181
- font-size: font-size(title-tiny);
183
+ font-size: 0.9375rem;
182
184
  font-weight: 600;
183
- line-height: line-height(title-tiny);
185
+ line-height: 1.25rem;
184
186
  color: color(indigo, dark);
185
187
  }
186
188
 
@@ -232,6 +234,8 @@ $text-variants-data: (
232
234
  }
233
235
 
234
236
  @mixin text-style-section-header {
237
+ @include text-color(subdued);
238
+
235
239
  // reset is necessary as we still apply default style to html tags such as hX
236
240
  margin-bottom: 0;
237
241
 
@@ -240,7 +244,5 @@ $text-variants-data: (
240
244
  font-size: font-size(section-header);
241
245
  line-height: line-height(section-header);
242
246
 
243
- color: color(graphite, light);
244
-
245
247
  text-transform: uppercase;
246
248
  }
@@ -1,4 +1,4 @@
1
- Our official branding font is a licensed paid web font, meaning that we can't distribute it through our NPM package (which uses the MIT license). So you won't find it in our design system, instead we put an [open font licensed](https://en.wikipedia.org/wiki/SIL_Open_Font_License) one as a placeholder ([source](https://fonts.google.com/specimen/Poppins)). If you want to use a diffrent brand font, you can alias that placeholder to use a font on your side instead.
1
+ Our official branding font is a licensed paid web font, meaning that we can't distribute it through our NPM package (which uses the MIT license). So you won't find it in our design system, instead we put an [open font licensed](https://en.wikipedia.org/wiki/SIL_Open_Font_License) one as a placeholder (see `placeholder-BrandFont.woff` [source](https://fonts.google.com/specimen/Poppins)). In order to get that brand font work, you have to use an alias in your builder (like `resolve.alias` for `Webpack`). You can use the placeholder font we provide here or a custom font on your side.
2
2
 
3
3
  Here how we did it using our builder `Webpack`:
4
4
 
@@ -16,4 +16,4 @@ Here how we did it using our builder `Webpack`:
16
16
  }
17
17
  ```
18
18
 
19
- You can use another builder as long as it provides a way to alias an asset when importing it or just use the placeholder font.
19
+ You can use another builder as long as it provides a way to alias an asset when importing it, then pass your custom font or the placeholder one `placeholder-BrandFont.woff` from this folder.
@@ -73,6 +73,6 @@
73
73
  }
74
74
 
75
75
  &text-sectionHeader {
76
- @include text-style-section-header;
76
+ @include c-text-section-heading;
77
77
  }
78
78
  }
package/styles/index.scss CHANGED
@@ -140,7 +140,7 @@ table {
140
140
 
141
141
  // stylelint-disable-next-line no-duplicate-selectors
142
142
  body {
143
- @include text-style-body();
143
+ @include c-text-body-md;
144
144
 
145
145
  font-family: font-family();
146
146