generated from TeXmeijin/vite-react-ts-tailwind-firebase-starter
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.config.js
110 lines (110 loc) · 2.25 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
99
100
101
102
103
104
105
106
107
108
109
110
module.exports = {
content: [
'./src/*.html',
'./components/*.tsx',
'./src/*.html.ejs',
'./src/**/*.tsx',
'./src/**/*.ts',
'./src/**/*.js',
'./node_modules/@yak-spirit/yak-swap-ui/**/*.js',
],
theme: {
minWidth: {
20: '2.5rem',
30: '5rem',
40: '10rem',
60: '15rem',
80: '20rem',
100: '25rem',
},
maxWidth: {
120: '30rem',
140: '35rem',
160: '40rem',
200: '50rem',
},
container: {
padding: {
DEFAULT: '1rem',
sm: '2.5rem',
lg: 0,
},
},
},
variants: {},
plugins: [
require('daisyui'),
function ({ addComponents }) {
// sm
// => @media (min-width: 640px) { ... }
// md
// => @media (min-width: 768px) { ... }
// lg
// => @media (min-width: 1024px) { ... }
// xl
// => @media (min-width: 1280px) { ... }
// 2xl
// => @media (min-width: 1536px) { ... }
addComponents({
'.container': {
maxWidth: '100%',
'@screen sm': {
maxWidth: '100%',
},
'@screen md': {
maxWidth: '100%',
},
'@screen lg': {
maxWidth: '980px',
},
'@screen xl': {
maxWidth: '1240px',
},
'@screen 2xl': {
maxWidth: '1300px',
},
},
'.container-wide': {
maxWidth: '100%',
'@screen sm': {
maxWidth: '100%',
},
'@screen md': {
maxWidth: '100%',
},
'@screen lg': {
maxWidth: '1060px',
},
'@screen xl': {
maxWidth: '1320px',
},
'@screen 2xl': {
maxWidth: '1380px',
},
},
});
},
],
daisyui: {
themes: [
{
forest: {
...require('daisyui/src/colors/themes')['[data-theme=forest]'],
primary: '#3CE17D',
'base-content': 'hsl(0 4% 100%)',
},
},
// 'dark',
// 'light',
// 'bumblebee',
// 'emerald',
// 'synthwave',
// 'valentine',
// 'lofi',
// 'pastel',
// 'wireframe',
// 'luxury',
// 'dracula',
],
},
};