This repository has been archived by the owner on Jun 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
76 lines (75 loc) · 2.17 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
const plugin = require('tailwindcss/plugin');
module.exports = {
corePlugins: {
preflight: false, //manually import this in app.css
},
content: [
'./frontend/**/*.html',
'./frontend/**/*.js',
'./frontend/**/*.css',
'./frontend_comp/templates/**/*.html',
,'./frontend_comp/templates/**/*.jinja',
],
theme: {
extend: {
colors: {
primary: {
DEFAULT: "var(--primary)",
focus: 'var(--primary-focus)',
content: 'var(--primary-content)'
},
secondary: {
DEFAULT: 'var(--secondary)',
focus: 'var(--secondary-focus)',
content: 'var(--secondary-content)'
},
accent: {
DEFAULT: 'var(--accent)',
'focus': 'var(--accent-focus)',
'content': 'var(--accent-content)'
},
neutral: {
'100': '#F3F6FA',
'200': '#E5E7EB',
'300': '#D1D5DB',
'400': '#9CA3AF',
'500': '#6B7280',
'600': '#4B5563',
'700': '#374151',
'800': '#1F2937',
'900': '#111827',
},
info: {
DEFAULT: 'var(--info)',
'focus': 'var(--info-focus)',
'content': 'var(--info-content)'
},
success: {
DEFAULT: 'var(--success)',
'focus': 'var(--success-focus)',
'content':'var(--success-content)',
},
warning: {
DEFAULT: 'var(--warning)',
'focus': 'var(--warning-focus)',
'content': 'var(--warning-content)'
},
error: {
DEFAULT: 'var(--error)',
'focus': 'var(--error-focus)',
'content': 'var(--error-content)'
},
}
},
},
plugins: [
plugin(function({ addVariant }) {
// https://www.crocodile.dev/blog/css-transitions-with-tailwind-and-htmx
addVariant('htmx-settling', ['&.htmx-settling', '.htmx-settling &']);
addVariant('htmx-request', ['&.htmx-request', '.htmx-request &']);
addVariant('htmx-swapping', ['&.htmx-swapping', '.htmx-swapping &']);
addVariant('htmx-added', ['&.htmx-added', '.htmx-added &']);
}),
require('@tailwindcss/forms'),
],
}