-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
112 lines (110 loc) · 3.51 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
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
import type { Config } from 'tailwindcss'
const TailwindConfig = {
darkMode: 'class',
future: {
hoverOnlyWhenSupported: true,
},
content: [
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./lib/**/*.{js,ts,jsx,tsx,mdx}',
'./styles/**/*.{js,ts,jsx,tsx,mdx,css}',
],
theme: {
screens: {
sm: "480px",
md: "768px",
lg: "976px",
xl: "1200px",
'2xl': "1440px",
},
extend: {
height: {
'icon': 'var(--icon-size)',
'icon-sm': 'var(--icon-size-sm)',
'header-item': 'var(--header-item)',
},
width: {
'icon': 'var(--icon-size)',
'icon-sm': 'var(--icon-size-sm)',
},
maxWidth: {
'prose-full': '85ch',
'prose': '65ch',
'prose-short': '45ch',
},
margin: {
'1/8': '12%', '1/6': '16%', '1/7': '15%', '1/5': '20%', '1/4': '20%', '1/3': '33%'
},
colors: {
bg: {
primary: 'hsl(var(--primary-bg) / <alpha-value>)',
DEFAULT: 'hsl(var(--primary-bg) / <alpha-value>)',
secondary: 'hsl(var(--secondary-bg) / <alpha-value>)',
},
fg: {
primary: 'hsl(var(--primary-fg) / <alpha-value>)',
DEFAULT: 'hsl(var(--primary-fg) / <alpha-value>)',
},
accent: {
primary: 'hsl(var(--primary-accent) / <alpha-value>)',
DEFAULT: 'hsl(var(--primary-accent) / <alpha-value>)',
secondary: 'hsl(var(--secondary-accent) / <alpha-value>)',
warning: 'hsl(var(--warning-accent) / <alpha-value>)',
failure: 'hsl(var(--failure-accent) / <alpha-value>)',
success: 'hsl(var(--primary-accent) / <alpha-value>)',
}
},
fontFamily: {
heading: ['var(--custom-font)'],
body: ['var(--custom-font)']
},
fontSize: {
sm: 'calc(var(--text-base-size) * (1 / var(--text-scale)))',
base: 'var(--text-base-size)',
xl: 'calc(var(--text-base-size) * (1 + 2 * (var(--text-scale) - 1)))',
'2xl': 'calc(var(--text-base-size) * (1 + 3 * (var(--text-scale) - 1)))',
'3xl': 'calc(var(--text-base-size) * (1 + 4 * (var(--text-scale) - 1 )))',
'4xl': 'calc(var(--text-base-size) * (1 + 5 * (var(--text-scale) - 1 )))',
'5xl': 'calc(var(--text-base-size) * (1 + 6 * (var(--text-scale) - 1)))',
},
borderRadius: {
'rounded-sm': 'calc(var(--rounded-size) * (1 / var(--rounded-scale)))',
'rounded': 'calc(var(--rounded-size))',
'rounded-md': 'calc(var(--rounded-size) * (1 + 2 * (var(--rounded-scale) - 1)))',
'rounded-lg': 'calc(var(--rounded-size) * (1 + 3 * (var(--rounded-scale) - 1)))',
'rounded-xl': 'calc(var(--rounded-size) * (1 + 4 * (var(--rounded-scale) - 1)))',
'rounded-2xl': 'calc(var(--rounded-size) * (1 + 5 * (var(--rounded-scale) - 1)))',
'rounded-3xl': 'calc(var(--rounded-size) * (1 + 6 * (var(--rounded-scale) - 1)))',
},
zIndex: {
'-1': '-1'
},
dropShadow: {
'dark': '0px 0px 12px rgba(0, 0, 0, 0.7)',
'4xl': [
'0 35px 35px rgba(0, 0, 0, 0.25)',
'0 45px 65px rgba(0, 0, 0, 0.15)'
],
},
backgroundImage: {
'linear-accent-gradient':
'linear-gradient(to right, var(--primary-accent), var(--secondary-accent))',
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
},
animation: {
'breathing': 'bounceScale 2s linear infinite',
},
keyframes: {
bounceScale: {
'0%, 100%': { transform: 'scale(1)' },
'50%': { transform: 'scale(1.2)' },
}
},
}
},
plugins: [
require('@tailwindcss/typography')
],
} satisfies Config
export default TailwindConfig