This repository was archived by the owner on May 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtailwind.config.js
More file actions
119 lines (107 loc) · 3.84 KB
/
Copy pathtailwind.config.js
File metadata and controls
119 lines (107 loc) · 3.84 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
114
115
116
117
118
119
const colors = [
"red",
"orange",
"yellow",
"green",
"blue",
"indigo",
"purple",
"pink",
"gray",
];
const shades = ["300", "400", "500"];
const emojiColors = [
...colors.flatMap((color) => shades.map((shade) => `text-${color}-${shade}`)),
];
/** @type {import('tailwindcss').Config & { emojiColors: string[] }} */
module.exports = {
darkMode: "class",
safelist: [...emojiColors],
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: {
primary: {
DEFAULT: "var(--color-primary)",
50: "var(--color-primary-50)",
100: "var(--color-primary-100)",
200: "var(--color-primary-200)",
300: "var(--color-primary-300)",
400: "var(--color-primary-400)",
500: "var(--color-primary-500)",
600: "var(--color-primary-600)",
700: "var(--color-primary-700)",
800: "var(--color-primary-800)",
900: "var(--color-primary-900)",
},
secondary: {
DEFAULT: "var(--color-secondary)",
50: "var(--color-secondary-50)",
100: "var(--color-secondary-100)",
200: "var(--color-secondary-200)",
300: "var(--color-secondary-300)",
400: "var(--color-secondary-400)",
500: "var(--color-secondary-500)",
600: "var(--color-secondary-600)",
700: "var(--color-secondary-700)",
800: "var(--color-secondary-800)",
900: "var(--color-secondary-900)",
},
tertiary: {
DEFAULT: "var(--color-tertiary)",
50: "var(--color-tertiary-50)",
100: "var(--color-tertiary-100)",
200: "var(--color-tertiary-200)",
300: "var(--color-tertiary-300)",
400: "var(--color-tertiary-400)",
500: "var(--color-tertiary-500)",
600: "var(--color-tertiary-600)",
700: "var(--color-tertiary-700)",
800: "var(--color-tertiary-800)",
900: "var(--color-tertiary-900)",
},
},
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
fontFamily: {
serif: ["var(--font-inter)", "Inter", "sans-serif"],
sans: ["var(--font-poppins)", "Poppins", "serif"],
mono: ["var(--font-source-code-pro)", "Source Code Pro", "monospace"],
},
},
},
plugins: [require("daisyui")],
emojiColors: emojiColors,
daisyui: {
themes: [
{
mytheme: {
...require("daisyui/src/theming/themes")["[data-theme=dark]"],
primary: "#46dd11",
secondary: "#f3db33",
accent: "#ff6161",
neutral: "#2b3440",
"base-100": "#2b3440",
info: "#bf9fff",
success: "#36d399",
warning: "#fbbd23",
error: "#f87272",
},
},
], // true: all themes | false: only light + dark | array: specific themes like this ["light", "dark", "cupcake"]
darkTheme: "mytheme", // name of one of the included themes for dark mode
base: true, // applies background color and foreground color for root element by default
styled: true, // include daisyUI colors and design decisions for all components
utils: true, // adds responsive and modifier utility classes
rtl: false, // rotate style direction from left-to-right to right-to-left. You also need to add dir="rtl" to your html tag and install `tailwindcss-flip` plugin for Tailwind CSS.
prefix: "", // prefix for daisyUI classnames (components, modifiers and responsive class names. Not colors)
logs: true, // Shows info about daisyUI version and used config in the console when building your CSS
},
};