frutjam 0.1.1-alpha.4 → 0.3.0-alpha.1
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/package.json +4 -3
- package/src/base/preflight.css +7 -0
- package/src/components/accordion.css +3 -3
- package/src/components/button.css +6 -24
- package/src/components/checkbox.css +1 -8
- package/src/components/drawer.css +89 -0
- package/src/components/modal.css +48 -93
- package/src/components/popover.css +99 -0
- package/src/main.css +1 -0
- package/src/themes/animation/slide.css +6 -0
- package/src/themes/colors/base.css +39 -0
- package/src/themes/colors/dark.css +31 -0
- package/src/themes/colors/light.css +32 -0
- package/src/themes/placement.css +8 -0
- package/src/themes/colors.css +0 -62
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "frutjam",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-alpha.1",
|
|
4
4
|
"description": "A utility-first CSS framework UI Library",
|
|
5
5
|
"main": "./dist/frutjam.css",
|
|
6
6
|
"browser": "dist/frutjam.css",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"url": "https://github.com/nezanuha/frutjam/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@tailwindcss/postcss": "^4.0.
|
|
41
|
-
"tailwindcss": "^4.0.
|
|
40
|
+
"@tailwindcss/postcss": "^4.0.14",
|
|
41
|
+
"tailwindcss": "^4.0.14"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"css-loader": "^7.1.2",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"postcss": "^8.5.3",
|
|
48
48
|
"postcss-import": "^16.1.0",
|
|
49
49
|
"postcss-loader": "^8.1.1",
|
|
50
|
+
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
50
51
|
"string-replace-loader": "^3.1.0",
|
|
51
52
|
"webpack": "^5.98.0",
|
|
52
53
|
"webpack-cli": "^6.0.1",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import '../themes/colors.css';
|
|
1
|
+
@import '../themes/colors/base.css';
|
|
2
2
|
@utility accordion {
|
|
3
3
|
@layer components {
|
|
4
|
-
@apply grid divide-y divide-
|
|
4
|
+
@apply grid divide-y divide-info border border-info cursor-pointer rounded-md;
|
|
5
5
|
|
|
6
6
|
&>details {
|
|
7
7
|
@apply text-pretty;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
@apply flex gap-4 items-center justify-between p-4 font-medium;
|
|
17
17
|
&::after {
|
|
18
18
|
@apply content-[url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyMCAyMCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0icmdiYSg1Myw1Myw1MywxKSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2Ij4KICA8cGF0aCBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Im0xOS41IDguMjUtNy41IDcuNS03LjUtNy41Ii8+Cjwvc3ZnPg==')];
|
|
19
|
-
@apply inline-block;
|
|
19
|
+
@apply inline-block text-inherit;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
@import '../themes/colors.css';
|
|
1
|
+
@import '../themes/colors/base.css';
|
|
2
2
|
@utility btn {
|
|
3
3
|
@layer components {
|
|
4
|
-
@apply text-[buttonFace] flex items-center text-center rounded-lg font-medium cursor-pointer relative overflow-hidden text-xs transition duration-300 inset-ring inset-ring-black/
|
|
4
|
+
@apply text-[buttonFace] flex items-center text-center rounded-lg font-medium cursor-pointer relative overflow-hidden text-xs transition duration-300 ring ring-black/40 inset-ring inset-ring-black/20 text-center;
|
|
5
5
|
|
|
6
6
|
&:focus{
|
|
7
|
-
@apply inset-ring-black/
|
|
7
|
+
@apply inset-ring-black/10;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&:not(.btn-dashed, .btn-outline, .btn-soft){
|
|
11
|
-
@apply border-
|
|
11
|
+
@apply border-b-2 border-black/30;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -27,14 +27,6 @@
|
|
|
27
27
|
|
|
28
28
|
@utility btn-soft {
|
|
29
29
|
@layer components {
|
|
30
|
-
&:is(.btn-neutral){
|
|
31
|
-
@apply bg-neutral/10 text-neutral;
|
|
32
|
-
@media (hover: hover){
|
|
33
|
-
&:hover {
|
|
34
|
-
@apply bg-neutral text-[var(--color-neutral-content)];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
30
|
|
|
39
31
|
&:is(.btn-primary){
|
|
40
32
|
@apply bg-primary/10 text-primary;
|
|
@@ -131,19 +123,9 @@
|
|
|
131
123
|
}
|
|
132
124
|
}
|
|
133
125
|
|
|
134
|
-
@utility btn-
|
|
126
|
+
@utility btn-full {
|
|
135
127
|
@layer components {
|
|
136
|
-
@apply
|
|
137
|
-
|
|
138
|
-
&:is(.btn-dashed, .btn-outline){
|
|
139
|
-
@apply bg-white text-neutral border-neutral;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
@media (hover: hover){
|
|
143
|
-
&:hover {
|
|
144
|
-
@apply bg-neutral text-white border-solid;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
128
|
+
@apply rounded-full leading-4;
|
|
147
129
|
}
|
|
148
130
|
}
|
|
149
131
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '../themes/colors.css';
|
|
1
|
+
@import '../themes/colors/base.css';
|
|
2
2
|
@utility checkbox {
|
|
3
3
|
@apply size-4 rounded-md relative shrink-0 cursor-pointer appearance-none p-1 align-middle shadow ring duration-150;
|
|
4
4
|
|
|
@@ -63,13 +63,6 @@
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
@utility checkbox-neutral {
|
|
67
|
-
@apply bg-neutral/20 text-neutral-content ring-neutral;
|
|
68
|
-
&:checked,
|
|
69
|
-
&[aria-checked="true"] {
|
|
70
|
-
@apply bg-neutral;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
66
|
|
|
74
67
|
@utility checkbox-info {
|
|
75
68
|
@apply bg-info/20 text-info-content ring-info;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@import "../themes/colors/base.css";
|
|
2
|
+
@utility drawer {
|
|
3
|
+
@layer components {
|
|
4
|
+
@apply pointer-events-none invisible fixed inset-0 m-0 grid h-full max-h-none w-full max-w-none place-items-start bg-transparent p-0 text-inherit z-999 overflow-hidden overscroll-contain;
|
|
5
|
+
|
|
6
|
+
&:not(drawer:not([open]):not(.drawer-open)),
|
|
7
|
+
&::backdrop {
|
|
8
|
+
@apply opacity-100 starting:invisible starting:opacity-0 bg-backdrop;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&[open], &.drawer-open{
|
|
12
|
+
@apply pointer-events-auto visible opacity-100 starting:invisible starting:opacity-0;
|
|
13
|
+
|
|
14
|
+
.drawer-body {
|
|
15
|
+
translate: 0 0;
|
|
16
|
+
scale: 1;
|
|
17
|
+
opacity: 1;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@utility drawer-backdrop {
|
|
24
|
+
@layer components {
|
|
25
|
+
@apply col-start-1 row-start-1 grid self-stretch justify-self-stretch text-transparent -z-1;
|
|
26
|
+
button {
|
|
27
|
+
@apply cursor-pointer;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@utility drawer-body {
|
|
33
|
+
@layer components {
|
|
34
|
+
@apply bg-surface text-surface-content rounded-none border border-black/60 shadow-xl shadow-black/10 forced-colors:outline col-start-1 row-start-1 h-screen max-h-none w-11/12 w-auto max-w-none p-6 transition-all duration-150 scale-95 opacity-0 overflow-y-auto overscroll-contain;
|
|
35
|
+
translate: -100% 0;
|
|
36
|
+
scale: 1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@utility drawer-top {
|
|
42
|
+
@layer components {
|
|
43
|
+
@apply place-items-start;
|
|
44
|
+
|
|
45
|
+
:where(.drawer-body) {
|
|
46
|
+
@apply h-auto w-full max-w-none rounded-none;
|
|
47
|
+
max-height: calc(100vh - 5em);
|
|
48
|
+
translate: 0 -100%;
|
|
49
|
+
scale: 1;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@utility drawer-bottom {
|
|
55
|
+
@layer components {
|
|
56
|
+
@apply place-items-end;
|
|
57
|
+
|
|
58
|
+
:where(.drawer-body) {
|
|
59
|
+
@apply h-auto w-full max-w-none rounded-none;
|
|
60
|
+
max-height: calc(100vh - 5em);
|
|
61
|
+
translate: 0 100%;
|
|
62
|
+
scale: 1;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@utility drawer-start {
|
|
68
|
+
@layer components {
|
|
69
|
+
@apply place-items-start;
|
|
70
|
+
|
|
71
|
+
:where(.drawer-body) {
|
|
72
|
+
@apply h-screen max-h-none w-auto max-w-none rounded-none;
|
|
73
|
+
translate: -100% 0;
|
|
74
|
+
scale: 1;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@utility drawer-end {
|
|
80
|
+
@layer components {
|
|
81
|
+
@apply place-items-end;
|
|
82
|
+
|
|
83
|
+
:where(.drawer-body) {
|
|
84
|
+
@apply h-screen max-h-none w-auto max-w-none rounded-none;
|
|
85
|
+
translate: 100% 0;
|
|
86
|
+
scale: 1;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
package/src/components/modal.css
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@
|
|
1
|
+
@import "../themes/colors/base.css";
|
|
2
|
+
@import "../themes/placement.css";
|
|
3
|
+
@import "../themes/animation/slide.css";
|
|
4
|
+
|
|
5
|
+
@utility modal{
|
|
3
6
|
@layer components {
|
|
4
|
-
@apply pointer-events-none invisible fixed inset-0 m-0 grid h-full max-h-none w-full max-w-none items-center justify-items-center bg-transparent p-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
&:not(modal:not([popover]:popover-open)),
|
|
7
|
+
@apply pointer-events-none invisible fixed inset-0 m-0 grid h-full max-h-none w-full max-w-none items-center justify-items-center bg-transparent p-3 text-inherit z-999 overflow-hidden overscroll-contain;
|
|
8
|
+
|
|
9
|
+
&:not(modal:not([open]):not(.modal-open)),
|
|
8
10
|
&::backdrop {
|
|
9
|
-
@apply opacity-100 starting:invisible starting:opacity-0 bg-
|
|
10
|
-
transition:
|
|
11
|
-
display 0.3s ease-out allow-discrete,
|
|
12
|
-
opacity 0.3s ease-out,
|
|
13
|
-
visibility 0.3s ease-out allow-discrete;
|
|
11
|
+
@apply opacity-100 starting:invisible starting:opacity-0 bg-backdrop;
|
|
14
12
|
}
|
|
15
|
-
|
|
16
|
-
&[
|
|
13
|
+
|
|
14
|
+
&[open], &.modal-open {
|
|
17
15
|
@apply pointer-events-auto visible opacity-100 starting:invisible starting:opacity-0;
|
|
18
|
-
|
|
16
|
+
|
|
19
17
|
.modal-body {
|
|
20
18
|
translate: 0 0;
|
|
21
19
|
scale: 1;
|
|
@@ -24,90 +22,47 @@
|
|
|
24
22
|
}
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@utility modal-body {
|
|
38
|
-
@layer components {
|
|
39
|
-
@apply bg-white rounded-2xl ring shadow-lg ring-neutral-500/10 forced-colors:outline col-start-1 row-start-1 max-h-screen w-11/12 max-w-[32rem] p-4;
|
|
40
|
-
transition:
|
|
41
|
-
translate 0.3s ease-out,
|
|
42
|
-
scale 0.3s ease-out,
|
|
43
|
-
opacity 0.2s ease-out 0.05s,
|
|
44
|
-
box-shadow 0.3s ease-out;
|
|
45
|
-
scale: 95%;
|
|
46
|
-
opacity: 0;
|
|
47
|
-
overflow-y: auto;
|
|
48
|
-
overscroll-behavior: contain;
|
|
25
|
+
|
|
26
|
+
@utility modal-backdrop {
|
|
27
|
+
@layer components {
|
|
28
|
+
@apply col-start-1 row-start-1 grid self-stretch justify-self-stretch text-transparent -z-1;
|
|
29
|
+
button {
|
|
30
|
+
@apply cursor-pointer;
|
|
49
31
|
}
|
|
50
32
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
:where(.modal-body) {
|
|
57
|
-
@apply h-auto w-full max-w-none rounded-none;
|
|
58
|
-
max-height: calc(100vh - 5em);
|
|
59
|
-
translate: 0 -100%;
|
|
60
|
-
scale: 1;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@utility modal-body {
|
|
36
|
+
@layer components {
|
|
37
|
+
@apply bg-surface text-surface-content rounded-2xl border border-black/60 shadow-xl shadow-black/10 forced-colors:outline col-start-1 row-start-1 max-h-screen w-11/12 max-w-[32rem] p-6 transition-all duration-150 scale-95 opacity-0 overflow-y-auto overscroll-contain;
|
|
63
38
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/* placements */
|
|
44
|
+
|
|
45
|
+
@utility modal-x-* {
|
|
46
|
+
@layer components {
|
|
47
|
+
/* @apply [justify-items:--value([*])]; */
|
|
48
|
+
@apply [justify-items:--value(--x-*)];
|
|
76
49
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
@apply h-auto w-full max-w-none rounded-none;
|
|
84
|
-
max-height: calc(100vh - 5em);
|
|
85
|
-
translate: 0 100%;
|
|
86
|
-
scale: 1;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@utility modal-y-* {
|
|
53
|
+
@layer components {
|
|
54
|
+
/* @apply [align-items:--value([*])]; */
|
|
55
|
+
@apply [align-items:--value(--y-*)];
|
|
89
56
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* animation */
|
|
60
|
+
|
|
61
|
+
@utility modal-slide-* {
|
|
62
|
+
@layer components {
|
|
95
63
|
:where(.modal-body) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
scale: 1;
|
|
64
|
+
@apply [translate:--value(--slide-*)];
|
|
65
|
+
scale: 1;
|
|
99
66
|
}
|
|
100
|
-
}
|
|
101
67
|
}
|
|
102
|
-
|
|
103
|
-
@utility modal-end {
|
|
104
|
-
@layer components {
|
|
105
|
-
@apply place-items-end;
|
|
106
|
-
|
|
107
|
-
:where(.modal-body) {
|
|
108
|
-
@apply h-screen max-h-none w-auto max-w-none rounded-none;
|
|
109
|
-
translate: 100% 0;
|
|
110
|
-
scale: 1;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
@import "../themes/colors/base.css";
|
|
2
|
+
@utility modal {
|
|
3
|
+
@layer components {
|
|
4
|
+
@apply pointer-events-none invisible fixed inset-0 m-0 grid h-full max-h-none w-full max-w-none items-center justify-items-center bg-transparent p-0 text-inherit z-999 overflow-hidden overscroll-contain;
|
|
5
|
+
|
|
6
|
+
&:not(modal:not([popover]:popover-open)),
|
|
7
|
+
&::backdrop {
|
|
8
|
+
@apply opacity-100 starting:invisible starting:opacity-0 bg-backdrop;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&[popover]:popover-open {
|
|
12
|
+
@apply pointer-events-auto visible opacity-100 starting:invisible starting:opacity-0;
|
|
13
|
+
|
|
14
|
+
.modal-body {
|
|
15
|
+
translate: 0 0;
|
|
16
|
+
scale: 1;
|
|
17
|
+
opacity: 1;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@utility modal-backdrop {
|
|
24
|
+
@layer components {
|
|
25
|
+
@apply col-start-1 row-start-1 grid self-stretch justify-self-stretch text-transparent -z-1;
|
|
26
|
+
button {
|
|
27
|
+
@apply cursor-pointer;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@utility modal-body {
|
|
33
|
+
@layer components {
|
|
34
|
+
@apply bg-surface text-surface-content rounded-3xl border border-black/60 shadow-xl shadow-black/10 forced-colors:outline col-start-1 row-start-1 max-h-screen w-11/12 max-w-[32rem] p-6 transition-all duration-150 scale-95 opacity-0 overflow-y-auto overscroll-contain;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@utility modal-top {
|
|
39
|
+
@layer components {
|
|
40
|
+
@apply place-items-start;
|
|
41
|
+
|
|
42
|
+
:where(.modal-body) {
|
|
43
|
+
@apply h-auto w-full max-w-none rounded-none;
|
|
44
|
+
max-height: calc(100vh - 5em);
|
|
45
|
+
translate: 0 -100%;
|
|
46
|
+
scale: 1;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@utility modal-middle {
|
|
52
|
+
@layer components {
|
|
53
|
+
@apply place-items-center;
|
|
54
|
+
|
|
55
|
+
:where(.modal-body) {
|
|
56
|
+
@apply h-auto w-11/12 max-w-[32rem];
|
|
57
|
+
max-height: calc(100vh - 5em);
|
|
58
|
+
translate: 0 2%;
|
|
59
|
+
scale: 98%;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@utility modal-bottom {
|
|
65
|
+
@layer components {
|
|
66
|
+
@apply place-items-end;
|
|
67
|
+
|
|
68
|
+
:where(.modal-body) {
|
|
69
|
+
@apply h-auto w-full max-w-none rounded-none;
|
|
70
|
+
max-height: calc(100vh - 5em);
|
|
71
|
+
translate: 0 100%;
|
|
72
|
+
scale: 1;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@utility modal-start {
|
|
78
|
+
@layer components {
|
|
79
|
+
@apply place-items-start;
|
|
80
|
+
|
|
81
|
+
:where(.modal-body) {
|
|
82
|
+
@apply h-screen max-h-none w-auto max-w-none rounded-none;
|
|
83
|
+
translate: -100% 0;
|
|
84
|
+
scale: 1;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@utility modal-end {
|
|
90
|
+
@layer components {
|
|
91
|
+
@apply place-items-end;
|
|
92
|
+
|
|
93
|
+
:where(.modal-body) {
|
|
94
|
+
@apply h-screen max-h-none w-auto max-w-none rounded-none;
|
|
95
|
+
translate: 100% 0;
|
|
96
|
+
scale: 1;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
package/src/main.css
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@import "../../base/preflight.css" layer(theme);
|
|
2
|
+
@import "./light.css" layer(theme);
|
|
3
|
+
@import "./dark.css" layer(theme);
|
|
4
|
+
|
|
5
|
+
@custom-variant theme-dark (&:where([data-theme="dark"] *));
|
|
6
|
+
@custom-variant theme-light (&:where([data-theme="light"] *));
|
|
7
|
+
|
|
8
|
+
:root {
|
|
9
|
+
color-scheme: var(--color-scheme);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@theme inline {
|
|
13
|
+
|
|
14
|
+
--color-backdrop: var(--backdrop-color);
|
|
15
|
+
|
|
16
|
+
--color-surface: var(--surface-color);
|
|
17
|
+
--color-surface-content: var(--surface-content-color);
|
|
18
|
+
|
|
19
|
+
--color-primary: var(--primary-color);
|
|
20
|
+
--color-primary-content: var(--primary-content-color);
|
|
21
|
+
|
|
22
|
+
--color-secondary: var(--secondary-color);
|
|
23
|
+
--color-secondary-content: var(--secondary-content-color);
|
|
24
|
+
|
|
25
|
+
--color-accent: var(--accent-color);
|
|
26
|
+
--color-accent-content: var(--accent-content-color);
|
|
27
|
+
|
|
28
|
+
--color-info: var(--info-color);
|
|
29
|
+
--color-info-content: var(--info-content-color);
|
|
30
|
+
|
|
31
|
+
--color-success: var(--success-color);
|
|
32
|
+
--color-success-content: var(--success-content-color);
|
|
33
|
+
|
|
34
|
+
--color-warning: var(--warning-color);
|
|
35
|
+
--color-warning-content: var(--warning-content-color);
|
|
36
|
+
|
|
37
|
+
--color-error: var(--error-color);
|
|
38
|
+
--color-error-content: var(--error-content-color);
|
|
39
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@layer theme {
|
|
2
|
+
[data-theme="dark"] {
|
|
3
|
+
--color-scheme: dark;
|
|
4
|
+
|
|
5
|
+
--backdrop-color: color-mix(in oklab,oklch(.141 .005 265.823)20%,transparent);
|
|
6
|
+
|
|
7
|
+
--surface-color: oklch(0.216 0.006 56.043);
|
|
8
|
+
--surface-content-color: oklch(100% 0 0);
|
|
9
|
+
|
|
10
|
+
--primary-color: oklch(15.72% 0.0267 199.35);
|
|
11
|
+
--primary-content-color: oklch(0.961151 0.003 300.98);
|
|
12
|
+
|
|
13
|
+
--secondary-color: oklch(0.22 0 0);
|
|
14
|
+
--secondary-content-color: oklch(100% 0 0);
|
|
15
|
+
|
|
16
|
+
--accent-color: oklch(24.47% 0.0416 202.69);
|
|
17
|
+
--accent-content-color: oklch(100% 0 0);
|
|
18
|
+
|
|
19
|
+
--info-color: oklch(0.268 0.007 34.298);
|
|
20
|
+
--info-content-color: oklch(99.78% 0.0105 106.59);
|
|
21
|
+
|
|
22
|
+
--success-color: oklch(45.77% 0.155081 142.3128);
|
|
23
|
+
--success-content-color: oklch(100% 0 0);
|
|
24
|
+
|
|
25
|
+
--warning-color: oklch(78.45% 0.1486 83.48);
|
|
26
|
+
--warning-content-color: oklch(15.72% 0.0267 199.35);
|
|
27
|
+
|
|
28
|
+
--error-color: oklch(58.57% 0.2363 29.65);
|
|
29
|
+
--error-content-color: oklch(100% 0 0);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@layer theme {
|
|
2
|
+
:root, [data-theme="light"] {
|
|
3
|
+
--color-scheme: light;
|
|
4
|
+
|
|
5
|
+
--backdrop-color: color-mix(in oklab,oklch(.141 .005 285.823)20%,transparent);
|
|
6
|
+
|
|
7
|
+
--surface-color: oklch(100% 0 0);
|
|
8
|
+
--surface-content-color: oklch(15.72% 0.0267 199.35);
|
|
9
|
+
|
|
10
|
+
--primary-color: oklch(15.72% 0.0267 199.35);
|
|
11
|
+
--primary-content-color: oklch(0.961151 0.003 300.98);
|
|
12
|
+
|
|
13
|
+
--secondary-color: oklch(84.27% 0.0057 31.06);
|
|
14
|
+
--secondary-content-color: oklch(15.72% 0.0267 199.35);
|
|
15
|
+
|
|
16
|
+
--accent-color: oklch(24.47% 0.0416 202.69);
|
|
17
|
+
--accent-content-color: oklch(100% 0 0);
|
|
18
|
+
|
|
19
|
+
--info-color: oklch(93.01% 0.0111 348.44);
|
|
20
|
+
--info-content-color: oklch(24.47% 0.0416 202.69);
|
|
21
|
+
|
|
22
|
+
--success-color: oklch(45.77% 0.155081 142.3128);
|
|
23
|
+
--success-content-color: oklch(100% 0 0);
|
|
24
|
+
|
|
25
|
+
--warning-color: oklch(78.45% 0.1486 83.48);
|
|
26
|
+
--warning-content-color: oklch(15.72% 0.0267 199.35);
|
|
27
|
+
|
|
28
|
+
--error-color: oklch(58.57% 0.2363 29.65);
|
|
29
|
+
--error-content-color: oklch(100% 0 0);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
}
|
package/src/themes/colors.css
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
@layer base {
|
|
2
|
-
:root {
|
|
3
|
-
--neutral-color: oklch(14% .005 285.823);
|
|
4
|
-
--neutral-content-color: #fff;
|
|
5
|
-
|
|
6
|
-
--primary-color: oklch(0.546 0.245 262.881);
|
|
7
|
-
--primary-content-color: oklch(0.95 0.02 262.881);
|
|
8
|
-
|
|
9
|
-
--secondary-color: oklch(37.69% 0.1347 323.76);
|
|
10
|
-
--secondary-content-color: oklch(100% 0 0);
|
|
11
|
-
|
|
12
|
-
--accent-color: oklch(0.6 0.3 262.881);
|
|
13
|
-
--accent-content-color: oklch(0.98 0.03 262.881);
|
|
14
|
-
|
|
15
|
-
--info-color: oklch(0.65 0.2 230);
|
|
16
|
-
--info-content-color: oklch(0.98 0.02 230);
|
|
17
|
-
|
|
18
|
-
--success-color: oklch(0.6 0.22 150);
|
|
19
|
-
--success-content-color: oklch(0.98 0.02 150);
|
|
20
|
-
|
|
21
|
-
--warning-color: oklch(77.2% 0.1738 64.55);
|
|
22
|
-
--warning-content-color: oklch(0% 0 0);
|
|
23
|
-
|
|
24
|
-
--error-color: oklch(0.6 0.25 30);
|
|
25
|
-
--error-content-color: oklch(0.98 0.02 30);
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
[data-theme="dark"] {
|
|
30
|
-
--primary-color: oklch(.546 .245 262.881);
|
|
31
|
-
--primary-content-color: #fff;
|
|
32
|
-
|
|
33
|
-
--secondary-color: oklch(.546 .245 262.881);
|
|
34
|
-
--secondary-content-color: #fff;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@theme inline {
|
|
39
|
-
--color-neutral: var(--neutral-color);
|
|
40
|
-
--color-neutral-content: var(--neutral-content-color);
|
|
41
|
-
|
|
42
|
-
--color-primary: var(--primary-color);
|
|
43
|
-
--color-primary-content: var(--primary-content-color);
|
|
44
|
-
|
|
45
|
-
--color-secondary: var(--secondary-color);
|
|
46
|
-
--color-secondary-content: var(--secondary-content-color);
|
|
47
|
-
|
|
48
|
-
--color-accent: var(--accent-color);
|
|
49
|
-
--color-accent-content: var(--accent-content-color);
|
|
50
|
-
|
|
51
|
-
--color-info: var(--info-color);
|
|
52
|
-
--color-info-content: var(--info-content-color);
|
|
53
|
-
|
|
54
|
-
--color-success: var(--success-color);
|
|
55
|
-
--color-success-content: var(--success-content-color);
|
|
56
|
-
|
|
57
|
-
--color-warning: var(--warning-color);
|
|
58
|
-
--color-warning-content: var(--warning-content-color);
|
|
59
|
-
|
|
60
|
-
--color-error: var(--error-color);
|
|
61
|
-
--color-error-content: var(--error-content-color);
|
|
62
|
-
}
|