daisyui 4.0.8 → 4.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/full.css +4 -46743
- package/dist/styled.css +2090 -3668
- package/dist/styled.js +1 -1
- package/dist/themes.css +1 -2118
- package/dist/unstyled.css +458 -862
- package/dist/unstyled.js +1 -1
- package/dist/utilities-styled.js +1 -1
- package/dist/utilities-unstyled.js +1 -1
- package/dist/utilities.js +1 -1
- package/package.json +11 -5
- package/src/index.js +32 -34
- package/src/lib/addPrefix.js +6 -6
- package/src/lib/responsiveRegex.js +1 -1
- package/src/lib/utility-classes.js +1 -1
- package/src/theming/colorNames.js +1 -1
- package/src/theming/functions.js +190 -200
- package/src/theming/index.js +2 -2
- package/src/theming/themeDefaults.js +44 -46
- package/src/theming/themes.js +1 -1
package/src/theming/functions.js
CHANGED
|
@@ -1,229 +1,219 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { colorNames } from "./colorNames"
|
|
2
|
+
import { variables, themesOrder } from "./themeDefaults"
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
import { toGamut, interpolate, wcagContrast } from "culori"
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
if (!number) {
|
|
17
|
-
return 0
|
|
18
|
-
}
|
|
19
|
-
return +number.toFixed(6)
|
|
6
|
+
export function isDark(color) {
|
|
7
|
+
if (wcagContrast(color, "black") < wcagContrast(color, "white")) {
|
|
8
|
+
return true
|
|
9
|
+
}
|
|
10
|
+
return false
|
|
11
|
+
}
|
|
12
|
+
export function colorObjToString(input) {
|
|
13
|
+
const cut = (number) => {
|
|
14
|
+
if (!number) {
|
|
15
|
+
return 0
|
|
20
16
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
17
|
+
return +number.toFixed(6)
|
|
18
|
+
}
|
|
19
|
+
const { l, c, h } = input
|
|
20
|
+
return `${cut(l)} ${cut(c)} ${cut(h)}`
|
|
21
|
+
}
|
|
22
|
+
export function generateForegroundColorFrom(input, percentage = 0.8) {
|
|
23
|
+
const result = interpolate([input, isDark(input) ? "white" : "black"], "oklch")(percentage)
|
|
24
|
+
return colorObjToString(result)
|
|
25
|
+
}
|
|
26
|
+
export function generateDarkenColorFrom(input, percentage = 0.07) {
|
|
27
|
+
const result = interpolate([input, "black"], "oklch")(percentage)
|
|
28
|
+
return colorObjToString(result)
|
|
29
|
+
}
|
|
30
|
+
export function convertColorFormat(input) {
|
|
31
|
+
if (typeof input !== "object" || input === null) {
|
|
32
|
+
return input
|
|
33
|
+
}
|
|
29
34
|
|
|
30
|
-
|
|
31
|
-
const result = interpolate([input, "black"], "oklch")(percentage)
|
|
32
|
-
return this.colorObjToString(result)
|
|
33
|
-
},
|
|
35
|
+
const resultObj = {}
|
|
34
36
|
|
|
35
|
-
|
|
36
|
-
if (
|
|
37
|
-
|
|
37
|
+
Object.entries(input).forEach(([rule, value]) => {
|
|
38
|
+
if (colorNames.hasOwnProperty(rule)) {
|
|
39
|
+
const colorObj = toGamut("oklch")(value)
|
|
40
|
+
resultObj[colorNames[rule]] = colorObjToString(colorObj)
|
|
41
|
+
} else {
|
|
42
|
+
resultObj[rule] = value
|
|
38
43
|
}
|
|
39
44
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
// auto generate base colors
|
|
46
|
+
if (!Object.hasOwn(input, "base-100")) {
|
|
47
|
+
resultObj["--b1"] = "100 0 0"
|
|
48
|
+
}
|
|
49
|
+
if (!Object.hasOwn(input, "base-200")) {
|
|
50
|
+
resultObj["--b2"] = generateDarkenColorFrom(input["base-100"], 0.07)
|
|
51
|
+
}
|
|
52
|
+
if (!Object.hasOwn(input, "base-300")) {
|
|
53
|
+
if (Object.hasOwn(input, "base-200")) {
|
|
54
|
+
resultObj["--b3"] = generateDarkenColorFrom(input["base-200"], 0.07)
|
|
46
55
|
} else {
|
|
47
|
-
resultObj[
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// auto generate base colors
|
|
51
|
-
if (!Object.hasOwn(input, "base-100")) {
|
|
52
|
-
resultObj["--b1"] = "100 0 0"
|
|
53
|
-
}
|
|
54
|
-
if (!Object.hasOwn(input, "base-200")) {
|
|
55
|
-
resultObj["--b2"] = this.generateDarkenColorFrom(input["base-100"], 0.07)
|
|
56
|
-
}
|
|
57
|
-
if (!Object.hasOwn(input, "base-300")) {
|
|
58
|
-
if (Object.hasOwn(input, "base-200")) {
|
|
59
|
-
resultObj["--b3"] = this.generateDarkenColorFrom(input["base-200"], 0.07)
|
|
60
|
-
} else {
|
|
61
|
-
resultObj["--b3"] = this.generateDarkenColorFrom(input["base-100"], 0.14)
|
|
62
|
-
}
|
|
56
|
+
resultObj["--b3"] = generateDarkenColorFrom(input["base-100"], 0.14)
|
|
63
57
|
}
|
|
58
|
+
}
|
|
64
59
|
|
|
65
|
-
|
|
60
|
+
// auto generate state colors
|
|
61
|
+
if (!Object.hasOwn(input, "info")) {
|
|
62
|
+
resultObj["--in"] = "0.7206 0.191 231.6"
|
|
63
|
+
}
|
|
64
|
+
if (!Object.hasOwn(input, "success")) {
|
|
65
|
+
resultObj["--su"] = "0.7441 0.213 164.75"
|
|
66
|
+
}
|
|
67
|
+
if (!Object.hasOwn(input, "warning")) {
|
|
68
|
+
resultObj["--wa"] = "0.8471 0.199 83.87"
|
|
69
|
+
}
|
|
70
|
+
if (!Object.hasOwn(input, "error")) {
|
|
71
|
+
resultObj["--er"] = "0.7176 0.221 22.18"
|
|
72
|
+
}
|
|
66
73
|
|
|
67
|
-
|
|
68
|
-
|
|
74
|
+
// auto generate content colors
|
|
75
|
+
if (!Object.hasOwn(input, "base-content")) {
|
|
76
|
+
resultObj["--bc"] = generateForegroundColorFrom(input["base-100"], 0.8)
|
|
77
|
+
}
|
|
78
|
+
if (!Object.hasOwn(input, "primary-content")) {
|
|
79
|
+
resultObj["--pc"] = generateForegroundColorFrom(input["primary"], 0.8)
|
|
80
|
+
}
|
|
81
|
+
if (!Object.hasOwn(input, "secondary-content")) {
|
|
82
|
+
resultObj["--sc"] = generateForegroundColorFrom(input["secondary"], 0.8)
|
|
83
|
+
}
|
|
84
|
+
if (!Object.hasOwn(input, "accent-content")) {
|
|
85
|
+
resultObj["--ac"] = generateForegroundColorFrom(input["accent"], 0.8)
|
|
86
|
+
}
|
|
87
|
+
if (!Object.hasOwn(input, "neutral-content")) {
|
|
88
|
+
resultObj["--nc"] = generateForegroundColorFrom(input["neutral"], 0.8)
|
|
89
|
+
}
|
|
90
|
+
if (!Object.hasOwn(input, "info-content")) {
|
|
91
|
+
if (Object.hasOwn(input, "info")) {
|
|
92
|
+
resultObj["--inc"] = generateForegroundColorFrom(input["info"], 0.8)
|
|
93
|
+
} else {
|
|
94
|
+
resultObj["--inc"] = "0 0 0"
|
|
69
95
|
}
|
|
70
|
-
|
|
71
|
-
|
|
96
|
+
}
|
|
97
|
+
if (!Object.hasOwn(input, "success-content")) {
|
|
98
|
+
if (Object.hasOwn(input, "success")) {
|
|
99
|
+
resultObj["--suc"] = generateForegroundColorFrom(input["success"], 0.8)
|
|
100
|
+
} else {
|
|
101
|
+
resultObj["--suc"] = "0 0 0"
|
|
72
102
|
}
|
|
73
|
-
|
|
74
|
-
|
|
103
|
+
}
|
|
104
|
+
if (!Object.hasOwn(input, "warning-content")) {
|
|
105
|
+
if (Object.hasOwn(input, "warning")) {
|
|
106
|
+
resultObj["--wac"] = generateForegroundColorFrom(input["warning"], 0.8)
|
|
107
|
+
} else {
|
|
108
|
+
resultObj["--wac"] = "0 0 0"
|
|
75
109
|
}
|
|
76
|
-
|
|
77
|
-
|
|
110
|
+
}
|
|
111
|
+
if (!Object.hasOwn(input, "error-content")) {
|
|
112
|
+
if (Object.hasOwn(input, "error")) {
|
|
113
|
+
resultObj["--erc"] = generateForegroundColorFrom(input["error"], 0.8)
|
|
114
|
+
} else {
|
|
115
|
+
resultObj["--erc"] = "0 0 0"
|
|
78
116
|
}
|
|
117
|
+
}
|
|
79
118
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
resultObj["--pc"] = this.generateForegroundColorFrom(input["primary"], 0.8)
|
|
86
|
-
}
|
|
87
|
-
if (!Object.hasOwn(input, "secondary-content")) {
|
|
88
|
-
resultObj["--sc"] = this.generateForegroundColorFrom(input["secondary"], 0.8)
|
|
89
|
-
}
|
|
90
|
-
if (!Object.hasOwn(input, "accent-content")) {
|
|
91
|
-
resultObj["--ac"] = this.generateForegroundColorFrom(input["accent"], 0.8)
|
|
92
|
-
}
|
|
93
|
-
if (!Object.hasOwn(input, "neutral-content")) {
|
|
94
|
-
resultObj["--nc"] = this.generateForegroundColorFrom(input["neutral"], 0.8)
|
|
95
|
-
}
|
|
96
|
-
if (!Object.hasOwn(input, "info-content")) {
|
|
97
|
-
if (Object.hasOwn(input, "info")) {
|
|
98
|
-
resultObj["--inc"] = this.generateForegroundColorFrom(input["info"], 0.8)
|
|
99
|
-
} else {
|
|
100
|
-
resultObj["--inc"] = "0 0 0"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
if (!Object.hasOwn(input, "success-content")) {
|
|
104
|
-
if (Object.hasOwn(input, "success")) {
|
|
105
|
-
resultObj["--suc"] = this.generateForegroundColorFrom(input["success"], 0.8)
|
|
106
|
-
} else {
|
|
107
|
-
resultObj["--suc"] = "0 0 0"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
if (!Object.hasOwn(input, "warning-content")) {
|
|
111
|
-
if (Object.hasOwn(input, "warning")) {
|
|
112
|
-
resultObj["--wac"] = this.generateForegroundColorFrom(input["warning"], 0.8)
|
|
113
|
-
} else {
|
|
114
|
-
resultObj["--wac"] = "0 0 0"
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
if (!Object.hasOwn(input, "error-content")) {
|
|
118
|
-
if (Object.hasOwn(input, "error")) {
|
|
119
|
-
resultObj["--erc"] = this.generateForegroundColorFrom(input["error"], 0.8)
|
|
120
|
-
} else {
|
|
121
|
-
resultObj["--erc"] = "0 0 0"
|
|
122
|
-
}
|
|
119
|
+
// add css variables if not exist
|
|
120
|
+
Object.entries(variables).forEach((item) => {
|
|
121
|
+
const [variable, value] = item
|
|
122
|
+
if (!Object.hasOwn(input, variable)) {
|
|
123
|
+
resultObj[variable] = value
|
|
123
124
|
}
|
|
125
|
+
})
|
|
124
126
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
})
|
|
127
|
+
// add other custom styles
|
|
128
|
+
if (!colorNames.hasOwnProperty(rule)) {
|
|
129
|
+
resultObj[rule] = value
|
|
130
|
+
}
|
|
131
|
+
})
|
|
132
132
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
return resultObj
|
|
134
|
+
}
|
|
135
|
+
export function injectThemes(addBase, config, themes) {
|
|
136
|
+
const includedThemesObj = {}
|
|
137
|
+
// add default themes
|
|
138
|
+
const themeRoot = config("daisyui.themeRoot") ?? ":root"
|
|
139
|
+
Object.entries(themes).forEach(([theme, value]) => {
|
|
140
|
+
includedThemesObj[theme] = convertColorFormat(value)
|
|
141
|
+
})
|
|
142
|
+
|
|
143
|
+
// add custom themes
|
|
144
|
+
if (Array.isArray(config("daisyui.themes"))) {
|
|
145
|
+
config("daisyui.themes").forEach((item) => {
|
|
146
|
+
if (typeof item === "object" && item !== null) {
|
|
147
|
+
Object.entries(item).forEach(([customThemeName, customThemevalue]) => {
|
|
148
|
+
includedThemesObj[customThemeName] = convertColorFormat(customThemevalue)
|
|
149
|
+
})
|
|
136
150
|
}
|
|
137
151
|
})
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
let themeOrder = []
|
|
155
|
+
if (Array.isArray(config("daisyui.themes"))) {
|
|
156
|
+
config("daisyui.themes").forEach((theme) => {
|
|
157
|
+
if (typeof theme === "object" && theme !== null) {
|
|
158
|
+
Object.keys(theme).forEach((customThemeName) => {
|
|
159
|
+
themeOrder.push(customThemeName)
|
|
160
|
+
})
|
|
161
|
+
} else if (Object.hasOwn(includedThemesObj, theme)) {
|
|
162
|
+
themeOrder.push(theme)
|
|
163
|
+
}
|
|
148
164
|
})
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
config("daisyui.
|
|
164
|
-
if (
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
})
|
|
172
|
-
} else if (config("daisyui.themes") === true) {
|
|
173
|
-
themeOrder = themeDefaults.themeOrder
|
|
174
|
-
} else {
|
|
175
|
-
themeOrder = ["light", "dark"]
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
// inject themes in order
|
|
179
|
-
const themesToInject = {}
|
|
180
|
-
themeOrder.forEach((themeName, index) => {
|
|
181
|
-
if (index === 0) {
|
|
182
|
-
// first theme as root
|
|
183
|
-
themesToInject[themeRoot] = includedThemesObj[themeName]
|
|
184
|
-
} else if (index === 1) {
|
|
185
|
-
// auto dark
|
|
186
|
-
if (config("daisyui.darkTheme")) {
|
|
187
|
-
if (
|
|
188
|
-
themeOrder[0] !== config("daisyui.darkTheme") &&
|
|
189
|
-
themeOrder.includes(config("daisyui.darkTheme"))
|
|
190
|
-
) {
|
|
191
|
-
themesToInject["@media (prefers-color-scheme: dark)"] = {
|
|
192
|
-
[themeRoot]: includedThemesObj[`${config("daisyui.darkTheme")}`],
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
} else if (config("daisyui.darkTheme") === false) {
|
|
196
|
-
// disables prefers-color-scheme: dark
|
|
197
|
-
} else {
|
|
198
|
-
if (themeOrder[0] !== "dark" && themeOrder.includes("dark")) {
|
|
199
|
-
themesToInject["@media (prefers-color-scheme: dark)"] = {
|
|
200
|
-
[themeRoot]: includedThemesObj["dark"],
|
|
201
|
-
}
|
|
165
|
+
} else if (config("daisyui.themes") === true) {
|
|
166
|
+
themeOrder = themesOrder
|
|
167
|
+
} else {
|
|
168
|
+
themeOrder = ["light", "dark"]
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// inject themes in order
|
|
172
|
+
const themesToInject = {}
|
|
173
|
+
themeOrder.forEach((themeName, index) => {
|
|
174
|
+
if (index === 0) {
|
|
175
|
+
// first theme as root
|
|
176
|
+
themesToInject[themeRoot] = includedThemesObj[themeName]
|
|
177
|
+
} else if (index === 1) {
|
|
178
|
+
// auto dark
|
|
179
|
+
if (config("daisyui.darkTheme")) {
|
|
180
|
+
if (
|
|
181
|
+
themeOrder[0] !== config("daisyui.darkTheme") &&
|
|
182
|
+
themeOrder.includes(config("daisyui.darkTheme"))
|
|
183
|
+
) {
|
|
184
|
+
themesToInject["@media (prefers-color-scheme: dark)"] = {
|
|
185
|
+
[themeRoot]: includedThemesObj[`${config("daisyui.darkTheme")}`],
|
|
202
186
|
}
|
|
203
187
|
}
|
|
204
|
-
|
|
205
|
-
themesToInject["[data-theme=" + themeOrder[0] + "]"] = includedThemesObj[themeOrder[0]]
|
|
206
|
-
themesToInject[
|
|
207
|
-
themeRoot + ":has(input.theme-controller[value=" + themeOrder[0] + "]:checked)"
|
|
208
|
-
] = includedThemesObj[themeOrder[0]]
|
|
209
|
-
// theme 1 with name
|
|
210
|
-
themesToInject["[data-theme=" + themeOrder[1] + "]"] = includedThemesObj[themeOrder[1]]
|
|
211
|
-
themesToInject[
|
|
212
|
-
themeRoot + ":has(input.theme-controller[value=" + themeOrder[1] + "]:checked)"
|
|
213
|
-
] = includedThemesObj[themeOrder[1]]
|
|
188
|
+
} else if (config("daisyui.darkTheme") === false) {
|
|
214
189
|
} else {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
190
|
+
if (themeOrder[0] !== "dark" && themeOrder.includes("dark")) {
|
|
191
|
+
themesToInject["@media (prefers-color-scheme: dark)"] = {
|
|
192
|
+
[themeRoot]: includedThemesObj["dark"],
|
|
193
|
+
}
|
|
194
|
+
}
|
|
219
195
|
}
|
|
220
|
-
|
|
196
|
+
// theme 0 with name
|
|
197
|
+
themesToInject["[data-theme=" + themeOrder[0] + "]"] = includedThemesObj[themeOrder[0]]
|
|
198
|
+
themesToInject[
|
|
199
|
+
themeRoot + ":has(input.theme-controller[value=" + themeOrder[0] + "]:checked)"
|
|
200
|
+
] = includedThemesObj[themeOrder[0]]
|
|
201
|
+
// theme 1 with name
|
|
202
|
+
themesToInject["[data-theme=" + themeOrder[1] + "]"] = includedThemesObj[themeOrder[1]]
|
|
203
|
+
themesToInject[
|
|
204
|
+
themeRoot + ":has(input.theme-controller[value=" + themeOrder[1] + "]:checked)"
|
|
205
|
+
] = includedThemesObj[themeOrder[1]]
|
|
206
|
+
} else {
|
|
207
|
+
themesToInject["[data-theme=" + themeName + "]"] = includedThemesObj[themeName]
|
|
208
|
+
themesToInject[themeRoot + ":has(input.theme-controller[value=" + themeName + "]:checked)"] =
|
|
209
|
+
includedThemesObj[themeName]
|
|
210
|
+
}
|
|
211
|
+
})
|
|
221
212
|
|
|
222
|
-
|
|
213
|
+
addBase(themesToInject)
|
|
223
214
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
},
|
|
215
|
+
return {
|
|
216
|
+
includedThemesObj,
|
|
217
|
+
themeOrder,
|
|
218
|
+
}
|
|
229
219
|
}
|
package/src/theming/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import colorNames from "./colorNames"
|
|
2
2
|
|
|
3
3
|
const colorObject = {
|
|
4
4
|
"transparent": "transparent",
|
|
@@ -34,4 +34,4 @@ const colorObject = {
|
|
|
34
34
|
"error-content": "var(--fallback-erc,oklch(var(--erc)/<alpha-value>))",
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
export default colorObject
|
|
@@ -1,47 +1,45 @@
|
|
|
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
|
-
"--tab-radius": "0.5rem",
|
|
46
|
-
},
|
|
1
|
+
export const themesOrder = [
|
|
2
|
+
"light",
|
|
3
|
+
"dark",
|
|
4
|
+
"cupcake",
|
|
5
|
+
"bumblebee",
|
|
6
|
+
"emerald",
|
|
7
|
+
"corporate",
|
|
8
|
+
"synthwave",
|
|
9
|
+
"retro",
|
|
10
|
+
"cyberpunk",
|
|
11
|
+
"valentine",
|
|
12
|
+
"halloween",
|
|
13
|
+
"garden",
|
|
14
|
+
"forest",
|
|
15
|
+
"aqua",
|
|
16
|
+
"lofi",
|
|
17
|
+
"pastel",
|
|
18
|
+
"fantasy",
|
|
19
|
+
"wireframe",
|
|
20
|
+
"black",
|
|
21
|
+
"luxury",
|
|
22
|
+
"dracula",
|
|
23
|
+
"cmyk",
|
|
24
|
+
"autumn",
|
|
25
|
+
"business",
|
|
26
|
+
"acid",
|
|
27
|
+
"lemonade",
|
|
28
|
+
"night",
|
|
29
|
+
"coffee",
|
|
30
|
+
"winter",
|
|
31
|
+
"dim",
|
|
32
|
+
"nord",
|
|
33
|
+
"sunset",
|
|
34
|
+
]
|
|
35
|
+
export const variables = {
|
|
36
|
+
"--rounded-box": "1rem",
|
|
37
|
+
"--rounded-btn": "0.5rem",
|
|
38
|
+
"--rounded-badge": "1.9rem",
|
|
39
|
+
"--animation-btn": "0.25s",
|
|
40
|
+
"--animation-input": ".2s",
|
|
41
|
+
"--btn-focus-scale": "0.95",
|
|
42
|
+
"--border-btn": "1px",
|
|
43
|
+
"--tab-border": "1px",
|
|
44
|
+
"--tab-radius": "0.5rem",
|
|
47
45
|
}
|
package/src/theming/themes.js
CHANGED