-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
148 lines (147 loc) · 5.22 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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
import type { Config } from 'tailwindcss';
import plugin from 'tailwindcss/plugin';
export default {
content: [
'./src/**/*.{js,ts,jsx,tsx}',
'./node_modules/rizzui/dist/*.{js,ts,jsx,tsx}', // must use this line to compile and generate our RizzUI components style
],
darkMode: ['class', '[data-theme="dark"]'],
theme: {
screens: {
xs: '480px',
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1536px',
'3xl': '1920px',
'4xl': '2560px', // only need to control product grid mode in ultra 4k device
},
extend: {
colors: {
gray: {
0: 'rgb(var(--gray-0) / <alpha-value>)',
50: 'rgb(var(--gray-50) / <alpha-value>)',
100: 'rgb(var(--gray-100) / <alpha-value>)',
200: 'rgb(var(--gray-200) / <alpha-value>)',
300: 'rgb(var(--gray-300) / <alpha-value>)',
400: 'rgb(var(--gray-400) / <alpha-value>)',
500: 'rgb(var(--gray-500) / <alpha-value>)',
600: 'rgb(var(--gray-600) / <alpha-value>)',
700: 'rgb(var(--gray-700) / <alpha-value>)',
800: 'rgb(var(--gray-800) / <alpha-value>)',
900: 'rgb(var(--gray-900) / <alpha-value>)',
1000: 'rgb(var(--gray-1000) / <alpha-value>)',
},
background: 'rgb(var(--background) / <alpha-value>)',
foreground: 'rgb(var(--foreground) / <alpha-value>)',
muted: 'rgb(var(--muted) / <alpha-value>)',
'muted-foreground': 'rgb(var(--muted-foreground) / <alpha-value>)',
primary: {
lighter: 'rgb(var(--primary-lighter) / <alpha-value>)',
DEFAULT: 'rgb(var(--primary-default) / <alpha-value>)',
dark: 'rgb(var(--primary-dark) / <alpha-value>)',
foreground: 'rgb(var(--primary-foreground) / <alpha-value>)',
},
secondary: {
lighter: 'rgb(var(--secondary-lighter) / <alpha-value>)',
DEFAULT: 'rgb(var(--secondary-default) / <alpha-value>)',
dark: 'rgb(var(--secondary-dark) / <alpha-value>)',
foreground: 'rgb(var(--secondary-foreground) / <alpha-value>)',
},
red: {
lighter: 'rgb(var(--red-lighter) / <alpha-value>)',
DEFAULT: 'rgb(var(--red-default) / <alpha-value>)',
dark: 'rgb(var(--red-dark) / <alpha-value>)',
},
orange: {
lighter: 'rgb(var(--orange-lighter) / <alpha-value>)',
DEFAULT: 'rgb(var(--orange-default) / <alpha-value>)',
dark: 'rgb(var(--orange-dark) / <alpha-value>)',
},
blue: {
lighter: 'rgb(var(--blue-lighter) / <alpha-value>)',
DEFAULT: 'rgb(var(--blue-default) / <alpha-value>)',
dark: 'rgb(var(--blue-dark) / <alpha-value>)',
},
green: {
lighter: 'rgb(var(--green-lighter) / <alpha-value>)',
DEFAULT: 'rgb(var(--green-default) / <alpha-value>)',
dark: 'rgb(var(--green-dark) / <alpha-value>)',
},
},
fontFamily: {
inter: ['var(--font-inter)'],
lexend: ['var(--font-lexend)'],
},
// required these animations for the Loader component
animation: {
blink: 'blink 1.4s infinite both;',
'scale-up': 'scaleUp 500ms infinite alternate',
'spin-slow': 'spin 4s linear infinite',
popup: 'popup 500ms var(--popup-delay, 0ms) linear 1',
skeleton: 'skeletonWave 1.6s linear 0.5s infinite',
'spinner-ease-spin': 'spinnerSpin 0.8s ease infinite',
'spinner-linear-spin': 'spinnerSpin 0.8s linear infinite',
},
backgroundImage: {
skeleton: `linear-gradient(90deg,transparent,#ecebeb,transparent)`,
'skeleton-dark': `linear-gradient(90deg,transparent,rgba(255,255,255,0.1),transparent)`,
},
keyframes: {
blink: {
'0%': { opacity: '0.2' },
'20%': { opacity: '1' },
'100%': { opacity: '0.2' },
},
scaleUp: {
'0%': { transform: 'scale(0)' },
'100%': { transform: 'scale(1)' },
},
popup: {
'0%': { transform: 'scale(0)' },
'50%': { transform: 'scale(1.3)' },
'100%': { transform: 'scale(1)' },
},
skeletonWave: {
'0%': {
transform: 'translateX(-100%)',
},
'50%': {
/* +0.5s of delay between each loop */
transform: 'translateX(100%)',
},
'100%': {
transform: 'translateX(100%)',
},
},
spinnerSpin: {
'0%': {
transform: 'rotate(0deg)',
},
'100%': {
transform: 'rotate(360deg)',
},
},
},
content: {
underline: 'url("/public/underline.svg")',
},
boxShadow: {
profilePic:
'0px 2px 4px -2px rgba(0, 0, 0, 0.10), 0px 4px 6px -1px rgba(0, 0, 0, 0.10)',
},
gridTemplateColumns: {
'18': 'repeat(18, minmax(0, 1fr))',
},
},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/container-queries'),
plugin(function ({ addVariant }) {
// required this to prevent any style on readOnly input elements
addVariant('not-read-only', '&:not(:read-only)');
}),
],
} satisfies Config;