-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.js
98 lines (98 loc) · 2.82 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin')
module.exports = {
darkMode: ['class', '[data-theme="dark"]'],
content: ['./app/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}', './integrations/**/*.{js,ts,jsx,tsx}'],
safelist: [
{
pattern: /(dark|light|)bg-(red|green|blue|orange|purple|indigo|yellow|gray)-(100|200|500|700)/,
variants: ['lg', 'hover', 'focus', 'lg:hover', 'dark'],
},
{
pattern: /(dark|light|)text-(red|green|blue|orange|purple|indigo|yellow|gray)-(100|200|500|700)/,
variants: ['lg', 'hover', 'focus', 'lg:hover', 'dark'],
},
],
theme: {
container: {
center: true,
padding: '1.5rem',
screens: {
'2xl': '1440px',
},
},
extend: {
fontFamily: {
default: ['var(--inter-font)', 'system-ui', 'sans-serif'],
primary: ['var(--raleway-font)', 'system-ui', 'sans-serif'],
raleway: ['var(--raleway-font)', 'system-ui', 'sans-serif'],
sfPro: ['var(--sfPro-font)', 'system-ui', 'sans-serif'],
},
fontSize: {
'2xs': '0.65rem',
xs: '0.75rem',
sm: '0.875rem',
base: '1rem',
lg: '1.125rem',
xl: '1.25rem',
'2xl': '1.5rem',
'3xl': '1.875rem',
'4xl': '2.25rem',
'5xl': '3rem',
'6xl': '4rem',
'7xl': '5.5rem',
'8xl': '6.8rem',
'9xl': '4rem',
},
animation: {
// Tooltip
'slide-up-fade': 'slide-up-fade 0.3s cubic-bezier(0.16, 1, 0.3, 1)',
'slide-down-fade': 'slide-down-fade 0.3s cubic-bezier(0.16, 1, 0.3, 1)',
},
keyframes: {
// Tooltip
'slide-up-fade': {
'0%': { opacity: 0, transform: 'translateY(6px)' },
'100%': { opacity: 1, transform: 'translateY(0)' },
},
'slide-down-fade': {
'0%': { opacity: 0, transform: 'translateY(-6px)' },
'100%': { opacity: 1, transform: 'translateY(0)' },
},
},
colors: {
gray: {
100: '#f7fafc',
200: '#edf2f7',
300: '#e2e8f0',
400: '#cbd5e0',
500: '#a0aec0',
600: '#718096',
700: '#4a5568',
800: '#2d3748',
900: '#1a202c',
},
blue: {
100: '#ebf8ff',
200: '#bee3f8',
300: '#90cdf4',
400: '#63b3ed',
500: '#4299e1',
600: '#3182ce',
700: '#2b6cb0',
800: '#2c5282',
900: '#2a4365',
},
},
},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require('@tailwindcss/line-clamp'),
plugin(({ addVariant }) => {
addVariant('radix-side-top', '&[data-side="top"]')
addVariant('radix-side-bottom', '&[data-side="bottom"]')
}),
],
}