-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
113 lines (111 loc) · 3.66 KB
/
tailwind.config.ts
File metadata and controls
113 lines (111 loc) · 3.66 KB
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
import type { Config } from "tailwindcss";
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}",
],
darkMode: "class",
theme: {
extend: {
colors: {
background: "var(--background)",
foreground: "var(--foreground)",
},
screens: {
'xs': '475px',
'sm': '640px',
'md': '768px',
'lg': '1024px',
'xl': '1280px',
'2xl': '1536px',
// Additional responsive breakpoints
'tall': { 'raw': '(min-height: 800px)' },
'short': { 'raw': '(max-height: 600px)' },
'mobile-landscape': { 'raw': '(max-width: 768px) and (orientation: landscape)' },
'mobile-portrait': { 'raw': '(max-width: 768px) and (orientation: portrait)' },
},
gridTemplateColumns: {
'15': 'repeat(15, minmax(0, 1fr))',
'auto-fit': 'repeat(auto-fit, minmax(300px, 1fr))',
'auto-fill': 'repeat(auto-fill, minmax(250px, 1fr))',
},
borderWidth: {
'3': '3px',
},
spacing: {
'18': '4.5rem',
'88': '22rem',
'safe-top': 'env(safe-area-inset-top)',
'safe-bottom': 'env(safe-area-inset-bottom)',
'safe-left': 'env(safe-area-inset-left)',
'safe-right': 'env(safe-area-inset-right)',
},
fontSize: {
'fluid-xs': 'clamp(0.75rem, 1vw, 0.875rem)',
'fluid-sm': 'clamp(0.875rem, 1.5vw, 1rem)',
'fluid-base': 'clamp(1rem, 2vw, 1.125rem)',
'fluid-lg': 'clamp(1.125rem, 2.5vw, 1.375rem)',
'fluid-xl': 'clamp(1.25rem, 3vw, 1.5rem)',
'fluid-2xl': 'clamp(1.5rem, 4vw, 2rem)',
'fluid-3xl': 'clamp(1.875rem, 5vw, 2.5rem)',
'fluid-4xl': 'clamp(2.25rem, 6vw, 3rem)',
'fluid-5xl': 'clamp(3rem, 8vw, 4rem)',
'fluid-6xl': 'clamp(3.75rem, 10vw, 5rem)',
},
animation: {
'float': 'float 6s ease-in-out infinite',
'glow': 'glow 2s ease-in-out infinite alternate',
'star-movement-bottom': 'star-movement-bottom linear infinite alternate',
'star-movement-top': 'star-movement-top linear infinite alternate',
'fade-in': 'fadeIn 0.6s ease-out',
'slide-up': 'slideUp 0.6s ease-out',
'scale-in': 'scaleIn 0.4s ease-out',
},
keyframes: {
float: {
'0%, 100%': { transform: 'translateY(0px)' },
'50%': { transform: 'translateY(-20px)' },
},
glow: {
'0%': { boxShadow: '0 0 5px rgba(255, 165, 0, 0.5)' },
'100%': { boxShadow: '0 0 20px rgba(255, 165, 0, 0.8)' },
},
'star-movement-bottom': {
'0%': { transform: 'translate(0%, 0%)', opacity: '1' },
'100%': { transform: 'translate(-100%, 0%)', opacity: '0' },
},
'star-movement-top': {
'0%': { transform: 'translate(0%, 0%)', opacity: '1' },
'100%': { transform: 'translate(100%, 0%)', opacity: '0' },
},
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
slideUp: {
'0%': { transform: 'translateY(20px)', opacity: '0' },
'100%': { transform: 'translateY(0)', opacity: '1' },
},
scaleIn: {
'0%': { transform: 'scale(0.95)', opacity: '0' },
'100%': { transform: 'scale(1)', opacity: '1' },
},
},
container: {
center: true,
padding: {
DEFAULT: '1rem',
sm: '2rem',
lg: '4rem',
xl: '5rem',
'2xl': '6rem',
},
},
},
},
plugins: [
require('@tailwindcss/line-clamp'),
],
};
export default config;