-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
48 lines (47 loc) · 1.13 KB
/
tailwind.config.ts
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
import colors from 'tailwindcss/colors'
import formsPlugin from '@tailwindcss/forms'
import type { Config } from 'tailwindcss'
import { tailwindAnimate } from './src/libs/tailwindAnimate'
module.exports = {
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
plugins: [formsPlugin, tailwindAnimate, {
handler: ({ addUtilities, matchUtilities, theme }) => {
matchUtilities(
{
'group-px': value => ({
'--peer-px': value,
}),
},
{ values: theme('spacing') },
)
addUtilities({
'.peer-px': {
paddingInline: 'var(--peer-px)',
},
})
},
}],
theme: {
extend: {
colors: {
'primary': colors.sky,
'brand': '#075783',
'subtle-white': '#FEFEFE',
},
fontSize: {
'2xs': '0.75rem',
'xs': '0.8125rem',
'md': '15px',
},
fontFamily: {
sans: ['"Open Sans"', 'sans-serif'],
},
keyframes: {
'pulse-subtle': {
'0%, 100%': { opacity: '1' },
'50%': { opacity: '0.75' },
},
},
},
},
} satisfies Config