-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.ts
83 lines (80 loc) · 2.28 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
import type { Config } from 'tailwindcss'
import typography from '@tailwindcss/typography'
const config: Config = {
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: {
sakuraPink: '#f6a8b8',
skyBlue: '#5bcefa',
lightBackground: '#ffffff',
lightForeground: '#171717',
lightBackgroundGray: '#595959',
// Dark mode colors
darkSakuraPink: '#d890a2',
darkSkyBlue: '#4aa7e0',
darkBackground: '#1a1a1a',
darkForeground: '#e0e0e0',
darkBackgroundGray: '#A6A6A6',
darkCardBackground: '#252525',
},
fontFamily: {
sans: ['var(--font-noto-sans-sc)', 'Arial', 'sans-serif'],
mono: ['var(--font-jetbrains-mono)'],
},
typography: theme => ({
DEFAULT: {
css: {
color: theme('colors.lightForeground'),
a: {
'color': theme('colors.skyBlue'),
'&:hover': {
color: theme('colors.sakuraPink'),
},
},
},
},
dark: {
css: {
color: theme('colors.darkForeground'),
a: {
'color': theme('colors.darkSkyBlue'),
'&:hover': {
color: theme('colors.darkSakuraPink'),
},
},
h1: { color: theme('colors.darkForeground') },
h2: { color: theme('colors.darkForeground') },
h3: { color: theme('colors.darkForeground') },
h4: { color: theme('colors.darkForeground') },
p: { color: theme('colors.darkForeground') },
strong: { color: theme('colors.darkForeground') },
code: { color: theme('colors.darkForeground') },
},
},
}),
keyframes: {
fadeInDown: {
'0%': {
opacity: '0',
transform: 'translateY(-20px)',
},
'100%': {
opacity: '1',
transform: 'translateY(0)',
},
},
},
animation: {
fadeInDown: 'fadeInDown 0.5s ease-out',
},
},
},
darkMode: 'class',
plugins: [typography],
}
export default config