-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
46 lines (44 loc) · 1.47 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
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin')
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
theme: {
extend: {
height: { fit: 'calc(100vh - var(--header))' },
fontFamily: {
mono: ['', ...defaultTheme.fontFamily.mono],
sans: ['', ...defaultTheme.fontFamily.sans],
serif: ['', ...defaultTheme.fontFamily.serif],
},
animation: {
'fade-in': 'fade-in var(--t) linear',
'fade-out': 'fade-out var(--t) linear',
},
keyframes: {
'fade-in': {
'0%': { opacity: 'var(--o)', transform: 'translate(var(--x), var(--y))' },
'100%': { opacity: '1', transform: 'translate(0, 0)' },
},
'fade-out': {
'0%': { opacity: 'var(--o)', transform: 'translate(0, 0)' },
'100%': { opacity: '0', transform: 'translate(var(--x), var(--y))' },
},
},
},
colors: {
none: 'none',
white: '#fff',
black: '#000',
trans: 'transparent',
primary: '#C84332',
},
screens: { sm: '640px', md: '768px', lg: '1024px', xl: '1440px', '2xl': '1960px' },
},
plugins: [
require('tailwindcss-radix')({ variantPrefix: 'rdx' }),
plugin(({ addVariant }) => {
addVariant('abled', '&:not([disabled])')
}),
],
content: ['./pages/**/*.{js,ts,jsx,tsx}', './views/**/*.{js,ts,jsx,tsx}', './layouts/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
}