daisyui 2.0.0-next.2 → 2.0.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/README.md +107 -89
- package/colors/colorNames.js +25 -26
- package/colors/index.js +17 -18
- package/colors/themes.js +274 -273
- package/colors/windi.js +6 -6
- package/dist/base.js +1 -1
- package/dist/full.css +14 -9
- package/dist/styled.css +281 -196
- package/dist/styled.js +1 -1
- package/dist/styled.rtl.js +1 -1
- package/dist/themes.css +1 -2
- package/dist/unstyled.css +94 -70
- package/dist/unstyled.js +1 -1
- package/dist/unstyled.rtl.js +1 -1
- package/dist/utilities-unstyled.js +1 -1
- package/dist/utilities.js +1 -1
- package/index.js +168 -100
- package/package.json +2 -2
- package/colors/colors/colorNames.js +0 -35
- package/colors/colors/index.js +0 -53
- package/colors/colors/themes.js +0 -881
- package/colors/colors/windi.js +0 -12
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
}
|
package/colors/colors/index.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
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
|