forked from portainer/portainer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
42 lines (39 loc) · 1.11 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
const plugin = require('tailwindcss/plugin');
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('./app/assets/css/colors.json');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./app/**/*.{html,tsx}'],
corePlugins: {
preflight: false,
},
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
inherit: 'inherit',
...colors,
'legacy-grey-3': 'var(--grey-3)',
'legacy-blue-2': 'var(--blue-2)',
'legacy-blue-9': 'var(--blue-9)',
},
extend: {
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
},
animation: {
'spin-slow': 'spin 2s linear infinite',
},
},
},
plugins: [
plugin(({ addVariant }) => {
addVariant('be', '&:is([data-edition="BE"] *)');
addVariant('th-highcontrast', '&:is([theme="highcontrast"] *)');
addVariant('th-dark', '&:is([theme="dark"] *)');
}),
plugin(function ({ addVariant }) {
addVariant('progress-filled', ['&::-webkit-progress-value', '&::-moz-progress-bar']);
}),
],
};