-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtailwind.config.js
More file actions
68 lines (66 loc) · 2.41 KB
/
tailwind.config.js
File metadata and controls
68 lines (66 loc) · 2.41 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
// tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
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: {
// Replace the default neutral colors with your custom light/dark palette
colors: {
neutral: {
// Light mode colors
50: '#fafafa', // lightest
100: '#f5f5f5',
200: '#e5e5e5',
300: '#d4d4d4',
400: '#a3a3a3',
500: '#737373',
600: '#525252',
700: '#404040',
800: '#262626',
900: '#171717',
950: '#0a0a0a', // darkest
// Dark mode colors (reversed)
'dark-50': '#171717', // darkest
'dark-100': '#262626',
'dark-200': '#404040',
'dark-300': '#525252',
'dark-400': '#737373',
'dark-500': '#a3a3a3',
'dark-600': '#d4d4d4',
'dark-700': '#e5e5e5',
'dark-800': '#f5f5f5',
'dark-900': '#fafafa', // lightest
'dark-950': '#ffffff'
},
// You can do the same for other color groups like primary, secondary, etc.
primary: {
light: '#3b82f6', // blue in light mode
dark: '#60a5fa' // lighter blue in dark mode
}
},
backgroundColor: {
// Define background colors that automatically switch
'background': 'rgb(var(--background-color) / <alpha-value>)',
'background-secondary': 'rgb(var(--background-secondary-color) / <alpha-value>)',
'background-tertiary': 'rgb(var(--background-tertiary-color) / <alpha-value>)',
'background-opposite': 'rgb(var(--background-opposite) / <alpha-value>)',
'background-opposite-secondary': 'rgb(var(--background-secondary-opposite) / <alpha-value>)',
'super': 'rgb(var(--super) / <alpha-value>)',
},
textColor: {
// Define text colors that automatically switch
'primary': 'rgb(var(--text-color) / <alpha-value>)',
'secondary': 'rgb(var(--text-secondary-color) / <alpha-value>)',
'opposite': 'rgb(var(--text-opposite) / <alpha-value>)',
'opposite-secondary': 'rgb(var(--text-secondary-opposite) / <alpha-value>)',
'tertiary': 'rgb(var(--text-tertiary-color) / <alpha-value>)',
}
},
},
plugins: [],
}