-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
196 lines (184 loc) · 6.43 KB
/
tailwind.config.js
File metadata and controls
196 lines (184 loc) · 6.43 KB
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin');
/** @type {import('tailwindcss').Config} */
const colors = require('tailwindcss/colors');
module.exports = {
darkMode: ['class', '[data-theme="dark"]'],
// The content section of your tailwind.config.js file is where you configure the paths to all of your HTML templates, JavaScript components, and any other source files that contain Tailwind class names
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
'./node_modules/@nextui-org/theme/dist/components/pagination.js', // for next ui pagination
],
theme: {
extend: {
screens: {
'375px': '375px',
'3xl': '1780px',
'4xl': '2160px',
'5xl': '2560px',
},
colors: {
header: 'var(--saaskit-header-color, #ffffff)',
sidebar: 'var(--saaskit-sidebar-color, #ffffff)',
background: 'var(--saaskit-background-color, #ffffff)',
'fade-gray': 'bg-[#E8E8ED]',
/*
* body, modal, drawer background & ring-offset-color
*/
background: 'rgb(var(--background) / <alpha-value>)',
/*
* body text color
*/
foreground: 'rgb(var(--foreground) / <alpha-value>)',
/*
* border, default flat bg color for input components, tab & dropdown hover color
*/
muted: 'rgb(var(--muted) / <alpha-value>)',
/*
* disable foreground color
*/
'muted-foreground': 'rgb(var(--muted-foreground) / <alpha-value>)',
/*
* primary colors
*/
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 colors
*/
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>)',
},
/*
* danger colors
*/
red: {
lighter: 'rgb(var(--red-lighter) / <alpha-value>)',
DEFAULT: 'rgb(var(--red-default) / <alpha-value>)',
dark: 'rgb(var(--red-dark) / <alpha-value>)',
},
/*
* warning colors
*/
orange: {
lighter: 'rgb(var(--orange-lighter) / <alpha-value>)',
DEFAULT: 'rgb(var(--orange-default) / <alpha-value>)',
dark: 'rgb(var(--orange-dark) / <alpha-value>)',
},
/*
* info colors
*/
blue: {
lighter: 'rgb(var(--blue-lighter) / <alpha-value>)',
DEFAULT: 'rgb(var(--blue-default) / <alpha-value>)',
dark: 'rgb(var(--blue-dark) / <alpha-value>)',
},
/*
* success colors
*/
green: {
lighter: 'rgb(var(--green-lighter) / <alpha-value>)',
DEFAULT: 'rgb(var(--green-default) / <alpha-value>)',
dark: 'rgb(var(--green-dark) / <alpha-value>)',
},
steel: {
DEFAULT: '#1B1E27',
50: '#f6f7f9',
100: '#eaedf1',
200: '#d4d9e3', // Border last range. Will use 200 and below shade
300: '#b1b9c9',
400: '#82889B',
500: '#5d6274',
600: '#3b404f',
700: '#1b1e27', // For text and primary
800: '#15171e',
900: '#111318',
},
custom: {
black: '#0F172A',
gray: '#64748B',
border: '#CBD5E1',
},
},
fontFamily: {
geist: ['var(--font-geist-sans)'],
},
boxShadow: {
left: ' -1px 0px 3px 0 rgb(0,0,0 / 0.16), -1px 0px 2px -1px rgb(0,0,0 / 0.16)',
right:
'1px 0px 3px 0 rgb(0,0,0 / 0.16), 1px 0px 2px -1px rgb(0,0,0 / 0.16)',
dropdown: '0px 4px 20px rgba(86, 96, 139, 0.12)',
'dropdown-sm': '0px 4px 20px rgba(86, 96, 139, 0.05)',
'dropdown-lg': '0px 5px 20px rgba(115, 137, 152, 0.25)',
sidebar: '0px 4px 30px rgba(131, 148, 164, 0.05)',
box: '0px 0px 8px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1)',
small:
'0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)',
card: '0px 3px 8px 1px rgba(27, 30, 39, 0.1)',
},
// requried these animations for the Loader component
animation: {
blink: 'blink 1.4s infinite both;',
'scale-up': 'scaleUp 500ms infinite alternate',
'rotation-clockwise': 'rotationClockwise 10s infinite linear',
'rotation-anticlockwise': 'rotationAntiClockwise 10s infinite linear',
'arrow-bounce': 'arrowBounce 1000ms infinite',
},
keyframes: {
blink: {
'0%': { opacity: 0.2 },
'20%': { opacity: 1 },
'100%': { opacity: 0.2 },
},
scaleUp: {
'0%': { transform: 'scale(0)' },
'100%': { transform: 'scale(1)' },
},
shake: {
'10%, 90%': {
transform: 'translate3d(-1px, 0, 0);',
},
'20%, 80%': {
transform: 'translate3d(2px, 0, 0)',
},
'30%, 50%, 70%': {
transform: 'translate3d(-3px, 0, 0)',
},
'40%, 60%': {
transform: 'translate3d(3px, 0, 0)',
},
},
rotationClockwise: {
'0%': { transform: 'rotate(0deg)' },
'100%': { transform: 'rotate(360deg)' },
},
rotationAntiClockwise: {
'0%': { transform: 'rotate(0deg)' },
'100%': { transform: 'rotate(-360deg)' },
},
arrowBounce: {
'0%': { transform: 'translateY(0)' },
'50%': { transform: 'translateY(-20%)' },
'100%': { transform: 'translateY(0)' },
},
},
},
},
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)');
addVariant('not-disabled', '&:not([disabled])');
}),
],
};