@oslokommune/punkt-css 9.3.2 → 9.4.1

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 (49) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +1 -1
  3. package/dist/css/components/alert.css +18 -16
  4. package/dist/css/components/alert.min.css +1 -1
  5. package/dist/css/components/badge.css +2 -13
  6. package/dist/css/components/badge.min.css +1 -1
  7. package/dist/css/components/footer.css +5 -5
  8. package/dist/css/components/footer.min.css +1 -1
  9. package/dist/css/components/header.css +20 -11
  10. package/dist/css/components/header.min.css +1 -1
  11. package/dist/css/components/inputwrapper.css +21 -16
  12. package/dist/css/components/inputwrapper.min.css +1 -1
  13. package/dist/css/components/linkcard.css +21 -12
  14. package/dist/css/components/linkcard.min.css +1 -1
  15. package/dist/css/components/messagebox.css +12 -12
  16. package/dist/css/components/messagebox.min.css +1 -1
  17. package/dist/css/components/tag.css +126 -40
  18. package/dist/css/components/tag.min.css +1 -1
  19. package/dist/css/components/textinput.css +61 -35
  20. package/dist/css/components/textinput.min.css +1 -1
  21. package/dist/css/pkt-base.css +1418 -243
  22. package/dist/css/pkt-base.min.css +1 -1
  23. package/dist/css/pkt-components.css +286 -160
  24. package/dist/css/pkt-components.min.css +1 -1
  25. package/dist/css/pkt-elements.css +547 -344
  26. package/dist/css/pkt-elements.min.css +1 -1
  27. package/dist/css/pkt.css +2190 -712
  28. package/dist/css/pkt.min.css +1 -1
  29. package/dist/scss/abstracts/variables/_colors.scss +108 -0
  30. package/dist/scss/abstracts/variables/_spacing.scss +12 -10
  31. package/dist/scss/base/_colors.scss +111 -9
  32. package/dist/scss/base/_typography.scss +15 -58
  33. package/dist/scss/components/_alert.scss +28 -25
  34. package/dist/scss/components/_badge.scss +56 -55
  35. package/dist/scss/components/_footer.scss +5 -8
  36. package/dist/scss/components/_header.scss +30 -16
  37. package/dist/scss/components/_inputwrapper.scss +27 -20
  38. package/dist/scss/components/_linkcard.scss +41 -16
  39. package/dist/scss/components/_messagebox.scss +16 -14
  40. package/dist/scss/components/_tag.scss +150 -41
  41. package/dist/scss/elements/_button.scss +285 -183
  42. package/dist/scss/elements/_checkbox-radio.scss +86 -150
  43. package/dist/scss/elements/_form.scss +26 -24
  44. package/dist/scss/elements/_hr.scss +1 -1
  45. package/dist/scss/elements/_input.scss +63 -41
  46. package/dist/scss/elements/_list.scss +11 -6
  47. package/dist/scss/elements/_section.scss +8 -8
  48. package/dist/scss/elements/_table.scss +8 -8
  49. package/package.json +2 -2
@@ -15,21 +15,24 @@
15
15
 
16
16
  $-module-name: 'pkt-btn';
17
17
  $-sizes: (
18
- 'small': ('text-class': 'pkt-txt-14-medium',
18
+ 'small': (
19
+ 'text-class': 'pkt-txt-14-medium',
19
20
  'padding': 0 0.5rem,
20
21
  'padding-icon-only': 0 0.5625rem,
21
22
  'icon-size': 1.25rem,
22
23
  'height': 2.625rem,
23
24
  'line-height': 1.1,
24
25
  ),
25
- 'medium': ('text-class': 'pkt-txt-18-medium',
26
+ 'medium': (
27
+ 'text-class': 'pkt-txt-18-medium',
26
28
  'padding': 0 1rem,
27
29
  'padding-icon-only': 0 0.625rem,
28
30
  'icon-size': 1.5rem,
29
31
  'height': 3rem,
30
32
  'line-height': 1.1,
31
33
  ),
32
- 'large': ('text-class': 'pkt-txt-24-medium',
34
+ 'large': (
35
+ 'text-class': 'pkt-txt-24-medium',
33
36
  'padding': 0 1rem,
34
37
  'padding-icon-only': 0 0.875rem,
35
38
  'icon-size': 2rem,
@@ -39,120 +42,128 @@ $-sizes: (
39
42
  );
40
43
 
41
44
  $-skins: (
42
- 'primary': ('light': ('link-bg': --color-blue-dark,
43
- 'link-bc': --color-blue-dark,
44
- 'link-txt': --color-white,
45
- 'focus-bg': --color-active,
46
- 'focus-bc': --color-active,
47
- 'focus-txt': --color-white,
48
- 'focus-outline': --color-focus,
49
- 'hover-bg': --color-active,
50
- 'hover-bc': --color-active,
51
- 'hover-txt': --color-white,
52
- 'active-bg': --color-active,
53
- 'active-bc': --color-active,
54
- 'active-txt': --color-white,
55
- 'disabled-bg': --color-gray,
56
- 'disabled-bc': --color-gray,
57
- 'disabled-txt': --color-disabled,
45
+ 'primary': (
46
+ 'light': (
47
+ 'button-background-normal': --pkt-color-brand-dark-blue-1000,
48
+ 'button-border-normal': --pkt-color-brand-dark-blue-1000,
49
+ 'button-text-normal': --pkt-color-brand-neutrals-white,
50
+ 'button-background-focus': --pkt-color-brand-warm-blue-1000,
51
+ 'button-border-focus': --pkt-color-brand-warm-blue-1000,
52
+ 'button-text-focus': --pkt-color-brand-neutrals-white,
53
+ 'border-states-focus': --pkt-color-brand-purple-1000,
54
+ 'button-background-hover': --pkt-color-brand-warm-blue-1000,
55
+ 'button-border-hover': --pkt-color-brand-warm-blue-1000,
56
+ 'button-text-hover': --pkt-color-brand-neutrals-white,
57
+ 'button-background-active': --pkt-color-brand-warm-blue-1000,
58
+ 'button-border-active': --pkt-color-brand-warm-blue-1000,
59
+ 'button-text-active': --pkt-color-brand-neutrals-white,
60
+ 'button-background-disabled': --pkt-color-brand-neutrals-100,
61
+ 'button-border-disabled': --pkt-color-brand-neutrals-100,
62
+ 'button-text-disabled': --pkt-color-grays-gray-500,
58
63
  ),
59
- 'dark': ('link-bg': --color-blue-light,
60
- 'link-bc': --color-blue-light,
61
- 'link-txt': --color-blue-dark,
62
- 'focus-bg': --color-blue,
63
- 'focus-bc': --color-blue,
64
- 'focus-txt': --color-blue-dark,
65
- 'focus-outline': --color-focus,
66
- 'hover-bg': --color-blue,
67
- 'hover-bc': --color-blue,
68
- 'hover-txt': --color-blue-dark,
69
- 'active-bg': --color-blue,
70
- 'active-bc': --color-blue,
71
- 'active-txt': --color-blue-dark,
72
- 'disabled-bg': --color-gray,
73
- 'disabled-bc': --color-gray,
74
- 'disabled-txt': --color-disabled,
64
+ 'dark': (
65
+ 'button-background-normal': --pkt-color-brand-blue-500,
66
+ 'button-border-normal': --pkt-color-brand-blue-500,
67
+ 'button-text-normal': --pkt-color-brand-dark-blue-1000,
68
+ 'button-background-focus': --pkt-color-brand-blue-1000,
69
+ 'button-border-focus': --pkt-color-brand-blue-1000,
70
+ 'button-text-focus': --pkt-color-brand-dark-blue-1000,
71
+ 'border-states-focus': --pkt-color-brand-purple-1000,
72
+ 'button-background-hover': --pkt-color-brand-blue-1000,
73
+ 'button-border-hover': --pkt-color-brand-blue-1000,
74
+ 'button-text-hover': --pkt-color-brand-dark-blue-1000,
75
+ 'button-background-active': --pkt-color-brand-blue-1000,
76
+ 'button-border-active': --pkt-color-brand-blue-1000,
77
+ 'button-text-active': --pkt-color-brand-dark-blue-1000,
78
+ 'button-background-disabled': --pkt-color-brand-neutrals-100,
79
+ 'button-border-disabled': --pkt-color-brand-neutrals-100,
80
+ 'button-text-disabled': --pkt-color-grays-gray-600,
75
81
  ),
76
82
  ),
77
- 'secondary': ('light': ('link-bg': --color-transparent,
78
- 'link-bc': --color-blue-dark,
79
- 'link-txt': --color-blue-dark,
80
- 'focus-bg': --color-transparent,
81
- 'focus-bc': --color-active,
82
- 'focus-txt': --color-active,
83
- 'focus-outline': --color-focus,
84
- 'hover-bg': --color-active,
85
- 'hover-bc': --color-active,
86
- 'hover-txt': --color-white,
87
- 'active-bg': --color-active,
88
- 'active-bc': --color-active,
89
- 'active-txt': --color-white,
90
- 'disabled-bg': --color-gray,
91
- 'disabled-bc': --color-gray,
92
- 'disabled-txt': --color-disabled,
83
+ 'secondary': (
84
+ 'light': (
85
+ 'button-background-normal': --pkt-color-brand-neutrals-transparent,
86
+ 'button-border-normal': --pkt-color-brand-dark-blue-1000,
87
+ 'button-text-normal': --pkt-color-brand-dark-blue-1000,
88
+ 'button-background-focus': --pkt-color-brand-warm-blue-1000,
89
+ 'button-border-focus': --pkt-color-brand-warm-blue-1000,
90
+ 'button-text-focus': --pkt-color-brand-neutrals-white,
91
+ 'border-states-focus': --pkt-color-brand-purple-1000,
92
+ 'button-background-hover': --pkt-color-brand-warm-blue-1000,
93
+ 'button-border-hover': --pkt-color-brand-warm-blue-1000,
94
+ 'button-text-hover': --pkt-color-brand-neutrals-white,
95
+ 'button-background-active': --pkt-color-brand-warm-blue-1000,
96
+ 'button-border-active': --pkt-color-brand-warm-blue-1000,
97
+ 'button-text-active': --pkt-color-brand-neutrals-white,
98
+ 'button-background-disabled': --pkt-color-brand-neutrals-100,
99
+ 'button-border-disabled': --pkt-color-brand-neutrals-100,
100
+ 'button-text-disabled': --pkt-color-grays-gray-600,
93
101
  ),
94
- 'dark': ('link-bg': --color-transparent,
95
- 'link-bc': --color-white,
96
- 'link-txt': --color-white,
97
- 'focus-bg': --color-transparent,
98
- 'focus-bc': --color-active-light,
99
- 'focus-txt': --color-active-light,
100
- 'focus-outline': --color-focus,
101
- 'hover-bg': --color-active-light,
102
- 'hover-bc': --color-active-light,
103
- 'hover-txt': --color-blue-dark,
104
- 'active-bg': --color-active-light,
105
- 'active-bc': --color-active-light,
106
- 'active-txt': --color-blue-dark,
107
- 'disabled-bg': --color-gray,
108
- 'disabled-bc': --color-gray,
109
- 'disabled-txt': --color-disabled,
102
+ 'dark': (
103
+ 'button-background-normal': --pkt-color-brand-neutrals-transparent,
104
+ 'button-border-normal': --pkt-color-brand-neutrals-white,
105
+ 'button-text-normal': --pkt-color-brand-neutrals-white,
106
+ 'button-background-focus': --pkt-color-brand-blue-500,
107
+ 'button-border-focus': --pkt-color-brand-blue-500,
108
+ 'button-text-focus': --pkt-color-brand-dark-blue-1000,
109
+ 'border-states-focus': --pkt-color-brand-purple-1000,
110
+ 'button-background-hover': --pkt-color-brand-blue-500,
111
+ 'button-border-hover': --pkt-color-brand-blue-500,
112
+ 'button-text-hover': --pkt-color-brand-dark-blue-1000,
113
+ 'button-background-active': --pkt-color-brand-blue-500,
114
+ 'button-border-active': --pkt-color-brand-blue-500,
115
+ 'button-text-active': --pkt-color-brand-dark-blue-1000,
116
+ 'button-background-disabled': --pkt-color-grays-gray-100,
117
+ 'button-border-disabled': --pkt-color-grays-gray-100,
118
+ 'button-text-disabled': --pkt-color-grays-gray-600,
110
119
  ),
111
120
  ),
112
- 'tertiary': ('light': ('link-bg': --color-transparent,
113
- 'link-bc': --color-transparent,
114
- 'link-txt': --color-blue-dark,
115
- 'focus-bg': --color-gray,
116
- 'focus-bc': --color-active,
117
- 'focus-txt': --color-active,
118
- 'hover-bg': --color-gray,
119
- 'hover-bc': --color-gray,
120
- 'hover-txt': --color-active,
121
- 'active-bg': --color-active,
122
- 'active-bc': --color-active,
123
- 'active-txt': --color-white,
124
- 'disabled-bg': --color-transparent,
125
- 'disabled-bc': --color-transparent,
126
- 'disabled-txt': --color-disabled,
121
+ 'tertiary': (
122
+ 'light': (
123
+ 'button-background-normal': --pkt-color-brand-neutrals-transparent,
124
+ 'button-border-normal': --pkt-color-brand-neutrals-transparent,
125
+ 'button-text-normal': --pkt-color-brand-dark-blue-1000,
126
+ 'button-background-focus': --pkt-color-brand-neutrals-200,
127
+ 'button-border-focus': --pkt-color-brand-warm-blue-1000,
128
+ 'button-text-focus': --pkt-color-brand-warm-blue-1000,
129
+ 'border-states-focus': --pkt-color-brand-purple-1000,
130
+ 'button-background-hover': --pkt-color-brand-neutrals-200,
131
+ 'button-border-hover': --pkt-color-brand-neutrals-200,
132
+ 'button-text-hover': --pkt-color-brand-warm-blue-1000,
133
+ 'button-background-active': --pkt-color-brand-warm-blue-1000,
134
+ 'button-border-active': --pkt-color-brand-warm-blue-1000,
135
+ 'button-text-active': --pkt-color-brand-neutrals-white,
136
+ 'button-background-disabled': --pkt-color-brand-neutrals-100,
137
+ 'button-border-disabled': --pkt-color-brand-neutrals-100,
138
+ 'button-text-disabled': --pkt-color-grays-gray-600,
127
139
  ),
128
- 'dark': ('link-bg': --color-transparent,
129
- 'link-bc': --color-transparent,
130
- 'link-txt': --color-white,
131
- 'focus-bg': --color-blue-5,
132
- 'focus-bc': --color-active,
133
- 'focus-txt': --color-blue-dark,
134
- 'focus-outline': --color-focus,
135
- 'hover-bg': --color-blue-5,
136
- 'hover-bc': --color-blue-5,
137
- 'hover-txt': --color-blue-dark,
138
- 'active-bg': --color-blue-dark-10,
139
- 'active-bc': --color-transparent,
140
- 'active-txt': --color-blue-dark,
141
- 'disabled-bg': --color-transparent,
142
- 'disabled-bc': --color-transparent,
143
- 'disabled-txt': --color-disabled,
140
+ 'dark': (
141
+ 'button-background-normal': --pkt-color-brand-neutrals-transparent,
142
+ 'button-border-normal': --pkt-color-brand-neutrals-transparent,
143
+ 'button-text-normal': --pkt-color-brand-neutrals-white,
144
+ 'button-background-focus': --pkt-color-brand-dark-blue-700,
145
+ 'button-border-focus': --pkt-color-brand-dark-blue-700,
146
+ 'border-states-focus': --pkt-color-brand-purple-1000,
147
+ 'button-text-focus': --pkt-color-brand-neutrals-white,
148
+ 'button-background-hover': --pkt-color-brand-dark-blue-700,
149
+ 'button-border-hover': --pkt-color-brand-dark-blue-700,
150
+ 'button-text-hover': --pkt-color-brand-neutrals-white,
151
+ 'button-background-active': --pkt-color-brand-dark-blue-700,
152
+ 'button-border-active': --pkt-color-brand-dark-blue-700,
153
+ 'button-text-active': --pkt-color-brand-neutrals-white,
154
+ 'button-background-disabled': --pkt-color-brand-neutrals-100,
155
+ 'button-border-disabled': --pkt-color-brand-neutrals-100,
156
+ 'button-text-disabled': --pkt-color-grays-gray-600,
144
157
  ),
145
158
  ),
146
159
  );
147
160
 
148
161
  @mixin -print-skin-as-css-vars($name, $o, $mode) {
149
-
150
- @each $key,
151
- $value in $o {
152
-
162
+ @each $key, $value in $o {
153
163
  // Only print primary skin and css vars that differ from primary
154
- @if $name =='primary' or $value !=map.get($-skins, 'primary', $mode, $key) {
155
- --btn-#{$key}: var(#{$value});
164
+ @if $name == 'primary' or $value !=map.get($-skins, 'primary', $mode, $key)
165
+ {
166
+ --pkt-color-#{$key}: var(#{$value});
156
167
  }
157
168
  }
158
169
  }
@@ -196,9 +207,7 @@ $-skins: (
196
207
  @extend %sr-only;
197
208
  }
198
209
  }
199
- }
200
-
201
- @else {
210
+ } @else {
202
211
  &--#{$name} {
203
212
  @include typography.get-text(map.get($o, 'text-class'));
204
213
  height: map.get($o, 'height');
@@ -226,33 +235,113 @@ $-skins: (
226
235
  }
227
236
 
228
237
  .#{$-module-name}#{$css-skin} {
229
- @include -print-skin-as-css-vars($name,
238
+ @include -print-skin-as-css-vars(
239
+ $name,
230
240
  map.get($-skins, $name, 'light'),
231
241
  'light'
232
242
  );
233
243
  }
234
244
 
235
245
  @at-root [data-mode='dark'] .#{$-module-name}#{$css-skin} {
236
- @include -print-skin-as-css-vars($name,
246
+ @include -print-skin-as-css-vars(
247
+ $name,
237
248
  map.get($-skins, $name, 'dark'),
238
249
  'dark'
239
250
  );
240
251
 
241
252
  // Dark mode
242
- &--green-dark-outline,
243
- &--green-outline,
244
- &--blue-outline,
245
- &--beige-dark-outline,
246
- &--yellow-outline,
253
+ &--green-dark {
254
+ --pkt-color-button-background-normal: var(
255
+ --pkt-color-brand-dark-green-1000
256
+ );
257
+ --pkt-color-button-border-normal: var(--pkt-color-brand-dark-green-1000);
258
+ --pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
259
+ }
260
+
261
+ &--green-dark-outline {
262
+ --pkt-color-button-background-normal: var(
263
+ --pkt-color-brand-neutrals-transparent
264
+ );
265
+ --pkt-color-button-border-normal: var(--pkt-color-brand-dark-green-1000);
266
+ --pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
267
+ }
268
+
269
+ &--green {
270
+ --pkt-color-button-background-normal: var(--pkt-color-brand-green-1000);
271
+ --pkt-color-button-border-normal: var(--pkt-color-brand-green-1000);
272
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
273
+ }
274
+
275
+ &--green-outline {
276
+ --pkt-color-button-background-normal: var(
277
+ --pkt-color-brand-neutrals-transparent
278
+ );
279
+ --pkt-color-button-border-normal: var(--pkt-color-brand-green-1000);
280
+ --pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
281
+ }
282
+
283
+ &--blue {
284
+ --pkt-color-button-background-normal: var(--pkt-color-brand-blue-1000);
285
+ --pkt-color-button-border-normal: var(--pkt-color-brand-blue-1000);
286
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
287
+ }
288
+
289
+ &--blue-outline {
290
+ --pkt-color-button-background-normal: var(
291
+ --pkt-color-brand-neutrals-transparent
292
+ );
293
+ --pkt-color-button-border-normal: var(--pkt-color-brand-blue-1000);
294
+ --pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
295
+ }
296
+
297
+ &--beige-light {
298
+ --pkt-color-button-background-normal: var(
299
+ --pkt-color-brand-light-beige-1000
300
+ );
301
+ --pkt-color-button-border-normal: var(--pkt-color-brand-light-beige-1000);
302
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
303
+ }
304
+
305
+ &--beige-dark-outline {
306
+ --pkt-color-button-background-normal: var(
307
+ --pkt-color-brand-neutrals-transparent
308
+ );
309
+ --pkt-color-button-border-normal: var(--pkt-color-brand-dark-beige-1000);
310
+ --pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
311
+ }
312
+
313
+ &--yellow {
314
+ --pkt-color-button-background-normal: var(--pkt-color-brand-yellow-1000);
315
+ --pkt-color-button-border-normal: var(--pkt-color-brand-yellow-1000);
316
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
317
+ }
318
+
319
+ &--yellow-outline {
320
+ --pkt-color-button-background-normal: var(
321
+ --pkt-color-brand-neutrals-transparent
322
+ );
323
+ --pkt-color-button-border-normal: var(--pkt-color-brand-yellow-1000);
324
+ --pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
325
+ }
326
+
327
+ &--red {
328
+ --pkt-color-button-background-normal: var(--pkt-color-brand-red-1000);
329
+ --pkt-color-button-border-normal: var(--pkt-color-brand-red-1000);
330
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
331
+ }
332
+
247
333
  &--red-outline {
248
- color: var(--color-white);
334
+ --pkt-color-button-background-normal: var(
335
+ --pkt-color-brand-neutrals-transparent
336
+ );
337
+ --pkt-color-button-border-normal: var(--pkt-color-brand-red-1000);
338
+ --pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
249
339
  }
250
340
  }
251
341
  }
252
342
 
253
343
  // Print css vars for hvert skin
254
- @each $key,
255
- $value in $-skins {
344
+ @each $key, $value in $-skins {
256
345
  @include -skin($key, map.get($value, 'light'));
257
346
  }
258
347
 
@@ -269,9 +358,9 @@ $value in $-skins {
269
358
  -ms-user-select: none;
270
359
  user-select: none;
271
360
  vertical-align: top;
272
- background-color: var(--btn-link-bg);
273
- border: 2px solid var(--btn-link-bc);
274
- color: var(--btn-link-txt);
361
+ background-color: var(--pkt-color-button-background-normal);
362
+ border: 2px solid var(--pkt-color-button-border-normal);
363
+ color: var(--pkt-color-button-text-normal);
275
364
  text-decoration: none;
276
365
  text-decoration-thickness: 1px;
277
366
  text-underline-offset: 0.3em;
@@ -279,7 +368,7 @@ $value in $-skins {
279
368
  align-items: center;
280
369
  column-gap: 0.5rem;
281
370
 
282
- &[class*='pkt-btn--icon']>.pkt-btn__icon {
371
+ &[class*='pkt-btn--icon'] > .pkt-btn__icon {
283
372
  display: flex;
284
373
  }
285
374
 
@@ -291,51 +380,49 @@ $value in $-skins {
291
380
 
292
381
  &:link,
293
382
  &:visited {
294
- color: var(--btn-link-txt);
383
+ color: var(--pkt-color-button-text-normal);
295
384
  }
296
385
 
297
386
  @at-root a.#{$-module-name}:focus,
298
- &:enabled:focus,
299
- &.#{$-module-name}--focus {
300
- background-color: var(--btn-focus-bg);
301
- color: var(--btn-focus-txt);
302
- border-color: var(--btn-focus-bc);
303
- outline: 4px solid var(--btn-focus-outline);
387
+ &:enabled:focus,
388
+ &.#{$-module-name}--focus {
389
+ background-color: var(--pkt-color-button-background-focus);
390
+ color: var(--pkt-color-button-text-focus);
391
+ border-color: var(--pkt-color-button-border-focus);
392
+ outline: 4px solid var(--pkt-color-border-states-focus);
304
393
  text-decoration: none;
305
394
  }
306
395
 
307
396
  @at-root a.#{$-module-name}:hover,
308
- &:enabled:hover,
309
- &.#{$-module-name}--hover {
310
- background-color: var(--btn-hover-bg);
311
- border-color: var(--btn-hover-bc);
312
- color: var(--btn-hover-txt);
397
+ &:enabled:hover,
398
+ &.#{$-module-name}--hover {
399
+ background-color: var(--pkt-color-button-background-hover);
400
+ border-color: var(--pkt-color-button-border-hover);
401
+ color: var(--pkt-color-button-text-hover);
313
402
  outline: 0;
314
403
  text-decoration: underline;
315
404
  }
316
405
 
317
406
  @at-root a.#{$-module-name}:active,
318
- &:enabled:active,
319
- &.#{$-module-name}--active,
320
- &.#{$-module-name}--active:hover {
321
- background-color: var(--btn-active-bg);
322
- border-color: var(--btn-active-bc);
323
- color: var(--btn-active-txt);
407
+ &:enabled:active,
408
+ &.#{$-module-name}--active,
409
+ &.#{$-module-name}--active:hover {
410
+ background-color: var(--pkt-color-button-background-active);
411
+ border-color: var(--pkt-color-button-border-active);
412
+ color: var(--pkt-color-button-text-active);
324
413
  outline: 0;
325
414
  text-decoration: none;
326
415
  }
327
416
 
328
417
  &:disabled {
329
- background-color: var(--btn-disabled-bg);
330
- border-color: var(--btn-disabled-bc);
331
- color: var(--btn-disabled-txt);
418
+ background-color: var(--pkt-color-button-background-disabled);
419
+ border-color: var(--pkt-color-button-border-disabled);
420
+ color: var(--pkt-color-button-text-disabled);
332
421
  cursor: inherit;
333
422
  }
334
423
 
335
-
336
424
  // button sizes & variants
337
- @each $key,
338
- $value in $-sizes {
425
+ @each $key, $value in $-sizes {
339
426
  @include -size($key, $value);
340
427
  }
341
428
 
@@ -344,77 +431,92 @@ $value in $-skins {
344
431
  border: 0;
345
432
  }
346
433
 
347
-
348
- // button colors
434
+ // button colors modifiers
349
435
  &--green-dark {
350
- --btn-link-bg: var(--color-green-dark);
351
- --btn-link-bc: var(--color-green-dark);
352
- --btn-link-txt: var(--color-white);
436
+ --pkt-color-button-background-normal: var(
437
+ --pkt-color-brand-dark-green-1000
438
+ );
439
+ --pkt-color-button-border-normal: var(--pkt-color-brand-dark-green-1000);
440
+ --pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
353
441
  }
354
442
 
355
443
  &--green-dark-outline {
356
- --btn-link-bg: transparent;
357
- --btn-link-bc: var(--color-green-dark);
358
- --btn-link-txt: var(--color-blue-dark);
444
+ --pkt-color-button-background-normal: var(
445
+ --pkt-color-brand-neutrals-transparent
446
+ );
447
+ --pkt-color-button-border-normal: var(--pkt-color-brand-dark-green-1000);
448
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
359
449
  }
360
450
 
361
451
  &--green {
362
- --btn-link-bg: var(--color-green);
363
- --btn-link-bc: var(--color-green);
364
- --btn-link-txt: var(--color-blue-dark);
452
+ --pkt-color-button-background-normal: var(--pkt-color-brand-green-1000);
453
+ --pkt-color-button-border-normal: var(--pkt-color-brand-green-1000);
454
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
365
455
  }
366
456
 
367
457
  &--green-outline {
368
- --btn-link-bg: transparent;
369
- --btn-link-bc: var(--color-green);
370
- --btn-link-txt: var(--color-blue-dark);
458
+ --pkt-color-button-background-normal: var(
459
+ --pkt-color-brand-neutrals-transparent
460
+ );
461
+ --pkt-color-button-border-normal: var(--pkt-color-brand-green-1000);
462
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
371
463
  }
372
464
 
373
465
  &--blue {
374
- --btn-link-bg: var(--color-blue);
375
- --btn-link-bc: var(--color-blue);
376
- --btn-link-txt: var(--color-blue-dark);
466
+ --pkt-color-button-background-normal: var(--pkt-color-brand-blue-1000);
467
+ --pkt-color-button-border-normal: var(--pkt-color-brand-blue-1000);
468
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
377
469
  }
378
470
 
379
471
  &--blue-outline {
380
- --btn-link-bg: transparent;
381
- --btn-link-bc: var(--color-blue);
382
- --btn-link-txt: var(--color-blue-dark);
472
+ --pkt-color-button-background-normal: var(
473
+ --pkt-color-brand-neutrals-transparent
474
+ );
475
+ --pkt-color-button-border-normal: var(--pkt-color-brand-blue-1000);
476
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
383
477
  }
384
478
 
385
479
  &--beige-light {
386
- --btn-link-bg: var(--color-beige-light);
387
- --btn-link-bc: var(--color-beige-light);
388
- --btn-link-txt: var(--color-blue-dark);
480
+ --pkt-color-button-background-normal: var(
481
+ --pkt-color-brand-light-beige-1000
482
+ );
483
+ --pkt-color-button-border-normal: var(--pkt-color-brand-light-beige-1000);
484
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
389
485
  }
390
486
 
391
487
  &--beige-dark-outline {
392
- --btn-link-bg: transparent;
393
- --btn-link-bc: var(--color-beige-dark);
394
- --btn-link-txt: var(--color-blue-dark);
488
+ --pkt-color-button-background-normal: var(
489
+ --pkt-color-brand-neutrals-transparent
490
+ );
491
+ --pkt-color-button-border-normal: var(--pkt-color-brand-dark-beige-1000);
492
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
395
493
  }
396
494
 
397
495
  &--yellow {
398
- --btn-link-bg: var(--color-yellow);
399
- --btn-link-bc: var(--color-yellow);
400
- --btn-link-txt: var(--color-blue-dark);
496
+ --pkt-color-button-background-normal: var(--pkt-color-brand-yellow-1000);
497
+ --pkt-color-button-border-normal: var(--pkt-color-brand-yellow-1000);
498
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
401
499
  }
402
500
 
403
501
  &--yellow-outline {
404
- --btn-link-bg: transparent;
405
- --btn-link-bc: var(--color-yellow);
406
- --btn-link-txt: var(--color-blue-dark);
502
+ --pkt-color-button-background-normal: var(
503
+ --pkt-color-brand-neutrals-transparent
504
+ );
505
+ --pkt-color-button-border-normal: var(--pkt-color-brand-yellow-1000);
506
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
407
507
  }
408
508
 
409
509
  &--red {
410
- --btn-link-bg: var(--color-red);
411
- --btn-link-bc: var(--color-red);
412
- --btn-link-txt: var(--color-blue-dark);
510
+ --pkt-color-button-background-normal: var(--pkt-color-brand-red-1000);
511
+ --pkt-color-button-border-normal: var(--pkt-color-brand-red-1000);
512
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
413
513
  }
414
514
 
415
515
  &--red-outline {
416
- --btn-link-bg: transparent;
417
- --btn-link-bc: var(--color-red);
418
- --btn-link-txt: var(--color-blue-dark);
516
+ --pkt-color-button-background-normal: var(
517
+ --pkt-color-brand-neutrals-transparent
518
+ );
519
+ --pkt-color-button-border-normal: var(--pkt-color-brand-red-1000);
520
+ --pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
419
521
  }
420
522
  }