daisyui 1.25.3 → 2.0.0-next.2
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/README.md +2 -1
- package/colors/colorNames.js +8 -0
- package/colors/colors/colorNames.js +35 -0
- package/colors/colors/index.js +53 -0
- package/colors/colors/themes.js +881 -0
- package/colors/colors/windi.js +12 -0
- package/colors/index.js +45 -12
- package/colors/themes.js +92 -4
- package/dist/full.css +68 -33855
- package/dist/styled.css +1141 -2837
- package/dist/styled.js +1 -1
- package/dist/styled.rtl.js +1 -1
- package/dist/themes.css +1 -886
- package/dist/unstyled.css +324 -909
- package/dist/unstyled.js +1 -1
- package/dist/unstyled.rtl.js +1 -1
- package/dist/utilities-styled.js +1 -1
- package/dist/utilities-unstyled.js +1 -1
- package/dist/utilities.js +1 -1
- package/index.js +44 -63
- package/package.json +9 -3
- package/CHANGELOG.md +0 -936
- package/colors/hex2hsl.js +0 -44
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ Loading CSS files from CDN is not recommended for production. It's better to ins
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
```html
|
|
82
|
-
<link href="https://cdn.jsdelivr.net/npm/daisyui@1.25.
|
|
82
|
+
<link href="https://cdn.jsdelivr.net/npm/daisyui@1.25.4/dist/full.css" rel="stylesheet" type="text/css" />
|
|
83
83
|
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2/dist/tailwind.min.css" rel="stylesheet" type="text/css" />
|
|
84
84
|
```
|
|
85
85
|
|
|
@@ -215,6 +215,7 @@ Read the documents for more info:
|
|
|
215
215
|
- [How to use daisyUI in SvelteKit?](https://www.youtube.com/watch?v=haKnkk6ds20)
|
|
216
216
|
- [DaisyUI Untuk Yang Mau Pindah ke TailwindCSS dari Bootstrap (Indonesian)](https://www.youtube.com/watch?v=Wm2g6FWec34)
|
|
217
217
|
- [Next.js - Tailwind - DeisyUI Setup](https://www.youtube.com/watch?v=uXQgJbUj3PQ)
|
|
218
|
+
- [Svelte Setup with Vite, Tailwind, DaisyUI. Custom Themes!](https://www.youtube.com/watch?v=5lF5PxBJoso)
|
|
218
219
|
- Courses
|
|
219
220
|
- [Building with SvelteKit and GraphCMS](https://explorers.netlify.com/learn/building-with-sveltekit-and-graphcms)
|
|
220
221
|
- [Svelte for Beginners by Mike Karan](https://www.udemy.com/course/svelte-for-beginners/)
|
package/colors/colorNames.js
CHANGED
|
@@ -21,7 +21,15 @@ module.exports = {
|
|
|
21
21
|
"base-content" : "--bc",
|
|
22
22
|
|
|
23
23
|
"info" : "--in",
|
|
24
|
+
"info-content" : "--inc",
|
|
25
|
+
|
|
24
26
|
"success" : "--su",
|
|
27
|
+
"success-content" : "--suc",
|
|
28
|
+
|
|
25
29
|
"warning" : "--wa",
|
|
30
|
+
"warning-content" : "--wac",
|
|
31
|
+
|
|
26
32
|
"error" : "--er",
|
|
33
|
+
"error-content" : "--erc",
|
|
34
|
+
|
|
27
35
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
"primary" : "--p",
|
|
3
|
+
"primary-focus" : "--pf",
|
|
4
|
+
"primary-content" : "--pc",
|
|
5
|
+
|
|
6
|
+
"secondary" : "--s",
|
|
7
|
+
"secondary-focus" : "--sf",
|
|
8
|
+
"secondary-content" : "--sc",
|
|
9
|
+
|
|
10
|
+
"accent" : "--a",
|
|
11
|
+
"accent-focus" : "--af",
|
|
12
|
+
"accent-content" : "--ac",
|
|
13
|
+
|
|
14
|
+
"neutral" : "--n",
|
|
15
|
+
"neutral-focus" : "--nf",
|
|
16
|
+
"neutral-content" : "--nc",
|
|
17
|
+
|
|
18
|
+
"base-100" : "--b1",
|
|
19
|
+
"base-200" : "--b2",
|
|
20
|
+
"base-300" : "--b3",
|
|
21
|
+
"base-content" : "--bc",
|
|
22
|
+
|
|
23
|
+
"info" : "--in",
|
|
24
|
+
"info-content" : "--inc",
|
|
25
|
+
|
|
26
|
+
"success" : "--su",
|
|
27
|
+
"success-content" : "--suc",
|
|
28
|
+
|
|
29
|
+
"warning" : "--wa",
|
|
30
|
+
"warning-content" : "--wac",
|
|
31
|
+
|
|
32
|
+
"error" : "--er",
|
|
33
|
+
"error-content" : "--erc",
|
|
34
|
+
|
|
35
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
|
|
2
|
+
function withOpacityValue(variable, fallbackColor) {
|
|
3
|
+
return ({ opacityValue }) => {
|
|
4
|
+
let fallbackColorValue = ''
|
|
5
|
+
if (fallbackColor) {
|
|
6
|
+
fallbackColorValue = `, var(${fallbackColor})`
|
|
7
|
+
}
|
|
8
|
+
if (opacityValue === undefined) {
|
|
9
|
+
return `hsl(var(${variable}${fallbackColorValue}))`
|
|
10
|
+
}
|
|
11
|
+
return `hsl(var(${variable}${fallbackColorValue}) / ${opacityValue})`
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
let colorObject = {
|
|
16
|
+
"transparent": "transparent",
|
|
17
|
+
"current": "currentColor",
|
|
18
|
+
|
|
19
|
+
"primary": withOpacityValue("--p"),
|
|
20
|
+
"primary-focus": withOpacityValue("--pf", "--p"),
|
|
21
|
+
"primary-content": withOpacityValue("--pc"),
|
|
22
|
+
|
|
23
|
+
"secondary": withOpacityValue("--s"),
|
|
24
|
+
"secondary-focus": withOpacityValue("--sf", "--s"),
|
|
25
|
+
"secondary-content": withOpacityValue("--sc"),
|
|
26
|
+
|
|
27
|
+
"accent": withOpacityValue("--a"),
|
|
28
|
+
"accent-focus": withOpacityValue("--af", "--a"),
|
|
29
|
+
"accent-content": withOpacityValue("--ac"),
|
|
30
|
+
|
|
31
|
+
"neutral": withOpacityValue("--n"),
|
|
32
|
+
"neutral-focus": withOpacityValue("--nf", "--n"),
|
|
33
|
+
"neutral-content": withOpacityValue("--nc"),
|
|
34
|
+
|
|
35
|
+
"base-100": withOpacityValue("--b1"),
|
|
36
|
+
"base-200": withOpacityValue("--b2", "--b1"),
|
|
37
|
+
"base-300": withOpacityValue("--b3", "--b2"),
|
|
38
|
+
"base-content": withOpacityValue("--bc"),
|
|
39
|
+
|
|
40
|
+
"info": withOpacityValue("--in"),
|
|
41
|
+
"info-content": withOpacityValue("--inc", "--nc"),
|
|
42
|
+
|
|
43
|
+
"success": withOpacityValue("--su"),
|
|
44
|
+
"success-content": withOpacityValue("--suc", "--nc"),
|
|
45
|
+
|
|
46
|
+
"warning": withOpacityValue("--wa"),
|
|
47
|
+
"warning-content": withOpacityValue("--wac", "--nc"),
|
|
48
|
+
|
|
49
|
+
"error": withOpacityValue("--er"),
|
|
50
|
+
"error-content": withOpacityValue("--erc", "--nc"),
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
module.exports = colorObject
|