-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
57 lines (53 loc) · 1.58 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
import defaultTheme from 'tailwindcss/defaultTheme';
import plugin from 'tailwindcss/plugin';
import typographyPlugin from '@tailwindcss/typography';
export default {
content: ['./src/**/*.{astro,html,js,jsx,json,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
colors: {
primary: 'var(--aw-color-primary)',
secondary: 'var(--aw-color-secondary)',
accent: 'var(--aw-color-accent)',
default: 'var(--aw-color-text-default)',
muted: 'var(--aw-color-text-muted)',
},
fontFamily: {
sans: ['var(--aw-font-sans, ui-sans-serif)', ...defaultTheme.fontFamily.sans],
serif: ['var(--aw-font-serif, ui-serif)', ...defaultTheme.fontFamily.serif],
heading: ['var(--aw-font-heading, ui-sans-serif)', ...defaultTheme.fontFamily.sans],
mono: ['var(--aw-font-mono, ui-monospace)', ...defaultTheme.fontFamily.mono]
},
animation: {
fade: 'fadeInUp 1s both',
},
keyframes: {
fadeInUp: {
'0%': { opacity: 0, transform: 'translateY(2rem)' },
'100%': { opacity: 1, transform: 'translateY(0)' },
},
},
typography: (theme) => {
return {
DEFAULT: {
css: {
'code::before': {
content: 'none',
},
'code::after': {
content: 'none'
},
}
}
}
}
},
},
plugins: [
typographyPlugin,
plugin(({ addVariant }) => {
addVariant('intersect', '&:not([no-intersect])');
}),
],
darkMode: 'class',
};