-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.cjs
56 lines (55 loc) · 1.5 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
const plugin = require('tailwindcss/plugin');
const defaultTheme = require('tailwindcss/defaultTheme');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: {
files: ['./src/**/*.{astro,html,js,jsx,md,svelte,ts,tsx,vue}'],
transform: (content) => content.replace(/taos:/g, ''),
},
theme: {
extend: {
colors: {
primary: 'var(--aw-color-primary)',
secondary: 'var(--aw-color-secondary)',
accent: 'var(--aw-color-accent)',
},
fontFamily: {
sans: ['var(--aw-font-sans)', ...defaultTheme.fontFamily.sans],
serif: ['var(--aw-font-serif)', ...defaultTheme.fontFamily.serif],
heading: ['var(--aw-font-heading)', ...defaultTheme.fontFamily.sans],
},
keyframes: {
opacity: {
'0%': { opacity: '0' },
'30%': { opacity: '0' },
'100%': { opacity: '1' },
},
},
animation: {
opacity: 'opacity 2s',
},
},
},
plugins: [
require('@tailwindcss/typography'),
plugin(({ addBase }) => {
addBase({
['html.js :where([class*="taos:"]:not(.taos-init))']: {
visibility: 'hidden',
},
});
}),
],
darkMode: 'class',
safelist: [
'!duration-[0ms]',
'!delay-[0ms]',
'html.js :where([class*="taos:"]:not(.taos-init))',
{
pattern: /^(bg|text|border)-(cyan|emerald|yellow|zinc)-(500|600)$/,
},
{
pattern: /^(from|to)-(cyan|emerald|yellow|zinc)-(500|500\/30|500\/15)$/,
},
],
};