-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtailwind.config.cjs
95 lines (94 loc) · 2.55 KB
/
tailwind.config.cjs
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
const { tailwindExtractor } = require('tailwindcss/lib/lib/purgeUnusedStyles');
module.exports = {
mode: 'jit',
purge: {
content: ['./src/**/*.{html,js,svelte,ts}'],
options: {
defaultExtractor: (content) => [
// If this stops working, please open an issue at https://github.com/svelte-add/tailwindcss/issues rather than bothering Tailwind Labs about it
...tailwindExtractor(content),
// Match Svelte class: directives (https://github.com/tailwindlabs/tailwindcss/discussions/1731)
...[...content.matchAll(/(?:class:)*([\w\d-/:%.]+)/gm)].map(
([_match, group, ..._rest]) => group
),
],
keyframes: true,
},
},
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
900: '#003e6b',
800: '#0a558c',
700: '#0f609b',
600: '#186faf',
500: '#2580c2',
400: '#4098d7',
300: '#62b0e8',
200: '#84c5f4',
100: '#b6e0fe',
50: '#dceefb',
},
neutral: {
900: '#102a43',
800: '#243b53',
700: '#334e68',
600: '#486581',
500: '#627d98',
400: '#829ab1',
300: '#9fb3c8',
200: '#bcccdc',
100: '#d9e2ec',
50: '#f0f4f8',
},
success: {
900: '#004400',
800: '#016457',
700: '#048271',
600: '#079a82',
500: '#17b897',
400: '#2dcca7',
300: '#5fe3co',
200: '#8eedd1',
100: '#c6f7e9',
50: '#f0fcf9',
},
warning: {
900: '#513c06',
800: '#7c5e10',
700: '#a27c1a',
600: '#c99a2e',
500: '#e9b949',
400: '#f7d070',
300: '#f9da8b',
200: '#f8e3a3',
100: '#fcefc7',
50: '#fffaeb',
},
error: {
900: '#610404',
800: '#780a0a',
700: '#911111',
600: '#a61b1b',
500: '#ba2525',
400: '#d64545',
300: '#e66a6a',
200: '#f29b9b',
100: '#facdcd',
50: '#ffeeee',
},
},
},
},
variants: {
backgroundColor: ['responsive', 'focus', 'hover'],
borderColor: ['responsive', 'focus', 'hover'],
extend: {
backgroundColor: ['active'],
textColor: ['active'],
},
},
plugins: [require('@tailwindcss/forms'), require('@tailwindcss/line-clamp')],
};