forked from DeXter-on-Radix/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
107 lines (95 loc) · 3.57 KB
/
tailwind.config.js
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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
screens: {
xs: "320px",
},
fontFamily: {
inter: ["inter"],
},
// stretch the grid so that footer is always at the bottom
// even on pages with little content
gridTemplateRows: {
"auto-1fr": "auto 1fr",
},
},
},
daisyui: {
themes: [
// browse DeXter colors at https://www.figma.com/file/qushS15h87wjpoXaY6ND4W/DeXter-UI---refresh?node-id=456%3A129&mode=dev
// by clicking on "Show more colors" in dev mode (while the whole page is selected)
{
dark: {
// full list of available color vars at https://daisyui.com/docs/colors/
...require("daisyui/src/theming/themes")["[data-theme=dark]"],
// unused colors not listed
// override more colors if needed below
"secondary-content": "#858D92",
accent: "#CBFC42",
"accent-focus": "#CBFC42",
"accent-content": "#000000",
primary: "#000000",
"primary-content": "#FFFFFF",
neutral: "#383C3E",
error: "#DE4040",
"error-content": "#4D2929",
success: "#2B9548",
"success-content": "#243E17",
"base-100": "#232629",
"base-200": "#191B1D",
"base-300": "#000000",
"base-content": "#FFFFFF",
"--rounded-btn": "0",
"--btn-text-case": "none",
"--rounded-box": "0",
},
},
{
light: {
...require("daisyui/src/theming/themes")["[data-theme=light]"],
// TODO: configure these colors when working with light theme
"secondary-content": "#858D92",
accent: "#BFED3F",
"accent-content": "#000000",
primary: "#000000",
"primary-content": "#FFFFFF",
neutral: "#383C3E",
error: "#FF5C5C",
"error-content": "#4D2929",
success: "#73D2BD",
"success-content": "#243E17",
"base-100": "#232629",
"base-200": "#191B1D",
"base-300": "#000000",
"base-content": "#FFFFFF",
"--rounded-btn": "0",
"--btn-text-case": "none",
"--rounded-box": "0",
},
},
], // true: all themes | false: only light + dark | array: specific themes like this ["light", "dark", "cupcake"]
darkTheme: "dark", // 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
},
plugins: [
require("daisyui"),
require("@tailwindcss/typography"),
require("@tailwindcss/container-queries"),
],
};