-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
executable file
·37 lines (36 loc) · 1.08 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
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,svelte,ts,tsx,vue}'],
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: {
float: {
'0%': { transform: 'translateY(0px)' },
'50%': { transform: 'translateY(-20px)' },
'100%': { transform: 'translateY(0px)' },
},
},
animation: {
floating: 'float 3s ease-in-out infinite',
},
},
},
variants: {
extend: {
// Add the group-hover variant to the animationName utility
animationName: ['group-hover'],
},
},
plugins: [require('@tailwindcss/typography')],
darkMode: 'class',
};