-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
192 lines (183 loc) · 6.35 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
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
import twColors from 'tailwindcss/colors';
import defaultTheme from 'tailwindcss/defaultTheme';
import {colors as customColors} from './styles/colors';
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./pages/**/*.{ts,tsx}',
'./components/**/*.{ts,tsx}',
'./app/**/*.{ts,tsx}',
'./src/**/*.{ts,tsx}',
],
darkMode: ['class'],
theme: {
container: {
center: true,
padding: '2rem',
screens: {
'2xl': '1400px',
},
},
extend: {
colors: {
...customColors,
...defaultTheme.colors,
},
fontSize: {
'xl-fluid': ['clamp(12px, 8.57vw, 96px)'],
'lg-fluid': ['clamp(8px, 4.2vw, 32px)'],
'md-fluid': ['clamp(8px, 3.5vw, 24px)'],
'sm-fluid': ['clamp(8px, 3.5vw, 16px)'],
'2xs': [
'0.5rem',
{
lineHeight: '0.8rem',
},
],
'3xs': [
'0.3rem',
{
lineHeight: '0.75rem',
},
],
...defaultTheme.fontSize,
},
aspectRatio: {
portrait: '9/16',
...defaultTheme.aspectRatio,
},
screens: {
xs: '475px',
...defaultTheme.screens,
},
width: {
128: '32rem',
144: '36rem',
256: '64rem',
512: '128rem',
...defaultTheme.width,
},
height: {
128: '32rem',
144: '36rem',
256: '64rem',
512: '128rem',
...defaultTheme.height,
},
spacing: {
128: '32rem',
144: '36rem',
...defaultTheme.spacing,
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic': 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
animation: {
reveal: 'scaleAndFade 750ms ease-in-out',
rotate: 'rotate 20s linear infinite',
revealFromBottom: 'fadeAndSlideFromBottom 450ms ease-in-out 1.45s both',
marquee: 'marquee 10s linear infinite',
scroll: 'scrollInvitation 1s ease-in-out 1s both infinite',
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
...defaultTheme.animation,
},
keyframes: {
marquee: {
'0%': {transform: 'translateX(-33%)'},
'100%': {transform: 'translateX(-50%)'},
},
scrollInvitation: {
'0%': {transform: 'translateY(-30px)', opacity: 0},
'100%': {transform: 'translateY(0%)', opacity: 1},
},
fadeAndSlideFromBottom: {
'0%': {opacity: '0', transform: 'translateY(100px)'},
'100%': {opacity: '1', transform: 'translateY(0)'},
},
scaleAndFade: {
'0%': {opacity: '0', transform: 'scale(0.95)'},
'100%': {opacity: '1', transform: 'scale(1)'},
},
fadeIn: {
'0%': {opacity: '0'},
'100%': {opacity: '1'},
},
rotate: {
'0%': {transform: 'rotate(0deg)'},
'100%': {transform: 'rotate(360deg)'},
},
'accordion-down': {
from: {height: 0},
to: {height: 'var(--radix-accordion-content-height)'},
},
'accordion-up': {
from: {height: 'var(--radix-accordion-content-height)'},
to: {height: 0},
},
},
fontFamily: {
...defaultTheme.fontFamily,
// serif: [
// 'var(--font-cormorant)',
// 'var(--font-italianno',
// 'var(--font-tangerine)',
// 'serif',
// ],
// cormorant: ['var(--font-cormorant)'],
// italianno: ['var(--font-italianno'],
// tangerine: ['var(--font-tangerine)'],
roboto: ['var(--font-roboto)'],
},
},
},
plugins: [
require('tailwindcss-animate'),
require('tailwindcss-text-balance'),
require('@tailwindcss/typography'),
require('daisyui'),
],
future: {
hoverOnlyWhenSupported: true,
},
// daisyUI config (optional - here are the default values)
daisyui: {
themes: [
{
legendisTheme: {
// primary
primary: customColors.husk['400'],
primaryFocus: customColors.husk['500'],
primaryContent: twColors.neutral['50'],
// secondary
secondary: twColors.teal['400'],
// accent
accent: twColors.fuchsia['600'],
// base
'base-100': twColors.neutral['950'],
'base-200': twColors.neutral['900'],
'base-300': twColors.neutral['800'],
'base-content': twColors.neutral['50'],
// neutral
neutral: twColors.neutral['950'],
// info
info: customColors.info['400'],
// success
success: customColors.success['400'],
// warning
warning: customColors.warning['400'],
// error
error: customColors.danger['400'],
},
},
], // true: all themes | false: only light + dark | array: specific themes like this ["light", "dark", "cupcake"]
darkTheme: false,
base: true, // applies background color and foreground color for root element by default
styled: true, // include daisyUI customColors and design decisions for all components
utils: true, // adds responsive and modifier utility classes
rtl: false, // rotate style direction from left-to-right to right-to-left. You also need to add dir="rtl" to your html tag and install `tailwindcss-flip` plugin for Tailwind CSS.
prefix: '', // prefix for daisyUI classnames (components, modifiers and responsive class names. Not twcolors)
logs: true, // Shows info about daisyUI version and used config in the console when building your CSS
},
};