-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.js
38 lines (35 loc) · 824 Bytes
/
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
import colors from 'tailwindcss/colors';
function withOpacity(variableName) {
return ({ opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgb(var(${variableName}))`;
};
}
/** @type {import('tailwindcss').Config} */
export default {
darkMode: ['class', '[color-scheme="dark"]'],
important: '.tido',
prefix: 't-',
content: [
'./index.html',
'./src/**/*.{vue,js,ts,jsx,tsx}',
],
safelist: [
{ pattern: /(text|bg)-(red|blue|primary)+/ },
],
theme: {
extend: {
colors: {
primary: withOpacity('--color-primary'),
'primary-accent': withOpacity('--color-primary-accent'),
gray: colors.neutral,
},
},
},
plugins: [],
corePlugins: {
preflight: false,
}
};