Skip to content

Commit 236171f

Browse files
Refactor tailwind.config.ts to update dark mode, content paths, theme colors, container settings, and add new utility classes
1 parent cff9ce4 commit 236171f

File tree

1 file changed

+64
-66
lines changed

1 file changed

+64
-66
lines changed

tailwind.config.ts

+64-66
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,68 @@
1-
import type { Config } from "tailwindcss";
1+
import type { Config } from 'tailwindcss';
22

3-
const config: Config = {
4-
darkMode: ["class"],
5-
content: [
6-
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
7-
"./components/**/*.{js,ts,jsx,tsx,mdx}",
8-
"./app/**/*.{js,ts,jsx,tsx,mdx}",
3+
const config = {
4+
darkMode: ['class'],
5+
content: [
6+
'./pages/**/*.{ts,tsx}',
7+
'./components/**/*.{ts,tsx}',
8+
'./app/**/*.{ts,tsx}',
9+
'./src/**/*.{ts,tsx}',
910
],
11+
prefix: '',
1012
theme: {
11-
extend: {
12-
colors: {
13-
dark:{
14-
1: '#1C1F2E',
15-
2: '#161925',
16-
},
17-
blue: {
18-
1: '#0E78F9'
19-
},
20-
background: 'hsl(var(--background))',
21-
foreground: 'hsl(var(--foreground))',
22-
card: {
23-
DEFAULT: 'hsl(var(--card))',
24-
foreground: 'hsl(var(--card-foreground))'
25-
},
26-
popover: {
27-
DEFAULT: 'hsl(var(--popover))',
28-
foreground: 'hsl(var(--popover-foreground))'
29-
},
30-
primary: {
31-
DEFAULT: 'hsl(var(--primary))',
32-
foreground: 'hsl(var(--primary-foreground))'
33-
},
34-
secondary: {
35-
DEFAULT: 'hsl(var(--secondary))',
36-
foreground: 'hsl(var(--secondary-foreground))'
37-
},
38-
muted: {
39-
DEFAULT: 'hsl(var(--muted))',
40-
foreground: 'hsl(var(--muted-foreground))'
41-
},
42-
accent: {
43-
DEFAULT: 'hsl(var(--accent))',
44-
foreground: 'hsl(var(--accent-foreground))'
45-
},
46-
destructive: {
47-
DEFAULT: 'hsl(var(--destructive))',
48-
foreground: 'hsl(var(--destructive-foreground))'
49-
},
50-
border: 'hsl(var(--border))',
51-
input: 'hsl(var(--input))',
52-
ring: 'hsl(var(--ring))',
53-
chart: {
54-
'1': 'hsl(var(--chart-1))',
55-
'2': 'hsl(var(--chart-2))',
56-
'3': 'hsl(var(--chart-3))',
57-
'4': 'hsl(var(--chart-4))',
58-
'5': 'hsl(var(--chart-5))'
59-
}
60-
},
61-
borderRadius: {
62-
lg: 'var(--radius)',
63-
md: 'calc(var(--radius) - 2px)',
64-
sm: 'calc(var(--radius) - 4px)'
65-
}
66-
}
13+
container: {
14+
center: true,
15+
padding: '2rem',
16+
screens: {
17+
'2xl': '1400px',
18+
},
19+
},
20+
extend: {
21+
colors: {
22+
dark: {
23+
1: '#1C1F2E',
24+
2: '#161925',
25+
3: '#252A41',
26+
4: '#1E2757',
27+
},
28+
blue: {
29+
1: '#0E78F9',
30+
},
31+
sky: {
32+
1: '#C9DDFF',
33+
2: '#ECF0FF',
34+
3: '#F5FCFF',
35+
},
36+
orange: {
37+
1: '#FF742E',
38+
},
39+
purple: {
40+
1: '#830EF9',
41+
},
42+
yellow: {
43+
1: '#F9A90E',
44+
},
45+
},
46+
keyframes: {
47+
'accordion-down': {
48+
from: { height: '0' },
49+
to: { height: 'var(--radix-accordion-content-height)' },
50+
},
51+
'accordion-up': {
52+
from: { height: 'var(--radix-accordion-content-height)' },
53+
to: { height: '0' },
54+
},
55+
},
56+
animation: {
57+
'accordion-down': 'accordion-down 0.2s ease-out',
58+
'accordion-up': 'accordion-up 0.2s ease-out',
59+
},
60+
backgroundImage: {
61+
hero: "url('/images/hero-background.png')",
62+
},
63+
},
6764
},
68-
plugins: [require("tailwindcss-animate")],
69-
};
70-
export default config;
65+
plugins: [require('tailwindcss-animate')],
66+
} satisfies Config;
67+
68+
export default config;

0 commit comments

Comments
 (0)