@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
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
@layer moduix.components {
|
|
2
|
+
.root-VBggED {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
grid-template-columns: minmax(0, 1fr) minmax(var(--moduix-table-of-contents-nav-min-width, 12rem),
|
|
5
|
+
var(--moduix-table-of-contents-nav-width, 16rem));
|
|
6
|
+
gap: var(--moduix-table-of-contents-gap, var(--moduix-spacing-6));
|
|
7
|
+
width: 100%;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
color: var(--moduix-table-of-contents-color, var(--moduix-color-foreground));
|
|
10
|
+
--_moduix-toc-indicator-top: var(--top);
|
|
11
|
+
--_moduix-toc-indicator-height: var(--height);
|
|
12
|
+
display: grid;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media (max-width: 48rem) {
|
|
16
|
+
.root-VBggED {
|
|
17
|
+
grid-template-columns: minmax(0, 1fr);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.content-AHeziM {
|
|
22
|
+
scroll-behavior: smooth;
|
|
23
|
+
min-width: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.content-AHeziM:has( ~ .nav-q0EDqs[data-placement="left"]) {
|
|
27
|
+
grid-area: 1 / 2;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.nav-q0EDqs {
|
|
31
|
+
top: var(--moduix-table-of-contents-nav-top, var(--moduix-spacing-4));
|
|
32
|
+
max-height: var(--moduix-table-of-contents-nav-max-height, calc(100dvh - 2rem));
|
|
33
|
+
padding: var(--moduix-table-of-contents-nav-padding, var(--moduix-spacing-4));
|
|
34
|
+
border: var(--moduix-table-of-contents-nav-border-width, var(--moduix-border-width-sm)) solid
|
|
35
|
+
var(--moduix-table-of-contents-nav-border-color, var(--moduix-color-border));
|
|
36
|
+
border-radius: var(--moduix-table-of-contents-nav-radius, var(--moduix-radius-lg));
|
|
37
|
+
background-color: var(--moduix-table-of-contents-nav-bg, var(--moduix-color-card));
|
|
38
|
+
align-self: start;
|
|
39
|
+
position: sticky;
|
|
40
|
+
overflow: auto;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.nav-q0EDqs[data-placement="left"] {
|
|
44
|
+
grid-area: 1 / 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.root-VBggED:has(.nav-q0EDqs[data-placement="left"]) {
|
|
48
|
+
grid-template-columns: minmax(var(--moduix-table-of-contents-nav-min-width, 12rem),
|
|
49
|
+
var(--moduix-table-of-contents-nav-width, 16rem)) minmax(0, 1fr);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (max-width: 48rem) {
|
|
53
|
+
.root-VBggED:has(.nav-q0EDqs[data-placement="left"]) .nav-q0EDqs[data-placement="left"] {
|
|
54
|
+
grid-area: auto;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.root-VBggED:has(.nav-q0EDqs[data-placement="left"]) .content-AHeziM:has( ~ .nav-q0EDqs[data-placement="left"]) {
|
|
58
|
+
grid-area: auto;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.title-RjjR4J {
|
|
63
|
+
margin: 0 0 var(--moduix-table-of-contents-title-margin-bottom, var(--moduix-spacing-2));
|
|
64
|
+
color: var(--moduix-table-of-contents-title-color, var(--moduix-color-foreground));
|
|
65
|
+
font-size: var(--moduix-table-of-contents-title-font-size, var(--moduix-text-sm));
|
|
66
|
+
font-weight: var(--moduix-table-of-contents-title-font-weight, var(--moduix-weight-semibold));
|
|
67
|
+
line-height: var(--moduix-table-of-contents-title-line-height, var(--moduix-line-height-text-sm));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.list-KZD4Qg {
|
|
71
|
+
gap: var(--moduix-table-of-contents-list-gap, var(--moduix-spacing-0-5));
|
|
72
|
+
margin: 0;
|
|
73
|
+
padding-block: 0;
|
|
74
|
+
padding-inline-start: var(--moduix-table-of-contents-list-padding-start, var(--moduix-spacing-1));
|
|
75
|
+
list-style: none;
|
|
76
|
+
display: grid;
|
|
77
|
+
position: relative;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.list-KZD4Qg:has(.indicator-Zeit8l):before {
|
|
81
|
+
top: var(--moduix-spacing-0-5);
|
|
82
|
+
bottom: var(--moduix-spacing-0-5);
|
|
83
|
+
width: var(--moduix-table-of-contents-indicator-width, var(--moduix-border-width-md));
|
|
84
|
+
border-radius: var(--moduix-radius-full);
|
|
85
|
+
background-color: var(--moduix-table-of-contents-indicator-track-bg, var(--moduix-color-border));
|
|
86
|
+
content: "";
|
|
87
|
+
pointer-events: none;
|
|
88
|
+
position: absolute;
|
|
89
|
+
inset-inline-start: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.item-xFlCTb {
|
|
93
|
+
min-width: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.link-L4LQA0 {
|
|
97
|
+
min-width: 0;
|
|
98
|
+
padding-block: var(--moduix-table-of-contents-link-padding-y, var(--moduix-spacing-1));
|
|
99
|
+
border-radius: var(--moduix-table-of-contents-link-radius, var(--moduix-radius-sm));
|
|
100
|
+
color: var(--moduix-table-of-contents-link-color, var(--moduix-color-muted-foreground));
|
|
101
|
+
font-size: var(--moduix-table-of-contents-link-font-size, var(--moduix-text-sm));
|
|
102
|
+
line-height: var(--moduix-table-of-contents-link-line-height, var(--moduix-line-height-text-sm));
|
|
103
|
+
text-overflow: ellipsis;
|
|
104
|
+
white-space: nowrap;
|
|
105
|
+
transition: color var(--moduix-transition-default);
|
|
106
|
+
outline: none;
|
|
107
|
+
padding-inline-start: calc(var(--moduix-table-of-contents-link-padding-x, var(--moduix-spacing-1)) +
|
|
108
|
+
var(--moduix-table-of-contents-indicator-width, var(--moduix-border-width-md)) +
|
|
109
|
+
var(--moduix-spacing-2) +
|
|
110
|
+
max(0px,
|
|
111
|
+
calc((var(--depth) - 2) *
|
|
112
|
+
var(--moduix-table-of-contents-link-indent, var(--moduix-spacing-2)))));
|
|
113
|
+
padding-inline-end: var(--moduix-table-of-contents-link-padding-x, var(--moduix-spacing-1));
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
display: block;
|
|
116
|
+
position: relative;
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@media (hover: hover) {
|
|
121
|
+
.link-L4LQA0:hover {
|
|
122
|
+
color: var(--moduix-table-of-contents-link-color-hover, var(--moduix-color-foreground));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.link-L4LQA0:focus-visible {
|
|
127
|
+
box-shadow: 0 0 0
|
|
128
|
+
var(--moduix-table-of-contents-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)))
|
|
129
|
+
var(--moduix-table-of-contents-focus-ring-color, var(--moduix-color-ring));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.link-L4LQA0[data-active] {
|
|
133
|
+
color: var(--moduix-table-of-contents-link-color-active, var(--moduix-color-foreground));
|
|
134
|
+
font-weight: var(--moduix-table-of-contents-link-font-weight-active, var(--moduix-weight-medium));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.link-L4LQA0[data-active] .rail-BwE9eo {
|
|
138
|
+
color: var(--moduix-table-of-contents-indicator-bg, var(--moduix-color-muted-foreground));
|
|
139
|
+
opacity: .7;
|
|
140
|
+
translate: 0 var(--moduix-spacing-0-5);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.link-L4LQA0:has(.rail-BwE9eo) {
|
|
144
|
+
overflow: visible;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.indicator-Zeit8l {
|
|
148
|
+
z-index: 1;
|
|
149
|
+
top: calc(var(--_moduix-toc-indicator-top) + var(--moduix-spacing-0-5));
|
|
150
|
+
width: var(--moduix-table-of-contents-indicator-width, var(--moduix-border-width-md));
|
|
151
|
+
height: calc(var(--_moduix-toc-indicator-height) - var(--moduix-spacing-1));
|
|
152
|
+
border-radius: var(--moduix-table-of-contents-indicator-radius, var(--moduix-radius-full));
|
|
153
|
+
background-color: var(--moduix-table-of-contents-indicator-bg, var(--moduix-color-muted-foreground));
|
|
154
|
+
opacity: .7;
|
|
155
|
+
pointer-events: none;
|
|
156
|
+
transition: top var(--moduix-transition-default),
|
|
157
|
+
height var(--moduix-transition-default);
|
|
158
|
+
inset-inline-start: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.rail-BwE9eo {
|
|
162
|
+
top: calc(-1 * var(--moduix-spacing-1-5));
|
|
163
|
+
color: var(--moduix-table-of-contents-rail-color, var(--moduix-color-border));
|
|
164
|
+
pointer-events: none;
|
|
165
|
+
position: absolute;
|
|
166
|
+
inset-inline-start: 0;
|
|
167
|
+
overflow: visible;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.rail-BwE9eo :is(line, path) {
|
|
171
|
+
stroke-width: var(--moduix-border-width-sm);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@media (prefers-reduced-motion: reduce) {
|
|
175
|
+
.content-AHeziM {
|
|
176
|
+
scroll-behavior: auto;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.indicator-Zeit8l {
|
|
180
|
+
transition: none;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toc, useToc, useTocContext } from './Toc.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toc, useToc, useTocContext } from "./Toc.js";
|
|
@@ -1,131 +1,65 @@
|
|
|
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:
|
|
29
|
-
--moduix-radius: .375rem;
|
|
30
|
-
--moduix-shadow-sm: 0 1px 2px
|
|
31
|
-
--moduix-shadow-md: 0 4px 10px
|
|
32
|
-
--moduix-shadow-lg: 0 16px 30px
|
|
33
|
-
}
|
|
1
|
+
[data-moduix-theme='contrast'] {
|
|
2
|
+
--moduix-background: oklch(0.995 0.001 250);
|
|
3
|
+
--moduix-foreground: oklch(0.145 0.018 250);
|
|
4
|
+
--moduix-card: oklch(1 0 0);
|
|
5
|
+
--moduix-card-foreground: oklch(0.145 0.018 250);
|
|
6
|
+
--moduix-popover: oklch(1 0 0);
|
|
7
|
+
--moduix-popover-foreground: oklch(0.145 0.018 250);
|
|
8
|
+
--moduix-primary: oklch(0.46 0.2 255);
|
|
9
|
+
--moduix-primary-foreground: oklch(1 0 0);
|
|
10
|
+
--moduix-secondary: oklch(0.94 0.012 250);
|
|
11
|
+
--moduix-secondary-foreground: oklch(0.18 0.025 250);
|
|
12
|
+
--moduix-muted: oklch(0.93 0.01 250);
|
|
13
|
+
--moduix-muted-foreground: oklch(0.39 0.026 250);
|
|
14
|
+
--moduix-accent: oklch(0.9 0.04 245);
|
|
15
|
+
--moduix-accent-foreground: oklch(0.16 0.04 250);
|
|
16
|
+
--moduix-border: oklch(0.72 0.025 250);
|
|
17
|
+
--moduix-input: oklch(0.62 0.035 250);
|
|
18
|
+
--moduix-ring: oklch(0.5 0.19 255);
|
|
19
|
+
--moduix-overlay: oklch(0.09 0.018 250 / 0.38);
|
|
20
|
+
--moduix-overlay-foreground: oklch(0.09 0.018 250 / 0.12);
|
|
21
|
+
--moduix-sidebar: oklch(0.965 0.005 250);
|
|
22
|
+
--moduix-sidebar-foreground: oklch(0.145 0.018 250);
|
|
23
|
+
--moduix-sidebar-primary: oklch(0.46 0.2 255);
|
|
24
|
+
--moduix-sidebar-primary-foreground: oklch(1 0 0);
|
|
25
|
+
--moduix-sidebar-accent: oklch(0.9 0.04 245);
|
|
26
|
+
--moduix-sidebar-accent-foreground: oklch(0.16 0.04 250);
|
|
27
|
+
--moduix-sidebar-border: oklch(0.72 0.025 250);
|
|
28
|
+
--moduix-sidebar-ring: oklch(0.5 0.19 255);
|
|
29
|
+
--moduix-radius: 0.375rem;
|
|
30
|
+
--moduix-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.1);
|
|
31
|
+
--moduix-shadow-md: 0 4px 10px rgb(15 23 42 / 0.14);
|
|
32
|
+
--moduix-shadow-lg: 0 16px 30px rgb(15 23 42 / 0.18);
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
[data-moduix-
|
|
37
|
-
|
|
38
|
-
--moduix-
|
|
39
|
-
--moduix-
|
|
40
|
-
--moduix-card
|
|
41
|
-
--moduix-
|
|
42
|
-
--moduix-popover
|
|
43
|
-
--moduix-
|
|
44
|
-
--moduix-primary
|
|
45
|
-
--moduix-
|
|
46
|
-
--moduix-secondary
|
|
47
|
-
--moduix-
|
|
48
|
-
--moduix-muted
|
|
49
|
-
--moduix-
|
|
50
|
-
--moduix-accent
|
|
51
|
-
--moduix-
|
|
52
|
-
--moduix-
|
|
53
|
-
--moduix-
|
|
54
|
-
--moduix-
|
|
55
|
-
--moduix-overlay
|
|
56
|
-
--moduix-
|
|
57
|
-
--moduix-sidebar
|
|
58
|
-
--moduix-sidebar-
|
|
59
|
-
--moduix-sidebar-primary
|
|
60
|
-
--moduix-sidebar-
|
|
61
|
-
--moduix-sidebar-accent
|
|
62
|
-
--moduix-sidebar-
|
|
63
|
-
--moduix-sidebar-
|
|
34
|
+
&[data-moduix-color-scheme='dark'],
|
|
35
|
+
[data-moduix-color-scheme='dark'] {
|
|
36
|
+
color-scheme: dark;
|
|
37
|
+
--moduix-background: oklch(0.11 0.018 250);
|
|
38
|
+
--moduix-foreground: oklch(0.985 0.004 250);
|
|
39
|
+
--moduix-card: oklch(0.155 0.022 250);
|
|
40
|
+
--moduix-card-foreground: oklch(0.985 0.004 250);
|
|
41
|
+
--moduix-popover: oklch(0.155 0.022 250);
|
|
42
|
+
--moduix-popover-foreground: oklch(0.985 0.004 250);
|
|
43
|
+
--moduix-primary: oklch(0.76 0.13 255);
|
|
44
|
+
--moduix-primary-foreground: oklch(0.12 0.02 250);
|
|
45
|
+
--moduix-secondary: oklch(0.24 0.026 250);
|
|
46
|
+
--moduix-secondary-foreground: oklch(0.985 0.004 250);
|
|
47
|
+
--moduix-muted: oklch(0.225 0.024 250);
|
|
48
|
+
--moduix-muted-foreground: oklch(0.76 0.018 250);
|
|
49
|
+
--moduix-accent: oklch(0.3 0.06 250);
|
|
50
|
+
--moduix-accent-foreground: oklch(0.985 0.004 250);
|
|
51
|
+
--moduix-border: oklch(0.8 0.025 250 / 0.34);
|
|
52
|
+
--moduix-input: oklch(0.82 0.025 250 / 0.42);
|
|
53
|
+
--moduix-ring: oklch(0.74 0.13 255);
|
|
54
|
+
--moduix-overlay: oklch(0.04 0.014 250 / 0.84);
|
|
55
|
+
--moduix-overlay-foreground: oklch(0.985 0.004 250 / 0.12);
|
|
56
|
+
--moduix-sidebar: oklch(0.13 0.02 250);
|
|
57
|
+
--moduix-sidebar-foreground: oklch(0.985 0.004 250);
|
|
58
|
+
--moduix-sidebar-primary: oklch(0.76 0.13 255);
|
|
59
|
+
--moduix-sidebar-primary-foreground: oklch(0.12 0.02 250);
|
|
60
|
+
--moduix-sidebar-accent: oklch(0.3 0.06 250);
|
|
61
|
+
--moduix-sidebar-accent-foreground: oklch(0.985 0.004 250);
|
|
62
|
+
--moduix-sidebar-border: oklch(0.8 0.025 250 / 0.34);
|
|
63
|
+
--moduix-sidebar-ring: oklch(0.74 0.13 255);
|
|
64
64
|
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
[data-moduix-theme="contrast"][data-moduix-color-scheme="dark"], [data-moduix-theme="contrast"] [data-moduix-color-scheme="dark"] {
|
|
68
|
-
--lightningcss-light: ;
|
|
69
|
-
--lightningcss-dark: initial;
|
|
70
|
-
color-scheme: dark;
|
|
71
|
-
--moduix-background: #02050a;
|
|
72
|
-
--moduix-foreground: #f8fafd;
|
|
73
|
-
--moduix-card: #060d15;
|
|
74
|
-
--moduix-card-foreground: #f8fafd;
|
|
75
|
-
--moduix-popover: #060d15;
|
|
76
|
-
--moduix-popover-foreground: #f8fafd;
|
|
77
|
-
--moduix-primary: #79b4ff;
|
|
78
|
-
--moduix-primary-foreground: #02060d;
|
|
79
|
-
--moduix-secondary: #16202b;
|
|
80
|
-
--moduix-secondary-foreground: #f8fafd;
|
|
81
|
-
--moduix-muted: #131d27;
|
|
82
|
-
--moduix-muted-foreground: #a9b2bc;
|
|
83
|
-
--moduix-accent: #142f4b;
|
|
84
|
-
--moduix-accent-foreground: #f8fafd;
|
|
85
|
-
--moduix-border: #b2bfce57;
|
|
86
|
-
--moduix-input: #b8c6d46b;
|
|
87
|
-
--moduix-ring: #70adfb;
|
|
88
|
-
--moduix-overlay: #000001d6;
|
|
89
|
-
--moduix-overlay-foreground: #f8fafd1f;
|
|
90
|
-
--moduix-sidebar: #03080f;
|
|
91
|
-
--moduix-sidebar-foreground: #f8fafd;
|
|
92
|
-
--moduix-sidebar-primary: #79b4ff;
|
|
93
|
-
--moduix-sidebar-primary-foreground: #02060d;
|
|
94
|
-
--moduix-sidebar-accent: #142f4b;
|
|
95
|
-
--moduix-sidebar-accent-foreground: #f8fafd;
|
|
96
|
-
--moduix-sidebar-border: #b2bfce57;
|
|
97
|
-
--moduix-sidebar-ring: #70adfb;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@supports (color: lab(0% 0 0)) {
|
|
101
|
-
[data-moduix-theme="contrast"][data-moduix-color-scheme="dark"], [data-moduix-theme="contrast"] [data-moduix-color-scheme="dark"] {
|
|
102
|
-
--moduix-background: lab(1.18544% -.300132 -2.243);
|
|
103
|
-
--moduix-foreground: lab(98.257% -.443965 -1.43218);
|
|
104
|
-
--moduix-card: lab(3.32744% -.818849 -5.30129);
|
|
105
|
-
--moduix-card-foreground: lab(98.257% -.443965 -1.43218);
|
|
106
|
-
--moduix-popover: lab(3.32744% -.818849 -5.30129);
|
|
107
|
-
--moduix-popover-foreground: lab(98.257% -.443965 -1.43218);
|
|
108
|
-
--moduix-primary: lab(71.5339% -3.73271 -45.4193);
|
|
109
|
-
--moduix-primary-foreground: lab(1.53827% -.389941 -2.97685);
|
|
110
|
-
--moduix-secondary: lab(11.7779% -2.05918 -8.97185);
|
|
111
|
-
--moduix-secondary-foreground: lab(98.257% -.443965 -1.43218);
|
|
112
|
-
--moduix-muted: lab(10.0434% -1.91372 -8.2854);
|
|
113
|
-
--moduix-muted-foreground: lab(72.1413% -1.89573 -6.38967);
|
|
114
|
-
--moduix-accent: lab(18.5617% -2.88492 -20.3069);
|
|
115
|
-
--moduix-accent-foreground: lab(98.257% -.443965 -1.43218);
|
|
116
|
-
--moduix-border: lab(76.7711% -2.57739 -8.84726 / .34);
|
|
117
|
-
--moduix-input: lab(79.0914% -2.583 -8.84994 / .42);
|
|
118
|
-
--moduix-ring: lab(69.2026% -3.5221 -45.3802);
|
|
119
|
-
--moduix-overlay: lab(.0542831% .00392646 -.286341 / .84);
|
|
120
|
-
--moduix-overlay-foreground: lab(98.257% -.443965 -1.43218 / .12);
|
|
121
|
-
--moduix-sidebar: lab(1.95972% -.491969 -3.43974);
|
|
122
|
-
--moduix-sidebar-foreground: lab(98.257% -.443965 -1.43218);
|
|
123
|
-
--moduix-sidebar-primary: lab(71.5339% -3.73271 -45.4193);
|
|
124
|
-
--moduix-sidebar-primary-foreground: lab(1.53827% -.389941 -2.97685);
|
|
125
|
-
--moduix-sidebar-accent: lab(18.5617% -2.88492 -20.3069);
|
|
126
|
-
--moduix-sidebar-accent-foreground: lab(98.257% -.443965 -1.43218);
|
|
127
|
-
--moduix-sidebar-border: lab(76.7711% -2.57739 -8.84726 / .34);
|
|
128
|
-
--moduix-sidebar-ring: lab(69.2026% -3.5221 -45.3802);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
65
|
+
}
|
package/dist/presets/dense.css
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
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:
|
|
29
|
-
--moduix-radius: .45rem;
|
|
1
|
+
[data-moduix-theme='dense'] {
|
|
2
|
+
--moduix-background: oklch(0.985 0.004 255);
|
|
3
|
+
--moduix-foreground: oklch(0.185 0.014 255);
|
|
4
|
+
--moduix-card: oklch(0.998 0.002 255);
|
|
5
|
+
--moduix-card-foreground: oklch(0.185 0.014 255);
|
|
6
|
+
--moduix-popover: oklch(0.998 0.002 255);
|
|
7
|
+
--moduix-popover-foreground: oklch(0.185 0.014 255);
|
|
8
|
+
--moduix-primary: oklch(0.48 0.16 255);
|
|
9
|
+
--moduix-primary-foreground: oklch(0.99 0.002 255);
|
|
10
|
+
--moduix-secondary: oklch(0.958 0.009 255);
|
|
11
|
+
--moduix-secondary-foreground: oklch(0.24 0.02 255);
|
|
12
|
+
--moduix-muted: oklch(0.952 0.008 255);
|
|
13
|
+
--moduix-muted-foreground: oklch(0.47 0.02 255);
|
|
14
|
+
--moduix-accent: oklch(0.925 0.02 255);
|
|
15
|
+
--moduix-accent-foreground: oklch(0.22 0.025 255);
|
|
16
|
+
--moduix-border: oklch(0.88 0.015 255);
|
|
17
|
+
--moduix-input: oklch(0.84 0.018 255);
|
|
18
|
+
--moduix-ring: oklch(0.56 0.14 255);
|
|
19
|
+
--moduix-overlay: oklch(0.16 0.02 255 / 0.24);
|
|
20
|
+
--moduix-overlay-foreground: oklch(0.16 0.02 255 / 0.08);
|
|
21
|
+
--moduix-sidebar: oklch(0.972 0.007 255);
|
|
22
|
+
--moduix-sidebar-foreground: oklch(0.185 0.014 255);
|
|
23
|
+
--moduix-sidebar-primary: oklch(0.48 0.16 255);
|
|
24
|
+
--moduix-sidebar-primary-foreground: oklch(0.99 0.002 255);
|
|
25
|
+
--moduix-sidebar-accent: oklch(0.925 0.02 255);
|
|
26
|
+
--moduix-sidebar-accent-foreground: oklch(0.22 0.025 255);
|
|
27
|
+
--moduix-sidebar-border: oklch(0.88 0.015 255);
|
|
28
|
+
--moduix-sidebar-ring: oklch(0.56 0.14 255);
|
|
29
|
+
--moduix-radius: 0.45rem;
|
|
30
30
|
--moduix-spacing-1: 3px;
|
|
31
31
|
--moduix-spacing-2: 6px;
|
|
32
32
|
--moduix-spacing-3: 10px;
|
|
@@ -40,105 +40,39 @@
|
|
|
40
40
|
--moduix-size-md: 34px;
|
|
41
41
|
--moduix-size-lg: 38px;
|
|
42
42
|
--moduix-size-xl: 44px;
|
|
43
|
-
--moduix-shadow-sm: 0 1px 2px
|
|
44
|
-
--moduix-shadow-md: 0 3px 8px
|
|
45
|
-
--moduix-shadow-lg: 0 12px 24px
|
|
46
|
-
}
|
|
43
|
+
--moduix-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.08);
|
|
44
|
+
--moduix-shadow-md: 0 3px 8px rgb(15 23 42 / 0.1);
|
|
45
|
+
--moduix-shadow-lg: 0 12px 24px rgb(15 23 42 / 0.12);
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
[data-moduix-
|
|
50
|
-
|
|
51
|
-
--moduix-
|
|
52
|
-
--moduix-
|
|
53
|
-
--moduix-card
|
|
54
|
-
--moduix-
|
|
55
|
-
--moduix-popover
|
|
56
|
-
--moduix-
|
|
57
|
-
--moduix-primary
|
|
58
|
-
--moduix-
|
|
59
|
-
--moduix-secondary
|
|
60
|
-
--moduix-
|
|
61
|
-
--moduix-muted
|
|
62
|
-
--moduix-
|
|
63
|
-
--moduix-accent
|
|
64
|
-
--moduix-
|
|
65
|
-
--moduix-
|
|
66
|
-
--moduix-
|
|
67
|
-
--moduix-
|
|
68
|
-
--moduix-overlay
|
|
69
|
-
--moduix-
|
|
70
|
-
--moduix-sidebar
|
|
71
|
-
--moduix-sidebar-
|
|
72
|
-
--moduix-sidebar-primary
|
|
73
|
-
--moduix-sidebar-
|
|
74
|
-
--moduix-sidebar-accent
|
|
75
|
-
--moduix-sidebar-
|
|
76
|
-
--moduix-sidebar-
|
|
47
|
+
&[data-moduix-color-scheme='dark'],
|
|
48
|
+
[data-moduix-color-scheme='dark'] {
|
|
49
|
+
color-scheme: dark;
|
|
50
|
+
--moduix-background: oklch(0.16 0.014 255);
|
|
51
|
+
--moduix-foreground: oklch(0.97 0.003 255);
|
|
52
|
+
--moduix-card: oklch(0.205 0.016 255);
|
|
53
|
+
--moduix-card-foreground: oklch(0.97 0.003 255);
|
|
54
|
+
--moduix-popover: oklch(0.205 0.016 255);
|
|
55
|
+
--moduix-popover-foreground: oklch(0.97 0.003 255);
|
|
56
|
+
--moduix-primary: oklch(0.76 0.13 255);
|
|
57
|
+
--moduix-primary-foreground: oklch(0.17 0.018 255);
|
|
58
|
+
--moduix-secondary: oklch(0.255 0.018 255);
|
|
59
|
+
--moduix-secondary-foreground: oklch(0.97 0.003 255);
|
|
60
|
+
--moduix-muted: oklch(0.25 0.016 255);
|
|
61
|
+
--moduix-muted-foreground: oklch(0.71 0.018 255);
|
|
62
|
+
--moduix-accent: oklch(0.31 0.03 255);
|
|
63
|
+
--moduix-accent-foreground: oklch(0.97 0.003 255);
|
|
64
|
+
--moduix-border: oklch(0.72 0.02 255 / 0.25);
|
|
65
|
+
--moduix-input: oklch(0.76 0.02 255 / 0.32);
|
|
66
|
+
--moduix-ring: oklch(0.7 0.12 255);
|
|
67
|
+
--moduix-overlay: oklch(0.1 0.02 255 / 0.78);
|
|
68
|
+
--moduix-overlay-foreground: oklch(0.97 0.003 255 / 0.09);
|
|
69
|
+
--moduix-sidebar: oklch(0.19 0.016 255);
|
|
70
|
+
--moduix-sidebar-foreground: oklch(0.97 0.003 255);
|
|
71
|
+
--moduix-sidebar-primary: oklch(0.76 0.13 255);
|
|
72
|
+
--moduix-sidebar-primary-foreground: oklch(0.17 0.018 255);
|
|
73
|
+
--moduix-sidebar-accent: oklch(0.31 0.03 255);
|
|
74
|
+
--moduix-sidebar-accent-foreground: oklch(0.97 0.003 255);
|
|
75
|
+
--moduix-sidebar-border: oklch(0.72 0.02 255 / 0.25);
|
|
76
|
+
--moduix-sidebar-ring: oklch(0.7 0.12 255);
|
|
77
77
|
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
[data-moduix-theme="dense"][data-moduix-color-scheme="dark"], [data-moduix-theme="dense"] [data-moduix-color-scheme="dark"] {
|
|
81
|
-
--lightningcss-light: ;
|
|
82
|
-
--lightningcss-dark: initial;
|
|
83
|
-
color-scheme: dark;
|
|
84
|
-
--moduix-background: #090e13;
|
|
85
|
-
--moduix-foreground: #f4f5f7;
|
|
86
|
-
--moduix-card: #12181e;
|
|
87
|
-
--moduix-card-foreground: #f4f5f7;
|
|
88
|
-
--moduix-popover: #12181e;
|
|
89
|
-
--moduix-popover-foreground: #f4f5f7;
|
|
90
|
-
--moduix-primary: #79b4ff;
|
|
91
|
-
--moduix-primary-foreground: #0a1017;
|
|
92
|
-
--moduix-secondary: #1d232c;
|
|
93
|
-
--moduix-secondary-foreground: #f4f5f7;
|
|
94
|
-
--moduix-muted: #1d2229;
|
|
95
|
-
--moduix-muted-foreground: #9aa2ad;
|
|
96
|
-
--moduix-accent: #26313f;
|
|
97
|
-
--moduix-accent-foreground: #f4f5f7;
|
|
98
|
-
--moduix-border: #9ca5b140;
|
|
99
|
-
--moduix-input: #a9b2be52;
|
|
100
|
-
--moduix-ring: #69a1e8;
|
|
101
|
-
--moduix-overlay: #010309c7;
|
|
102
|
-
--moduix-overlay-foreground: #f4f5f717;
|
|
103
|
-
--moduix-sidebar: #0f141b;
|
|
104
|
-
--moduix-sidebar-foreground: #f4f5f7;
|
|
105
|
-
--moduix-sidebar-primary: #79b4ff;
|
|
106
|
-
--moduix-sidebar-primary-foreground: #0a1017;
|
|
107
|
-
--moduix-sidebar-accent: #26313f;
|
|
108
|
-
--moduix-sidebar-accent-foreground: #f4f5f7;
|
|
109
|
-
--moduix-sidebar-border: #9ca5b140;
|
|
110
|
-
--moduix-sidebar-ring: #69a1e8;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@supports (color: lab(0% 0 0)) {
|
|
114
|
-
[data-moduix-theme="dense"][data-moduix-color-scheme="dark"], [data-moduix-theme="dense"] [data-moduix-color-scheme="dark"] {
|
|
115
|
-
--moduix-background: lab(3.67223% -.469178 -3.45765);
|
|
116
|
-
--moduix-foreground: lab(96.5143% -.248939 -1.10372);
|
|
117
|
-
--moduix-card: lab(7.73262% -.928633 -5.71392);
|
|
118
|
-
--moduix-card-foreground: lab(96.5143% -.248939 -1.10372);
|
|
119
|
-
--moduix-popover: lab(7.73262% -.928633 -5.71392);
|
|
120
|
-
--moduix-popover-foreground: lab(96.5143% -.248939 -1.10372);
|
|
121
|
-
--moduix-primary: lab(71.5339% -3.73271 -45.4193);
|
|
122
|
-
--moduix-primary-foreground: lab(4.39388% -.60755 -5.13726);
|
|
123
|
-
--moduix-secondary: lab(13.5256% -1.12166 -6.44931);
|
|
124
|
-
--moduix-secondary-foreground: lab(96.5143% -.248939 -1.10372);
|
|
125
|
-
--moduix-muted: lab(12.9534% -1.03039 -5.7452);
|
|
126
|
-
--moduix-muted-foreground: lab(66.3191% -1.37413 -6.55738);
|
|
127
|
-
--moduix-accent: lab(19.8558% -1.61602 -10.664);
|
|
128
|
-
--moduix-accent-foreground: lab(96.5143% -.248939 -1.10372);
|
|
129
|
-
--moduix-border: lab(67.4738% -1.51214 -7.27868 / .25);
|
|
130
|
-
--moduix-input: lab(72.1142% -1.52099 -7.28307 / .32);
|
|
131
|
-
--moduix-ring: lab(64.6212% -3.42974 -41.9226);
|
|
132
|
-
--moduix-overlay: lab(.878456% -.0841022 -2.21904 / .78);
|
|
133
|
-
--moduix-overlay-foreground: lab(96.5143% -.248939 -1.10372 / .09);
|
|
134
|
-
--moduix-sidebar: lab(6.15187% -.770628 -5.42564);
|
|
135
|
-
--moduix-sidebar-foreground: lab(96.5143% -.248939 -1.10372);
|
|
136
|
-
--moduix-sidebar-primary: lab(71.5339% -3.73271 -45.4193);
|
|
137
|
-
--moduix-sidebar-primary-foreground: lab(4.39388% -.60755 -5.13726);
|
|
138
|
-
--moduix-sidebar-accent: lab(19.8558% -1.61602 -10.664);
|
|
139
|
-
--moduix-sidebar-accent-foreground: lab(96.5143% -.248939 -1.10372);
|
|
140
|
-
--moduix-sidebar-border: lab(67.4738% -1.51214 -7.27868 / .25);
|
|
141
|
-
--moduix-sidebar-ring: lab(64.6212% -3.42974 -41.9226);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
78
|
+
}
|