-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
52 lines (50 loc) · 1.49 KB
/
tailwind.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// eslint-disable-next-line @typescript-eslint/no-var-requires
const plugin = require('tailwindcss/plugin');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./app/**/*.{ts,tsx,jsx,js}'],
theme: {
extend: {
colors: {
'sra-brand-orange': {
50: '#fef8f4',
100: '#fef0e9',
200: '#fcdac8',
300: '#fac4a6',
400: '#f69764',
500: '#f26b21',
600: '#da601e',
700: '#b65019',
800: '#914014',
900: '#773410',
},
'sra-brand-red': {
50: '#fef4f4',
100: '#fde8ea',
200: '#fac6ca',
300: '#f7a4aa',
400: '#f0606b',
500: '#ea1c2b',
600: '#d31927',
700: '#b01520',
800: '#8c111a',
900: '#730e15',
},
},
},
},
plugins: [
plugin(({ addVariant }) => {
addVariant('enter', '&[data-enter]');
addVariant('leave', '&[data-leave]');
addVariant('active-item', '&[data-active-item]');
addVariant('active', ['&:active', '&[data-active]']);
addVariant('focus-visible', ['&:focus-visible', '&[data-focus-visible]']);
addVariant('aria-invalid', '&[aria-invalid="true"]');
addVariant('aria-disabled', '&[aria-disabled="true"]');
addVariant('aria-selected', '&[aria-selected="true"]');
addVariant('aria-expanded', '&[aria-expanded="true"]');
addVariant('aria-checked', '&[aria-checked="true"]');
}),
],
};