@economic/taco 1.16.2 → 1.17.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.
- package/dist/components/AlertDialog/Context.d.ts +1 -1
- package/dist/components/Banner/Banner.stories.d.ts +2 -20
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/Button.stories.d.ts +1 -1
- package/dist/components/Combobox/useCombobox.d.ts +2 -1
- package/dist/components/Datepicker/Datepicker.d.ts +7 -3
- package/dist/components/Datepicker/Datepicker.stories.d.ts +2 -2
- package/dist/components/Datepicker/useDatepicker.d.ts +2 -1
- package/dist/components/Dialog/Context.d.ts +1 -1
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Icon/Icon.stories.d.ts +4 -20
- package/dist/components/IconButton/IconButton.stories.d.ts +11 -48
- package/dist/components/Input/Input.d.ts +15 -8
- package/dist/components/Input/Input.stories.d.ts +15 -41
- package/dist/components/Provider/Localization.d.ts +3 -2
- package/dist/components/SearchInput/SearchInput.d.ts +5 -10
- package/dist/components/SearchInput/SearchInput.stories.d.ts +3 -6
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.stories.d.ts +1 -1
- package/dist/components/Select2/Select2.d.ts +2 -0
- package/dist/components/Select2/Select2.stories.d.ts +0 -1
- package/dist/components/Select2/components/Search.d.ts +6 -3
- package/dist/components/Select2/hooks/useChildren.d.ts +2 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -4
- package/dist/components/Tooltip/Tooltip.stories.d.ts +2 -2
- package/dist/esm/index.css +44 -40
- package/dist/esm/packages/taco/src/components/Accordion/Accordion.js +2 -2
- package/dist/esm/packages/taco/src/components/Accordion/Accordion.js.map +1 -1
- package/dist/esm/packages/taco/src/components/AlertDialog/Context.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js +1 -1
- package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Button/Button.js +1 -2
- package/dist/esm/packages/taco/src/components/Button/Button.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Button/util.js +7 -7
- package/dist/esm/packages/taco/src/components/Button/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Calendar/Calendar.js +1 -1
- package/dist/esm/packages/taco/src/components/Calendar/Calendar.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js +6 -5
- package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Combobox/Combobox.js +2 -2
- package/dist/esm/packages/taco/src/components/Combobox/Combobox.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Combobox/useCombobox.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js +37 -33
- package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Datepicker/useDatepicker.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/Context.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/Dialog.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/Content.js +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Field/Field.js +3 -3
- package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Hanger/Hanger.js +3 -4
- package/dist/esm/packages/taco/src/components/Hanger/Hanger.js.map +1 -1
- package/dist/esm/packages/taco/src/components/HoverCard/Primitives.js +1 -1
- package/dist/esm/packages/taco/src/components/HoverCard/Primitives.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Input/Input.js +110 -58
- package/dist/esm/packages/taco/src/components/Input/Input.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Input/util.js +14 -8
- package/dist/esm/packages/taco/src/components/Input/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js +2 -2
- package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Header.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Header.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Item.js +3 -3
- package/dist/esm/packages/taco/src/components/Menu/components/Item.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Separator.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Separator.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Navigation/Navigation.js +7 -7
- package/dist/esm/packages/taco/src/components/Navigation/Navigation.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Popover/Popover.js +1 -2
- package/dist/esm/packages/taco/src/components/Popover/Popover.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Popover/Primitives.js +1 -1
- package/dist/esm/packages/taco/src/components/Popover/Primitives.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Popover/util.js +1 -1
- package/dist/esm/packages/taco/src/components/Popover/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Progress/Progress.js +3 -3
- package/dist/esm/packages/taco/src/components/Progress/Progress.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Provider/Localization.js +3 -2
- package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
- package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js +4 -4
- package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js +1 -1
- package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js.map +1 -1
- package/dist/esm/packages/taco/src/components/SearchInput/SearchInput.js +31 -15
- package/dist/esm/packages/taco/src/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select/Select.js +2 -2
- package/dist/esm/packages/taco/src/components/Select/Select.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/Select2.js +8 -9
- package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Collection.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Collection.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Edit.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Edit.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js +14 -6
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js +3 -2
- package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/utilities.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/utilities.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Switch/Switch.js +5 -4
- package/dist/esm/packages/taco/src/components/Switch/Switch.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +2 -2
- package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowDraggable.js +1 -1
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowDraggable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/renderRow.js +2 -2
- package/dist/esm/packages/taco/src/components/Table/util/renderRow.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/sortTypes.js +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/sortTypes.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Tabs/Tabs.js +2 -2
- package/dist/esm/packages/taco/src/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Toast/Toast.js +5 -5
- package/dist/esm/packages/taco/src/components/Toast/Toast.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js +3 -3
- package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Tour/Tour.js +3 -3
- package/dist/esm/packages/taco/src/components/Tour/Tour.js.map +1 -1
- package/dist/esm/packages/taco/src/index.js +1 -1
- package/dist/esm/packages/taco/src/utils/colors.js +9 -9
- package/dist/esm/packages/taco/src/utils/colors.js.map +1 -1
- package/dist/index.css +44 -40
- package/dist/index.d.ts +0 -1
- package/dist/primitives/Sortable/components/Item.d.ts +1 -0
- package/dist/taco.cjs.development.js +362 -280
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/package.json +3 -3
- package/plugins/tailwindcss-group-peer.js +12 -0
- package/tailwind.config.js +272 -22
- package/types.json +87 -43
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@economic/taco",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.17.0",
|
4
4
|
"description": "> TODO: description",
|
5
5
|
"author": "Matt Daly <matthew.daly@visma.com>",
|
6
6
|
"homepage": "https://github.com/e-conomic/taco#readme",
|
@@ -42,7 +42,7 @@
|
|
42
42
|
},
|
43
43
|
"dependencies": {
|
44
44
|
"@dnd-kit/sortable": "^7.0.1",
|
45
|
-
"@economic/taco-tokens": "^1.
|
45
|
+
"@economic/taco-tokens": "^1.4.0",
|
46
46
|
"@radix-ui/react-accordion": "^1.0.1",
|
47
47
|
"@radix-ui/react-alert-dialog": "^1.0.2",
|
48
48
|
"@radix-ui/react-checkbox": "^1.0.1",
|
@@ -129,5 +129,5 @@
|
|
129
129
|
"not ie < 11"
|
130
130
|
]
|
131
131
|
},
|
132
|
-
"gitHead": "
|
132
|
+
"gitHead": "d576d09d39cbfc0f201b850c1b85f4b858da67a1"
|
133
133
|
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
const plugin = require('tailwindcss/plugin');
|
2
|
+
|
3
|
+
module.exports = plugin(function groupPeer({ addVariant }) {
|
4
|
+
const pseudoVariants = ['active', 'focus', 'hover', 'invalid'].map(variant => [variant, `&:${variant}`]);
|
5
|
+
|
6
|
+
for (let [variantName, state] of pseudoVariants) {
|
7
|
+
addVariant(`group-peer-${variantName}`, ctx => {
|
8
|
+
const result = typeof state === 'function' ? state(ctx) : state;
|
9
|
+
return result.replace(/&(\S+)/, ':merge(.peer)$1 ~ .group &');
|
10
|
+
});
|
11
|
+
}
|
12
|
+
});
|
package/tailwind.config.js
CHANGED
@@ -40,6 +40,7 @@ module.exports = {
|
|
40
40
|
},
|
41
41
|
plugins: [
|
42
42
|
require('./plugins/tailwindcss-aria-attributes'),
|
43
|
+
require('./plugins/tailwindcss-group-peer'),
|
43
44
|
plugin(function ({ addUtilities, theme }) {
|
44
45
|
// ideally we would do this using the @layer utilities directive, but
|
45
46
|
// that causes issues in tools like tailwind where the typescript is loaded before the css
|
@@ -75,21 +76,53 @@ module.exports = {
|
|
75
76
|
background: theme('colors.white'),
|
76
77
|
color: theme('colors.black'),
|
77
78
|
},
|
79
|
+
'.wcag-grey-50': {
|
80
|
+
background: theme('colors.grey.50'),
|
81
|
+
color: theme('colors.black'),
|
82
|
+
},
|
83
|
+
'.wcag-grey-100': {
|
84
|
+
background: theme('colors.grey.100'),
|
85
|
+
color: theme('colors.black'),
|
86
|
+
},
|
87
|
+
'.wcag-grey-200': {
|
88
|
+
background: theme('colors.grey.200'),
|
89
|
+
color: theme('colors.black'),
|
90
|
+
},
|
91
|
+
'.wcag-grey-300': {
|
92
|
+
background: theme('colors.grey.300'),
|
93
|
+
color: theme('colors.black'),
|
94
|
+
},
|
95
|
+
'.wcag-grey-500': {
|
96
|
+
background: theme('colors.grey.500'),
|
97
|
+
color: theme('colors.black'),
|
98
|
+
},
|
99
|
+
'.wcag-grey-700': {
|
100
|
+
background: theme('colors.grey.700'),
|
101
|
+
color: theme('colors.white'),
|
102
|
+
},
|
103
|
+
'.wcag-grey-900': {
|
104
|
+
background: theme('colors.grey.900'),
|
105
|
+
color: theme('colors.white'),
|
106
|
+
},
|
107
|
+
'.wcag-grey-darkNew': {
|
108
|
+
background: theme('colors.grey.darkNew'),
|
109
|
+
color: theme('colors.white'),
|
110
|
+
},
|
78
111
|
'.wcag-grey-lightest': {
|
79
112
|
background: theme('colors.grey.lightest'),
|
80
|
-
color: theme('colors.
|
113
|
+
color: theme('colors.white'),
|
81
114
|
},
|
82
115
|
'.wcag-grey-light': {
|
83
116
|
background: theme('colors.grey.light'),
|
84
|
-
color: theme('colors.
|
117
|
+
color: theme('colors.white'),
|
85
118
|
},
|
86
119
|
'.wcag-grey': {
|
87
120
|
background: theme('colors.grey.DEFAULT'),
|
88
|
-
color: theme('colors.
|
121
|
+
color: theme('colors.white'),
|
89
122
|
},
|
90
123
|
'.wcag-grey-dark': {
|
91
124
|
background: theme('colors.grey.dark'),
|
92
|
-
color: theme('colors.
|
125
|
+
color: theme('colors.white'),
|
93
126
|
},
|
94
127
|
'.wcag-grey-darker': {
|
95
128
|
background: theme('colors.grey.darker'),
|
@@ -99,10 +132,57 @@ module.exports = {
|
|
99
132
|
background: theme('colors.grey.darkest'),
|
100
133
|
color: theme('colors.white'),
|
101
134
|
},
|
102
|
-
|
103
|
-
|
135
|
+
|
136
|
+
'.wcag-pink-100': {
|
137
|
+
background: theme('colors.pink.100'),
|
138
|
+
color: theme('colors.pink.900'),
|
139
|
+
},
|
140
|
+
'.wcag-pink-200': {
|
141
|
+
background: theme('colors.pink.200'),
|
142
|
+
color: theme('colors.pink.900'),
|
143
|
+
},
|
144
|
+
'.wcag-pink-300': {
|
145
|
+
background: theme('colors.pink.300'),
|
146
|
+
color: theme('colors.black'),
|
147
|
+
},
|
148
|
+
'.wcag-pink-500': {
|
149
|
+
background: theme('colors.pink.500'),
|
150
|
+
color: theme('colors.black'),
|
151
|
+
},
|
152
|
+
'.wcag-pink-700': {
|
153
|
+
background: theme('colors.pink.700'),
|
154
|
+
color: '#000000',
|
155
|
+
},
|
156
|
+
'.wcag-pink-900': {
|
157
|
+
background: theme('colors.pink.900'),
|
104
158
|
color: theme('colors.white'),
|
105
159
|
},
|
160
|
+
|
161
|
+
'.wcag-purple-100': {
|
162
|
+
background: theme('colors.purple.100'),
|
163
|
+
color: theme('colors.purple.900'),
|
164
|
+
},
|
165
|
+
'.wcag-purple-200': {
|
166
|
+
background: theme('colors.purple.200'),
|
167
|
+
color: theme('colors.purple.900'),
|
168
|
+
},
|
169
|
+
'.wcag-purple-300': {
|
170
|
+
background: theme('colors.purple.300'),
|
171
|
+
color: theme('colors.purple.900'),
|
172
|
+
},
|
173
|
+
'.wcag-purple-500': {
|
174
|
+
background: theme('colors.purple.500'),
|
175
|
+
color: theme('colors.black'),
|
176
|
+
},
|
177
|
+
'.wcag-purple-700': {
|
178
|
+
background: theme('colors.purple.700'),
|
179
|
+
color: theme('colors.white'),
|
180
|
+
},
|
181
|
+
'.wcag-purple-900': {
|
182
|
+
background: theme('colors.purple.900'),
|
183
|
+
color: theme('colors.white'),
|
184
|
+
},
|
185
|
+
|
106
186
|
'.wcag-purple-lightest': {
|
107
187
|
background: theme('colors.purple.lightest'),
|
108
188
|
color: theme('colors.white'),
|
@@ -151,6 +231,30 @@ module.exports = {
|
|
151
231
|
background: theme('colors.blue.dark'),
|
152
232
|
color: theme('colors.white'),
|
153
233
|
},
|
234
|
+
'.wcag-blue-100': {
|
235
|
+
background: theme('colors.blue.100'),
|
236
|
+
color: theme('colors.blue.900'),
|
237
|
+
},
|
238
|
+
'.wcag-blue-200': {
|
239
|
+
background: theme('colors.blue.200'),
|
240
|
+
color: theme('colors.blue.900'),
|
241
|
+
},
|
242
|
+
'.wcag-blue-300': {
|
243
|
+
background: theme('colors.blue.300'),
|
244
|
+
color: theme('colors.blue.900'),
|
245
|
+
},
|
246
|
+
'.wcag-blue-500': {
|
247
|
+
background: theme('colors.blue.500'),
|
248
|
+
color: theme('colors.white'),
|
249
|
+
},
|
250
|
+
'.wcag-blue-700': {
|
251
|
+
background: theme('colors.blue.700'),
|
252
|
+
color: theme('colors.white'),
|
253
|
+
},
|
254
|
+
'.wcag-blue-900': {
|
255
|
+
background: theme('colors.blue.900'),
|
256
|
+
color: theme('colors.white'),
|
257
|
+
},
|
154
258
|
'.wcag-red-lightest': {
|
155
259
|
background: theme('colors.red.lightest'),
|
156
260
|
color: theme('colors.red.dark'),
|
@@ -167,6 +271,32 @@ module.exports = {
|
|
167
271
|
background: theme('colors.red.dark'),
|
168
272
|
color: theme('colors.white'),
|
169
273
|
},
|
274
|
+
|
275
|
+
'.wcag-red-100': {
|
276
|
+
background: theme('colors.red.100'),
|
277
|
+
color: theme('colors.red.900'),
|
278
|
+
},
|
279
|
+
'.wcag-red-200': {
|
280
|
+
background: theme('colors.red.200'),
|
281
|
+
color: theme('colors.red.900'),
|
282
|
+
},
|
283
|
+
'.wcag-red-300': {
|
284
|
+
background: theme('colors.red.300'),
|
285
|
+
color: theme('colors.black'),
|
286
|
+
},
|
287
|
+
'.wcag-red-500': {
|
288
|
+
background: theme('colors.red.500'),
|
289
|
+
color: theme('colors.white'),
|
290
|
+
},
|
291
|
+
'.wcag-red-700': {
|
292
|
+
background: theme('colors.red.700'),
|
293
|
+
color: theme('colors.white'),
|
294
|
+
},
|
295
|
+
'.wcag-red-900': {
|
296
|
+
background: theme('colors.red.900'),
|
297
|
+
color: theme('colors.white'),
|
298
|
+
},
|
299
|
+
|
170
300
|
'.wcag-green-lightest': {
|
171
301
|
background: theme('colors.green.lightest'),
|
172
302
|
color: theme('colors.black'),
|
@@ -183,6 +313,32 @@ module.exports = {
|
|
183
313
|
background: theme('colors.green.dark'),
|
184
314
|
color: theme('colors.white'),
|
185
315
|
},
|
316
|
+
|
317
|
+
'.wcag-green-100': {
|
318
|
+
background: theme('colors.green.100'),
|
319
|
+
color: theme('colors.green.900'),
|
320
|
+
},
|
321
|
+
'.wcag-green-200': {
|
322
|
+
background: theme('colors.green.200'),
|
323
|
+
color: theme('colors.green.900'),
|
324
|
+
},
|
325
|
+
'.wcag-green-300': {
|
326
|
+
background: theme('colors.green.300'),
|
327
|
+
color: theme('colors.green.900'),
|
328
|
+
},
|
329
|
+
'.wcag-green-500': {
|
330
|
+
background: theme('colors.green.500'),
|
331
|
+
color: theme('colors.black'),
|
332
|
+
},
|
333
|
+
'.wcag-green-700': {
|
334
|
+
background: theme('colors.green.700'),
|
335
|
+
color: theme('colors.white'),
|
336
|
+
},
|
337
|
+
'.wcag-green-900': {
|
338
|
+
background: theme('colors.green.900'),
|
339
|
+
color: theme('colors.white'),
|
340
|
+
},
|
341
|
+
|
186
342
|
'.wcag-yellow-lightest': {
|
187
343
|
background: theme('colors.yellow.lightest'),
|
188
344
|
color: theme('colors.black'),
|
@@ -199,10 +355,104 @@ module.exports = {
|
|
199
355
|
background: theme('colors.yellow.dark'),
|
200
356
|
color: theme('colors.white'),
|
201
357
|
},
|
358
|
+
|
359
|
+
'.wcag-yellow-100': {
|
360
|
+
background: theme('colors.yellow.100'),
|
361
|
+
color: theme('colors.yellow.900'),
|
362
|
+
},
|
363
|
+
'.wcag-yellow-200': {
|
364
|
+
background: theme('colors.yellow.200'),
|
365
|
+
color: theme('colors.yellow.900'),
|
366
|
+
},
|
367
|
+
'.wcag-yellow-300': {
|
368
|
+
background: theme('colors.yellow.300'),
|
369
|
+
color: theme('colors.yellow.900'),
|
370
|
+
},
|
371
|
+
'.wcag-yellow-500': {
|
372
|
+
background: theme('colors.yellow.500'),
|
373
|
+
color: theme('colors.yellow.900'),
|
374
|
+
},
|
375
|
+
'.wcag-yellow-700': {
|
376
|
+
background: theme('colors.yellow.700'),
|
377
|
+
color: theme('colors.black'),
|
378
|
+
},
|
379
|
+
'.wcag-yellow-900': {
|
380
|
+
background: theme('colors.yellow.900'),
|
381
|
+
color: theme('colors.white'),
|
382
|
+
},
|
383
|
+
|
384
|
+
'.wcag-brown-100': {
|
385
|
+
background: theme('colors.brown.100'),
|
386
|
+
color: theme('colors.brown.900'),
|
387
|
+
},
|
388
|
+
'.wcag-brown-200': {
|
389
|
+
background: theme('colors.brown.200'),
|
390
|
+
color: theme('colors.brown.900'),
|
391
|
+
},
|
392
|
+
'.wcag-brown-300': {
|
393
|
+
background: theme('colors.brown.300'),
|
394
|
+
color: theme('colors.brown.900'),
|
395
|
+
},
|
396
|
+
'.wcag-brown-500': {
|
397
|
+
background: theme('colors.brown.500'),
|
398
|
+
color: theme('colors.black'),
|
399
|
+
},
|
400
|
+
'.wcag-brown-700': {
|
401
|
+
background: theme('colors.brown.700'),
|
402
|
+
color: theme('colors.white'),
|
403
|
+
},
|
404
|
+
'.wcag-brown-900': {
|
405
|
+
background: theme('colors.brown.900'),
|
406
|
+
color: theme('colors.white'),
|
407
|
+
},
|
408
|
+
'.wcag-orange-100': {
|
409
|
+
background: theme('colors.orange.100'),
|
410
|
+
color: theme('colors.orange.900'),
|
411
|
+
},
|
412
|
+
'.wcag-orange-200': {
|
413
|
+
background: theme('colors.orange.200'),
|
414
|
+
color: theme('colors.orange.900'),
|
415
|
+
},
|
416
|
+
'.wcag-orange-300': {
|
417
|
+
background: theme('colors.orange.300'),
|
418
|
+
color: theme('colors.orange.900'),
|
419
|
+
},
|
420
|
+
'.wcag-orange-500': {
|
421
|
+
background: theme('colors.orange.500'),
|
422
|
+
color: theme('colors.orange.900'),
|
423
|
+
},
|
424
|
+
'.wcag-orange-700': {
|
425
|
+
background: theme('colors.orange.700'),
|
426
|
+
color: theme('colors.orange.900'),
|
427
|
+
},
|
428
|
+
'.wcag-orange-900': {
|
429
|
+
background: theme('colors.orange.900'),
|
430
|
+
color: theme('colors.white'),
|
431
|
+
},
|
432
|
+
'.wcag-brand-vismaRed': {
|
433
|
+
background: theme('colors.brand.vismaRed'),
|
434
|
+
color: theme('colors.white'),
|
435
|
+
},
|
436
|
+
'.wcag-brand-paleOrange': {
|
437
|
+
background: theme('colors.brand.paleOrange'),
|
438
|
+
color: theme('colors.orange.900'),
|
439
|
+
},
|
440
|
+
'.wcag-brand-sunsetOrange': {
|
441
|
+
background: theme('colors.brand.sunsetOrange'),
|
442
|
+
color: theme('colors.yellow.900'),
|
443
|
+
},
|
444
|
+
'.wcag-brand-midnightBlue': {
|
445
|
+
background: theme('colors.brand.midnightBlue'),
|
446
|
+
color: theme('colors.white'),
|
447
|
+
},
|
448
|
+
'.wcag-brand-coolBlue': {
|
449
|
+
background: theme('colors.brand.coolBlue'),
|
450
|
+
color: theme('colors.blue.900'),
|
451
|
+
},
|
202
452
|
// Legacy
|
203
453
|
'.yt-transparent': {
|
204
454
|
background: theme('colors.transparent'),
|
205
|
-
color: theme('colors.blue.
|
455
|
+
color: theme('colors.blue.500'),
|
206
456
|
},
|
207
457
|
'.yt-focus': {
|
208
458
|
'box-shadow': '0 0 0 2px rgba(0, 99, 255, 0.25)',
|
@@ -225,49 +475,49 @@ module.exports = {
|
|
225
475
|
outline: 'none',
|
226
476
|
},
|
227
477
|
'.yt-blue-solid': {
|
228
|
-
background: theme('colors.blue.
|
478
|
+
background: theme('colors.blue.500'),
|
229
479
|
color: theme('colors.white'),
|
230
480
|
},
|
231
481
|
'.yt-blue-inverted': {
|
232
482
|
background: theme('colors.transparent'),
|
233
|
-
border: `1px solid ${theme('colors.blue.
|
234
|
-
color: theme('colors.blue.
|
483
|
+
border: `1px solid ${theme('colors.blue.500')}`,
|
484
|
+
color: theme('colors.blue.500'),
|
235
485
|
},
|
236
486
|
'.yt-yellow-solid': {
|
237
|
-
background: theme('colors.yellow.
|
487
|
+
background: theme('colors.yellow.500'),
|
238
488
|
color: theme('colors.black'),
|
239
489
|
},
|
240
490
|
'.yt-yellow-inverted': {
|
241
491
|
background: theme('colors.transparent'),
|
242
|
-
border: `1px solid ${theme('colors.yellow.
|
243
|
-
color: theme('colors.yellow.
|
492
|
+
border: `1px solid ${theme('colors.yellow.500')}`,
|
493
|
+
color: theme('colors.yellow.500'),
|
244
494
|
},
|
245
495
|
'.yt-red-solid': {
|
246
|
-
background: theme('colors.red.
|
496
|
+
background: theme('colors.red.500'),
|
247
497
|
color: theme('colors.white'),
|
248
498
|
},
|
249
499
|
'.yt-red-inverted': {
|
250
500
|
background: theme('colors.transparent'),
|
251
|
-
border: `1px solid ${theme('colors.red.
|
252
|
-
color: theme('colors.red.
|
501
|
+
border: `1px solid ${theme('colors.red.500')}`,
|
502
|
+
color: theme('colors.red.500'),
|
253
503
|
},
|
254
504
|
'.yt-green-solid': {
|
255
|
-
background: theme('colors.green.
|
505
|
+
background: theme('colors.green.500'),
|
256
506
|
color: theme('colors.white'),
|
257
507
|
},
|
258
508
|
'.yt-green-inverted': {
|
259
509
|
background: theme('colors.transparent'),
|
260
|
-
border: `1px solid ${theme('colors.green.
|
261
|
-
color: theme('colors.green.
|
510
|
+
border: `1px solid ${theme('colors.green.500')}`,
|
511
|
+
color: theme('colors.green.500'),
|
262
512
|
},
|
263
513
|
'.yt-grey-solid': {
|
264
|
-
background: theme('colors.grey.
|
514
|
+
background: theme('colors.grey.200'),
|
265
515
|
color: theme('colors.black'),
|
266
516
|
},
|
267
517
|
'.yt-grey-inverted': {
|
268
518
|
background: theme('colors.transparent'),
|
269
|
-
border: `1px solid ${theme('colors.grey.
|
270
|
-
color: theme('colors.grey.
|
519
|
+
border: `1px solid ${theme('colors.grey.700')}`,
|
520
|
+
color: theme('colors.grey.700'),
|
271
521
|
},
|
272
522
|
'.yt-shadow': {
|
273
523
|
'box-shadow': '0px 1px 3px 0px rgba(89, 85, 98, 0.35), 0px 0px 1px 0px rgba(89, 85, 98, 0.2)',
|