@moduix/react 2.4.0 → 2.5.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/README.md +44 -86
- package/dist/components/angle-slider/AngleSlider_module.css +2 -2
- package/dist/components/carousel/Carousel_module.css +3 -3
- package/dist/components/date-picker/DatePicker_module.css +9 -2
- package/dist/components/lightbox/Lightbox_module.css +0 -1
- package/dist/components/sidebar/Sidebar.d.ts +10 -9
- package/dist/components/sidebar/Sidebar.js +66 -36
- package/dist/components/sidebar/Sidebar_module.css +120 -70
- package/dist/components/toc/Toc.d.ts +23 -0
- package/dist/components/toc/Toc.js +144 -0
- package/dist/components/toc/Toc.module.js +13 -0
- package/dist/components/toc/Toc_module.css +184 -0
- package/dist/components/toc/index.d.ts +1 -0
- package/dist/components/toc/index.js +1 -0
- package/dist/presets/contrast.css +63 -129
- package/dist/presets/dense.css +63 -129
- package/dist/presets/soft.css +62 -128
- package/dist/styles/animations.css +5 -7
- package/dist/styles/borders.css +2 -2
- package/dist/styles/colors.css +79 -163
- package/dist/styles/opacity.css +4 -5
- package/dist/styles/radius.css +6 -6
- package/dist/styles/reset.css +215 -104
- package/dist/styles/shadows.css +1 -2
- package/dist/styles/sizing.css +5 -2
- package/dist/styles/spacing.css +9 -7
- package/dist/styles/style.css +12 -12
- package/dist/styles/transforms.css +3 -4
- package/dist/styles/transitions.css +19 -15
- package/dist/styles/typography.css +16 -6
- package/dist/styles/z-index.css +2 -2
- package/package.json +12 -8
package/dist/presets/soft.css
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
[data-moduix-theme=
|
|
2
|
-
--moduix-background:
|
|
3
|
-
--moduix-foreground:
|
|
4
|
-
--moduix-card:
|
|
5
|
-
--moduix-card-foreground:
|
|
6
|
-
--moduix-popover:
|
|
7
|
-
--moduix-popover-foreground:
|
|
8
|
-
--moduix-primary:
|
|
9
|
-
--moduix-primary-foreground:
|
|
10
|
-
--moduix-secondary:
|
|
11
|
-
--moduix-secondary-foreground:
|
|
12
|
-
--moduix-muted:
|
|
13
|
-
--moduix-muted-foreground:
|
|
14
|
-
--moduix-accent:
|
|
15
|
-
--moduix-accent-foreground:
|
|
16
|
-
--moduix-border:
|
|
17
|
-
--moduix-input:
|
|
18
|
-
--moduix-ring:
|
|
19
|
-
--moduix-overlay:
|
|
20
|
-
--moduix-overlay-foreground:
|
|
21
|
-
--moduix-sidebar:
|
|
22
|
-
--moduix-sidebar-foreground:
|
|
23
|
-
--moduix-sidebar-primary:
|
|
24
|
-
--moduix-sidebar-primary-foreground:
|
|
25
|
-
--moduix-sidebar-accent:
|
|
26
|
-
--moduix-sidebar-accent-foreground:
|
|
27
|
-
--moduix-sidebar-border:
|
|
28
|
-
--moduix-sidebar-ring:
|
|
1
|
+
[data-moduix-theme='soft'] {
|
|
2
|
+
--moduix-background: oklch(0.985 0.012 320);
|
|
3
|
+
--moduix-foreground: oklch(0.225 0.024 315);
|
|
4
|
+
--moduix-card: oklch(0.998 0.004 320);
|
|
5
|
+
--moduix-card-foreground: oklch(0.225 0.024 315);
|
|
6
|
+
--moduix-popover: oklch(0.998 0.004 320);
|
|
7
|
+
--moduix-popover-foreground: oklch(0.225 0.024 315);
|
|
8
|
+
--moduix-primary: oklch(0.54 0.18 305);
|
|
9
|
+
--moduix-primary-foreground: oklch(0.99 0.004 320);
|
|
10
|
+
--moduix-secondary: oklch(0.958 0.018 320);
|
|
11
|
+
--moduix-secondary-foreground: oklch(0.3 0.04 310);
|
|
12
|
+
--moduix-muted: oklch(0.95 0.016 320);
|
|
13
|
+
--moduix-muted-foreground: oklch(0.5 0.035 315);
|
|
14
|
+
--moduix-accent: oklch(0.92 0.04 315);
|
|
15
|
+
--moduix-accent-foreground: oklch(0.29 0.05 305);
|
|
16
|
+
--moduix-border: oklch(0.88 0.025 320);
|
|
17
|
+
--moduix-input: oklch(0.84 0.03 320);
|
|
18
|
+
--moduix-ring: oklch(0.61 0.15 305);
|
|
19
|
+
--moduix-overlay: oklch(0.22 0.035 310 / 0.22);
|
|
20
|
+
--moduix-overlay-foreground: oklch(0.22 0.035 310 / 0.08);
|
|
21
|
+
--moduix-sidebar: oklch(0.975 0.014 320);
|
|
22
|
+
--moduix-sidebar-foreground: oklch(0.225 0.024 315);
|
|
23
|
+
--moduix-sidebar-primary: oklch(0.54 0.18 305);
|
|
24
|
+
--moduix-sidebar-primary-foreground: oklch(0.99 0.004 320);
|
|
25
|
+
--moduix-sidebar-accent: oklch(0.92 0.04 315);
|
|
26
|
+
--moduix-sidebar-accent-foreground: oklch(0.29 0.05 305);
|
|
27
|
+
--moduix-sidebar-border: oklch(0.88 0.025 320);
|
|
28
|
+
--moduix-sidebar-ring: oklch(0.61 0.15 305);
|
|
29
29
|
--moduix-radius: 1rem;
|
|
30
30
|
--moduix-spacing-2: 9px;
|
|
31
31
|
--moduix-spacing-3: 14px;
|
|
@@ -39,105 +39,39 @@
|
|
|
39
39
|
--moduix-size-md: 40px;
|
|
40
40
|
--moduix-size-lg: 44px;
|
|
41
41
|
--moduix-size-xl: 52px;
|
|
42
|
-
--moduix-shadow-sm: 0 2px 6px
|
|
43
|
-
--moduix-shadow-md: 0 8px 18px
|
|
44
|
-
--moduix-shadow-lg: 0 18px 38px
|
|
45
|
-
}
|
|
42
|
+
--moduix-shadow-sm: 0 2px 6px rgb(97 35 107 / 0.08);
|
|
43
|
+
--moduix-shadow-md: 0 8px 18px rgb(97 35 107 / 0.12);
|
|
44
|
+
--moduix-shadow-lg: 0 18px 38px rgb(97 35 107 / 0.16);
|
|
46
45
|
|
|
47
|
-
|
|
48
|
-
[data-moduix-
|
|
49
|
-
|
|
50
|
-
--moduix-
|
|
51
|
-
--moduix-
|
|
52
|
-
--moduix-card
|
|
53
|
-
--moduix-
|
|
54
|
-
--moduix-popover
|
|
55
|
-
--moduix-
|
|
56
|
-
--moduix-primary
|
|
57
|
-
--moduix-
|
|
58
|
-
--moduix-secondary
|
|
59
|
-
--moduix-
|
|
60
|
-
--moduix-muted
|
|
61
|
-
--moduix-
|
|
62
|
-
--moduix-accent
|
|
63
|
-
--moduix-
|
|
64
|
-
--moduix-
|
|
65
|
-
--moduix-
|
|
66
|
-
--moduix-
|
|
67
|
-
--moduix-overlay
|
|
68
|
-
--moduix-
|
|
69
|
-
--moduix-sidebar
|
|
70
|
-
--moduix-sidebar-
|
|
71
|
-
--moduix-sidebar-primary
|
|
72
|
-
--moduix-sidebar-
|
|
73
|
-
--moduix-sidebar-accent
|
|
74
|
-
--moduix-sidebar-
|
|
75
|
-
--moduix-sidebar-
|
|
46
|
+
&[data-moduix-color-scheme='dark'],
|
|
47
|
+
[data-moduix-color-scheme='dark'] {
|
|
48
|
+
color-scheme: dark;
|
|
49
|
+
--moduix-background: oklch(0.17 0.018 315);
|
|
50
|
+
--moduix-foreground: oklch(0.972 0.006 320);
|
|
51
|
+
--moduix-card: oklch(0.22 0.022 315);
|
|
52
|
+
--moduix-card-foreground: oklch(0.972 0.006 320);
|
|
53
|
+
--moduix-popover: oklch(0.22 0.022 315);
|
|
54
|
+
--moduix-popover-foreground: oklch(0.972 0.006 320);
|
|
55
|
+
--moduix-primary: oklch(0.78 0.13 305);
|
|
56
|
+
--moduix-primary-foreground: oklch(0.23 0.026 315);
|
|
57
|
+
--moduix-secondary: oklch(0.285 0.03 315);
|
|
58
|
+
--moduix-secondary-foreground: oklch(0.972 0.006 320);
|
|
59
|
+
--moduix-muted: oklch(0.275 0.026 315);
|
|
60
|
+
--moduix-muted-foreground: oklch(0.74 0.03 320);
|
|
61
|
+
--moduix-accent: oklch(0.34 0.06 310);
|
|
62
|
+
--moduix-accent-foreground: oklch(0.972 0.006 320);
|
|
63
|
+
--moduix-border: oklch(0.76 0.035 320 / 0.24);
|
|
64
|
+
--moduix-input: oklch(0.76 0.035 320 / 0.3);
|
|
65
|
+
--moduix-ring: oklch(0.74 0.11 305);
|
|
66
|
+
--moduix-overlay: oklch(0.1 0.02 315 / 0.8);
|
|
67
|
+
--moduix-overlay-foreground: oklch(0.972 0.006 320 / 0.1);
|
|
68
|
+
--moduix-sidebar: oklch(0.2 0.022 315);
|
|
69
|
+
--moduix-sidebar-foreground: oklch(0.972 0.006 320);
|
|
70
|
+
--moduix-sidebar-primary: oklch(0.78 0.13 305);
|
|
71
|
+
--moduix-sidebar-primary-foreground: oklch(0.23 0.026 315);
|
|
72
|
+
--moduix-sidebar-accent: oklch(0.34 0.06 310);
|
|
73
|
+
--moduix-sidebar-accent-foreground: oklch(0.972 0.006 320);
|
|
74
|
+
--moduix-sidebar-border: oklch(0.76 0.035 320 / 0.24);
|
|
75
|
+
--moduix-sidebar-ring: oklch(0.74 0.11 305);
|
|
76
76
|
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
[data-moduix-theme="soft"][data-moduix-color-scheme="dark"], [data-moduix-theme="soft"] [data-moduix-color-scheme="dark"] {
|
|
80
|
-
--lightningcss-light: ;
|
|
81
|
-
--lightningcss-dark: initial;
|
|
82
|
-
color-scheme: dark;
|
|
83
|
-
--moduix-background: #120d15;
|
|
84
|
-
--moduix-foreground: #f8f4f8;
|
|
85
|
-
--moduix-card: #1e1822;
|
|
86
|
-
--moduix-card-foreground: #f8f4f8;
|
|
87
|
-
--moduix-popover: #1e1822;
|
|
88
|
-
--moduix-popover-foreground: #f8f4f8;
|
|
89
|
-
--moduix-primary: #cba1fa;
|
|
90
|
-
--moduix-primary-foreground: #221925;
|
|
91
|
-
--moduix-secondary: #302634;
|
|
92
|
-
--moduix-secondary-foreground: #f8f4f8;
|
|
93
|
-
--moduix-muted: #2d2431;
|
|
94
|
-
--moduix-muted-foreground: #b4a5b7;
|
|
95
|
-
--moduix-accent: #412f4f;
|
|
96
|
-
--moduix-accent-foreground: #f8f4f8;
|
|
97
|
-
--moduix-border: #bbaabf3d;
|
|
98
|
-
--moduix-input: #bbaabf4d;
|
|
99
|
-
--moduix-ring: #bb99e3;
|
|
100
|
-
--moduix-overlay: #050207cc;
|
|
101
|
-
--moduix-overlay-foreground: #f8f4f81a;
|
|
102
|
-
--moduix-sidebar: #1a131d;
|
|
103
|
-
--moduix-sidebar-foreground: #f8f4f8;
|
|
104
|
-
--moduix-sidebar-primary: #cba1fa;
|
|
105
|
-
--moduix-sidebar-primary-foreground: #221925;
|
|
106
|
-
--moduix-sidebar-accent: #412f4f;
|
|
107
|
-
--moduix-sidebar-accent-foreground: #f8f4f8;
|
|
108
|
-
--moduix-sidebar-border: #bbaabf3d;
|
|
109
|
-
--moduix-sidebar-ring: #bb99e3;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
@supports (color: lab(0% 0 0)) {
|
|
113
|
-
[data-moduix-theme="soft"][data-moduix-color-scheme="dark"], [data-moduix-theme="soft"] [data-moduix-color-scheme="dark"] {
|
|
114
|
-
--moduix-background: lab(4.27462% 3.10393 -3.53473);
|
|
115
|
-
--moduix-foreground: lab(96.6736% 1.57163 -1.45046);
|
|
116
|
-
--moduix-card: lab(9.22196% 5.45708 -5.73159);
|
|
117
|
-
--moduix-card-foreground: lab(96.6736% 1.57163 -1.45046);
|
|
118
|
-
--moduix-popover: lab(9.22196% 5.45708 -5.73159);
|
|
119
|
-
--moduix-popover-foreground: lab(96.6736% 1.57163 -1.45046);
|
|
120
|
-
--moduix-primary: lab(72.7036% 28.3277 -38.6867);
|
|
121
|
-
--moduix-primary-foreground: lab(10.3245% 6.47023 -6.7571);
|
|
122
|
-
--moduix-secondary: lab(16.6521% 7.45122 -7.80795);
|
|
123
|
-
--moduix-secondary-foreground: lab(96.6736% 1.57163 -1.45046);
|
|
124
|
-
--moduix-muted: lab(15.5491% 6.44058 -6.78092);
|
|
125
|
-
--moduix-muted-foreground: lab(69.4402% 7.88933 -7.19396);
|
|
126
|
-
--moduix-accent: lab(22.5936% 14.2035 -16.6957);
|
|
127
|
-
--moduix-accent-foreground: lab(96.6736% 1.57163 -1.45046);
|
|
128
|
-
--moduix-border: lab(71.6921% 9.21014 -8.38288 / .24);
|
|
129
|
-
--moduix-input: lab(71.6921% 9.21014 -8.38288 / .3);
|
|
130
|
-
--moduix-ring: lab(68.3641% 23.7194 -32.8336);
|
|
131
|
-
--moduix-overlay: lab(.836973% 1.25162 -1.46449 / .8);
|
|
132
|
-
--moduix-overlay-foreground: lab(96.6736% 1.57163 -1.45046 / .1);
|
|
133
|
-
--moduix-sidebar: lab(6.9495% 5.25659 -5.63513);
|
|
134
|
-
--moduix-sidebar-foreground: lab(96.6736% 1.57163 -1.45046);
|
|
135
|
-
--moduix-sidebar-primary: lab(72.7036% 28.3277 -38.6867);
|
|
136
|
-
--moduix-sidebar-primary-foreground: lab(10.3245% 6.47023 -6.7571);
|
|
137
|
-
--moduix-sidebar-accent: lab(22.5936% 14.2035 -16.6957);
|
|
138
|
-
--moduix-sidebar-accent-foreground: lab(96.6736% 1.57163 -1.45046);
|
|
139
|
-
--moduix-sidebar-border: lab(71.6921% 9.21014 -8.38288 / .24);
|
|
140
|
-
--moduix-sidebar-ring: lab(68.3641% 23.7194 -32.8336);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
77
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@keyframes moduix-pulse {
|
|
2
2
|
50% {
|
|
3
|
-
opacity: .3;
|
|
3
|
+
opacity: 0.3;
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
from {
|
|
15
15
|
opacity: 1;
|
|
16
16
|
}
|
|
17
|
-
|
|
18
17
|
to {
|
|
19
18
|
opacity: 0;
|
|
20
19
|
}
|
|
@@ -22,15 +21,15 @@
|
|
|
22
21
|
|
|
23
22
|
@keyframes moduix-slide-up {
|
|
24
23
|
from {
|
|
25
|
-
opacity: 0;
|
|
26
24
|
transform: translateY(4px);
|
|
25
|
+
opacity: 0;
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
@keyframes moduix-slide-down {
|
|
31
30
|
from {
|
|
32
|
-
opacity: 0;
|
|
33
31
|
transform: translateY(-4px);
|
|
32
|
+
opacity: 0;
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
35
|
|
|
@@ -47,7 +46,7 @@
|
|
|
47
46
|
--moduix-animation-slide-up: moduix-slide-up var(--moduix-duration-normal) var(--moduix-ease-out);
|
|
48
47
|
--moduix-animation-slide-down: moduix-slide-down var(--moduix-duration-normal)
|
|
49
48
|
var(--moduix-ease-out);
|
|
50
|
-
--moduix-animation-spin: moduix-spin .75s linear infinite;
|
|
49
|
+
--moduix-animation-spin: moduix-spin 0.75s linear infinite;
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -59,5 +58,4 @@
|
|
|
59
58
|
--moduix-animation-slide-down: none;
|
|
60
59
|
--moduix-animation-spin: none;
|
|
61
60
|
}
|
|
62
|
-
}
|
|
63
|
-
|
|
61
|
+
}
|
package/dist/styles/borders.css
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
--moduix-border-width-sm: 1px;
|
|
3
3
|
--moduix-border-width-md: 2px;
|
|
4
4
|
--moduix-border-width-lg: 4px;
|
|
5
|
+
|
|
5
6
|
--moduix-focus-ring-width: var(--moduix-border-width-md);
|
|
6
7
|
--moduix-focus-ring-inset-width: var(--moduix-border-width-sm);
|
|
7
8
|
--moduix-focus-ring-offset: var(--moduix-spacing-0-5);
|
|
8
9
|
--moduix-focus-ring-inset-offset: calc(var(--moduix-border-width-sm) * -1);
|
|
9
|
-
}
|
|
10
|
-
|
|
10
|
+
}
|
package/dist/styles/colors.css
CHANGED
|
@@ -1,171 +1,88 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--moduix-background:
|
|
3
|
-
--moduix-foreground:
|
|
4
|
-
--moduix-card:
|
|
5
|
-
--moduix-card-foreground:
|
|
6
|
-
--moduix-popover:
|
|
7
|
-
--moduix-popover-foreground:
|
|
8
|
-
--moduix-primary:
|
|
9
|
-
--moduix-primary-foreground:
|
|
10
|
-
--moduix-secondary:
|
|
11
|
-
--moduix-secondary-foreground:
|
|
12
|
-
--moduix-muted:
|
|
13
|
-
--moduix-muted-foreground:
|
|
14
|
-
--moduix-accent:
|
|
15
|
-
--moduix-accent-foreground:
|
|
16
|
-
--moduix-destructive:
|
|
2
|
+
--moduix-background: oklch(0.982 0.003 285);
|
|
3
|
+
--moduix-foreground: oklch(0.175 0.01 285);
|
|
4
|
+
--moduix-card: oklch(0.995 0.002 285);
|
|
5
|
+
--moduix-card-foreground: oklch(0.175 0.01 285);
|
|
6
|
+
--moduix-popover: oklch(0.995 0.002 285);
|
|
7
|
+
--moduix-popover-foreground: oklch(0.175 0.01 285);
|
|
8
|
+
--moduix-primary: oklch(0.235 0.016 285);
|
|
9
|
+
--moduix-primary-foreground: oklch(0.982 0.003 285);
|
|
10
|
+
--moduix-secondary: oklch(0.96 0.006 285);
|
|
11
|
+
--moduix-secondary-foreground: oklch(0.235 0.016 285);
|
|
12
|
+
--moduix-muted: oklch(0.955 0.006 285);
|
|
13
|
+
--moduix-muted-foreground: oklch(0.485 0.015 285);
|
|
14
|
+
--moduix-accent: oklch(0.95 0.01 285);
|
|
15
|
+
--moduix-accent-foreground: oklch(0.235 0.016 285);
|
|
16
|
+
--moduix-destructive: oklch(0.565 0.235 22);
|
|
17
17
|
--moduix-destructive-foreground: var(--moduix-primary-foreground);
|
|
18
|
-
--moduix-success:
|
|
19
|
-
--moduix-warning:
|
|
20
|
-
--moduix-border:
|
|
21
|
-
--moduix-input:
|
|
22
|
-
--moduix-ring:
|
|
23
|
-
--moduix-overlay:
|
|
24
|
-
--moduix-overlay-foreground:
|
|
25
|
-
--moduix-chart-1:
|
|
26
|
-
--moduix-chart-2:
|
|
27
|
-
--moduix-chart-3:
|
|
28
|
-
--moduix-chart-4:
|
|
29
|
-
--moduix-chart-5:
|
|
30
|
-
--moduix-sidebar:
|
|
31
|
-
--moduix-sidebar-foreground:
|
|
32
|
-
--moduix-sidebar-primary:
|
|
33
|
-
--moduix-sidebar-primary-foreground:
|
|
34
|
-
--moduix-sidebar-accent:
|
|
35
|
-
--moduix-sidebar-accent-foreground:
|
|
36
|
-
--moduix-sidebar-border:
|
|
37
|
-
--moduix-sidebar-ring:
|
|
38
|
-
}
|
|
18
|
+
--moduix-success: oklch(0.627 0.194 149.214);
|
|
19
|
+
--moduix-warning: oklch(0.795 0.184 86.047);
|
|
20
|
+
--moduix-border: oklch(0.905 0.008 285);
|
|
21
|
+
--moduix-input: oklch(0.905 0.008 285);
|
|
22
|
+
--moduix-ring: oklch(0.62 0.035 285);
|
|
23
|
+
--moduix-overlay: oklch(0.175 0.014 285 / 0.2);
|
|
24
|
+
--moduix-overlay-foreground: oklch(0.175 0.014 285 / 0.07);
|
|
25
|
+
--moduix-chart-1: oklch(0.65 0.18 295);
|
|
26
|
+
--moduix-chart-2: oklch(0.7 0.14 175);
|
|
27
|
+
--moduix-chart-3: oklch(0.72 0.16 55);
|
|
28
|
+
--moduix-chart-4: oklch(0.6 0.2 350);
|
|
29
|
+
--moduix-chart-5: oklch(0.68 0.13 130);
|
|
30
|
+
--moduix-sidebar: oklch(0.975 0.005 285);
|
|
31
|
+
--moduix-sidebar-foreground: oklch(0.175 0.01 285);
|
|
32
|
+
--moduix-sidebar-primary: oklch(0.235 0.016 285);
|
|
33
|
+
--moduix-sidebar-primary-foreground: oklch(0.982 0.003 285);
|
|
34
|
+
--moduix-sidebar-accent: oklch(0.95 0.01 285);
|
|
35
|
+
--moduix-sidebar-accent-foreground: oklch(0.235 0.016 285);
|
|
36
|
+
--moduix-sidebar-border: oklch(0.905 0.008 285);
|
|
37
|
+
--moduix-sidebar-ring: oklch(0.62 0.035 285);
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
--moduix-foreground: lab(4.77477% .753664 -2.8157);
|
|
44
|
-
--moduix-card: lab(99.4032% .183612 -.732851);
|
|
45
|
-
--moduix-card-foreground: lab(4.77477% .753664 -2.8157);
|
|
46
|
-
--moduix-popover: lab(99.4032% .183612 -.732851);
|
|
47
|
-
--moduix-popover-foreground: lab(4.77477% .753664 -2.8157);
|
|
48
|
-
--moduix-primary: lab(11.108% 1.72348 -5.72367);
|
|
49
|
-
--moduix-primary-foreground: lab(97.8868% .276119 -1.09879);
|
|
50
|
-
--moduix-secondary: lab(95.3092% .556827 -2.19457);
|
|
51
|
-
--moduix-secondary-foreground: lab(11.108% 1.72348 -5.72367);
|
|
52
|
-
--moduix-muted: lab(94.7292% .556916 -2.19454);
|
|
53
|
-
--moduix-muted-foreground: lab(40.1269% 1.4805 -5.43306);
|
|
54
|
-
--moduix-accent: lab(94.1146% .938207 -3.65106);
|
|
55
|
-
--moduix-accent-foreground: lab(11.108% 1.72348 -5.72367);
|
|
56
|
-
--moduix-destructive: lab(47.0493% 75.2533 42.9314);
|
|
57
|
-
--moduix-success: lab(59.0978% -58.6621 41.2579);
|
|
58
|
-
--moduix-warning: lab(76.3898% 14.5258 98.4589);
|
|
59
|
-
--moduix-border: lab(88.9119% .747383 -2.9229);
|
|
60
|
-
--moduix-input: lab(88.9119% .747383 -2.9229);
|
|
61
|
-
--moduix-ring: lab(55.5944% 3.67066 -12.566);
|
|
62
|
-
--moduix-overlay: lab(4.7445% 1.11303 -4.05285 / .2);
|
|
63
|
-
--moduix-overlay-foreground: lab(4.7445% 1.11303 -4.05285 / .07);
|
|
64
|
-
--moduix-chart-1: lab(56.7542% 35.894 -58.3247);
|
|
65
|
-
--moduix-chart-2: lab(67.0098% -49.4925 4.26728);
|
|
66
|
-
--moduix-chart-3: lab(66.6902% 37.2311 61.7785);
|
|
67
|
-
--moduix-chart-4: lab(50.895% 63.3361 -12.3314);
|
|
68
|
-
--moduix-chart-5: lab(64.2236% -26.5235 41.6585);
|
|
69
|
-
--moduix-sidebar: lab(97.0578% .462711 -1.82967);
|
|
70
|
-
--moduix-sidebar-foreground: lab(4.77477% .753664 -2.8157);
|
|
71
|
-
--moduix-sidebar-primary: lab(11.108% 1.72348 -5.72367);
|
|
72
|
-
--moduix-sidebar-primary-foreground: lab(97.8868% .276119 -1.09879);
|
|
73
|
-
--moduix-sidebar-accent: lab(94.1146% .938207 -3.65106);
|
|
74
|
-
--moduix-sidebar-accent-foreground: lab(11.108% 1.72348 -5.72367);
|
|
75
|
-
--moduix-sidebar-border: lab(88.9119% .747383 -2.9229);
|
|
76
|
-
--moduix-sidebar-ring: lab(55.5944% 3.67066 -12.566);
|
|
39
|
+
&[data-moduix-color-scheme='light'],
|
|
40
|
+
[data-moduix-color-scheme='light'] {
|
|
41
|
+
color-scheme: light;
|
|
77
42
|
}
|
|
78
|
-
}
|
|
79
43
|
|
|
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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
--moduix-sidebar-foreground: #f4f4f6;
|
|
120
|
-
--moduix-sidebar-primary: #ad8dff;
|
|
121
|
-
--moduix-sidebar-primary-foreground: #0c0c10;
|
|
122
|
-
--moduix-sidebar-accent: #2a2a33;
|
|
123
|
-
--moduix-sidebar-accent-foreground: #f4f4f6;
|
|
124
|
-
--moduix-sidebar-border: #ffffff21;
|
|
125
|
-
--moduix-sidebar-ring: #797992;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
@supports (color: lab(0% 0 0)) {
|
|
129
|
-
:root[data-moduix-color-scheme="dark"], :root [data-moduix-color-scheme="dark"] {
|
|
130
|
-
--moduix-background: lab(3.32254% .466786 -1.75522);
|
|
131
|
-
--moduix-foreground: lab(96.2627% .276208 -1.09876);
|
|
132
|
-
--moduix-card: lab(7.13143% 1.07729 -3.89344);
|
|
133
|
-
--moduix-card-foreground: lab(96.2627% .276208 -1.09876);
|
|
134
|
-
--moduix-popover: lab(7.13143% 1.07729 -3.89344);
|
|
135
|
-
--moduix-popover-foreground: lab(96.2627% .276208 -1.09876);
|
|
136
|
-
--moduix-primary: lab(90.4286% .651926 -2.55885);
|
|
137
|
-
--moduix-primary-foreground: lab(7.13143% 1.07729 -3.89344);
|
|
138
|
-
--moduix-secondary: lab(13.4703% 1.23115 -4.32171);
|
|
139
|
-
--moduix-secondary-foreground: lab(96.2627% .276208 -1.09876);
|
|
140
|
-
--moduix-muted: lab(13.4703% 1.23115 -4.32171);
|
|
141
|
-
--moduix-muted-foreground: lab(65.6402% 1.54763 -5.81334);
|
|
142
|
-
--moduix-accent: lab(17.5017% 1.55589 -5.39374);
|
|
143
|
-
--moduix-accent-foreground: lab(96.2627% .276208 -1.09876);
|
|
144
|
-
--moduix-destructive: lab(62.0549% 59.5703 24.4648);
|
|
145
|
-
--moduix-success: lab(59.0978% -58.6621 41.2579);
|
|
146
|
-
--moduix-warning: lab(76.3898% 14.5258 98.4589);
|
|
147
|
-
--moduix-border: lab(99.9663% .369132 -1.46444 / .13);
|
|
148
|
-
--moduix-input: lab(99.9663% .369132 -1.46444 / .17);
|
|
149
|
-
--moduix-ring: lab(51.501% 4.0642 -13.6067);
|
|
150
|
-
--moduix-overlay: lab(1.0141% .370815 -1.30305 / .74);
|
|
151
|
-
--moduix-overlay-foreground: lab(96.2627% .276208 -1.09876 / .09);
|
|
152
|
-
--moduix-chart-1: lab(65.1519% 32.5305 -55.3073);
|
|
153
|
-
--moduix-chart-2: lab(73.8414% -45.6023 3.95186);
|
|
154
|
-
--moduix-chart-3: lab(73.7456% 34.2033 54.931);
|
|
155
|
-
--moduix-chart-4: lab(59.1573% 60.5605 -11.745);
|
|
156
|
-
--moduix-chart-5: lab(71.1105% -24.7757 37.5748);
|
|
157
|
-
--moduix-sidebar: lab(7.13143% 1.07729 -3.89344);
|
|
158
|
-
--moduix-sidebar-foreground: lab(96.2627% .276208 -1.09876);
|
|
159
|
-
--moduix-sidebar-primary: lab(65.1519% 32.5305 -55.3073);
|
|
160
|
-
--moduix-sidebar-primary-foreground: lab(3.32254% .466786 -1.75522);
|
|
161
|
-
--moduix-sidebar-accent: lab(17.5017% 1.55589 -5.39374);
|
|
162
|
-
--moduix-sidebar-accent-foreground: lab(96.2627% .276208 -1.09876);
|
|
163
|
-
--moduix-sidebar-border: lab(99.9663% .369132 -1.46444 / .13);
|
|
164
|
-
--moduix-sidebar-ring: lab(51.501% 4.0642 -13.6067);
|
|
44
|
+
&[data-moduix-color-scheme='dark'],
|
|
45
|
+
[data-moduix-color-scheme='dark'] {
|
|
46
|
+
color-scheme: dark;
|
|
47
|
+
--moduix-background: oklch(0.155 0.008 285);
|
|
48
|
+
--moduix-foreground: oklch(0.968 0.003 285);
|
|
49
|
+
--moduix-card: oklch(0.2 0.011 285);
|
|
50
|
+
--moduix-card-foreground: oklch(0.968 0.003 285);
|
|
51
|
+
--moduix-popover: oklch(0.2 0.011 285);
|
|
52
|
+
--moduix-popover-foreground: oklch(0.968 0.003 285);
|
|
53
|
+
--moduix-primary: oklch(0.918 0.007 285);
|
|
54
|
+
--moduix-primary-foreground: oklch(0.2 0.011 285);
|
|
55
|
+
--moduix-secondary: oklch(0.255 0.012 285);
|
|
56
|
+
--moduix-secondary-foreground: oklch(0.968 0.003 285);
|
|
57
|
+
--moduix-muted: oklch(0.255 0.012 285);
|
|
58
|
+
--moduix-muted-foreground: oklch(0.705 0.016 285);
|
|
59
|
+
--moduix-accent: oklch(0.29 0.015 285);
|
|
60
|
+
--moduix-accent-foreground: oklch(0.968 0.003 285);
|
|
61
|
+
--moduix-destructive: oklch(0.69 0.185 18);
|
|
62
|
+
--moduix-destructive-foreground: var(--moduix-primary-foreground);
|
|
63
|
+
--moduix-success: oklch(0.627 0.194 149.214);
|
|
64
|
+
--moduix-warning: oklch(0.795 0.184 86.047);
|
|
65
|
+
--moduix-border: oklch(1 0.004 285 / 13%);
|
|
66
|
+
--moduix-input: oklch(1 0.004 285 / 17%);
|
|
67
|
+
--moduix-ring: oklch(0.585 0.038 285);
|
|
68
|
+
--moduix-overlay: oklch(0.105 0.012 285 / 0.74);
|
|
69
|
+
--moduix-overlay-foreground: oklch(0.968 0.003 285 / 0.09);
|
|
70
|
+
--moduix-chart-1: oklch(0.72 0.17 295);
|
|
71
|
+
--moduix-chart-2: oklch(0.76 0.13 175);
|
|
72
|
+
--moduix-chart-3: oklch(0.78 0.15 55);
|
|
73
|
+
--moduix-chart-4: oklch(0.67 0.19 350);
|
|
74
|
+
--moduix-chart-5: oklch(0.74 0.12 130);
|
|
75
|
+
--moduix-sidebar: oklch(0.2 0.011 285);
|
|
76
|
+
--moduix-sidebar-foreground: oklch(0.968 0.003 285);
|
|
77
|
+
--moduix-sidebar-primary: oklch(0.72 0.17 295);
|
|
78
|
+
--moduix-sidebar-primary-foreground: oklch(0.155 0.008 285);
|
|
79
|
+
--moduix-sidebar-accent: oklch(0.29 0.015 285);
|
|
80
|
+
--moduix-sidebar-accent-foreground: oklch(0.968 0.003 285);
|
|
81
|
+
--moduix-sidebar-border: oklch(1 0.004 285 / 13%);
|
|
82
|
+
--moduix-sidebar-ring: oklch(0.585 0.038 285);
|
|
165
83
|
}
|
|
166
|
-
}
|
|
167
84
|
|
|
168
|
-
|
|
85
|
+
/* Semantic */
|
|
169
86
|
--moduix-color-background: var(--moduix-background);
|
|
170
87
|
--moduix-color-foreground: var(--moduix-foreground);
|
|
171
88
|
--moduix-color-card: var(--moduix-card);
|
|
@@ -202,5 +119,4 @@
|
|
|
202
119
|
--moduix-color-sidebar-accent-foreground: var(--moduix-sidebar-accent-foreground);
|
|
203
120
|
--moduix-color-sidebar-border: var(--moduix-sidebar-border);
|
|
204
121
|
--moduix-color-sidebar-ring: var(--moduix-sidebar-ring);
|
|
205
|
-
}
|
|
206
|
-
|
|
122
|
+
}
|
package/dist/styles/opacity.css
CHANGED
package/dist/styles/radius.css
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--moduix-radius: .625rem;
|
|
2
|
+
--moduix-radius: 0.625rem;
|
|
3
3
|
--moduix-radius-none: 0;
|
|
4
|
-
|
|
5
|
-
--moduix-radius-
|
|
6
|
-
--moduix-radius-
|
|
4
|
+
|
|
5
|
+
--moduix-radius-xs: calc(var(--moduix-radius) * 0.4);
|
|
6
|
+
--moduix-radius-sm: calc(var(--moduix-radius) * 0.6);
|
|
7
|
+
--moduix-radius-md: calc(var(--moduix-radius) * 0.8);
|
|
7
8
|
--moduix-radius-lg: var(--moduix-radius);
|
|
8
9
|
--moduix-radius-xl: calc(var(--moduix-radius) * 1.2);
|
|
9
10
|
--moduix-radius-full: 9999px;
|
|
10
|
-
}
|
|
11
|
-
|
|
11
|
+
}
|