-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtailwind.config.ts
73 lines (63 loc) · 1.53 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
import type { Config } from 'tailwindcss'
import defaultTheme from 'tailwindcss/defaultTheme'
import colors from 'tailwindcss/colors'
// import { getThemesFromEnv } from '@/lib/utils/theme'
function getThemesFromEnv() {
if (process.env.NEXT_PUBLIC_DAISYUI_THEMES) {
return JSON.parse(process.env.NEXT_PUBLIC_DAISYUI_THEMES)
}
return ['light', 'dark']
}
export default {
darkMode: 'class',
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
gray: colors.slate,
red: colors.rose,
},
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
serif: ['Playfair Display', ...defaultTheme.fontFamily.serif],
mono: ['Fira Code', ...defaultTheme.fontFamily.mono],
},
animation: {
'fade-in': 'fade-in 0.5s linear forwards',
},
keyframes: {
'fade-in': {
from: {
opacity: '0',
},
to: {
opacity: '1',
},
},
},
},
},
variants: {
extend: {},
},
// daisyUI config (optional) //https://daisyui.com/docs/config/
daisyui: {
styled: true,
themes: getThemesFromEnv(),
base: true,
utils: true,
logs: false,
rtl: false,
prefix: '',
darkTheme: 'dark',
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require('daisyui'),
],
} satisfies Config