@noxickon/onyx 4.0.3 → 4.0.4
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/dist/animations.css +283 -0
- package/dist/styles.css +44 -0
- package/dist/theme.css +177 -0
- package/dist/utilities.css +46 -0
- package/package.json +4 -3
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
@layer utilities {
|
|
2
|
+
/* Base animation keyframes - combine fade, slide, zoom, and spin effects using CSS variables */
|
|
3
|
+
@keyframes enter {
|
|
4
|
+
from {
|
|
5
|
+
opacity: var(--tw-enter-opacity, 1);
|
|
6
|
+
transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0)
|
|
7
|
+
scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1))
|
|
8
|
+
rotate(var(--tw-enter-rotate, 0));
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@keyframes exit {
|
|
13
|
+
to {
|
|
14
|
+
opacity: var(--tw-exit-opacity, 1);
|
|
15
|
+
transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0)
|
|
16
|
+
scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1))
|
|
17
|
+
rotate(var(--tw-exit-rotate, 0));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@keyframes tooltip-blur-in {
|
|
22
|
+
from {
|
|
23
|
+
opacity: var(--tw-enter-opacity, 1);
|
|
24
|
+
backdrop-filter: blur(0px);
|
|
25
|
+
-webkit-backdrop-filter: blur(0px);
|
|
26
|
+
transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0);
|
|
27
|
+
}
|
|
28
|
+
to {
|
|
29
|
+
opacity: 1;
|
|
30
|
+
backdrop-filter: blur(24px);
|
|
31
|
+
-webkit-backdrop-filter: blur(24px);
|
|
32
|
+
transform: translate3d(0, 0, 0);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@keyframes tooltip-blur-out {
|
|
37
|
+
from {
|
|
38
|
+
opacity: 1;
|
|
39
|
+
backdrop-filter: blur(24px);
|
|
40
|
+
-webkit-backdrop-filter: blur(24px);
|
|
41
|
+
}
|
|
42
|
+
to {
|
|
43
|
+
opacity: var(--tw-exit-opacity, 1);
|
|
44
|
+
backdrop-filter: blur(0px);
|
|
45
|
+
-webkit-backdrop-filter: blur(0px);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Dropdown animations */
|
|
50
|
+
.ox-dropdown-animate[data-ox-state='open'][data-ox-side='right'],
|
|
51
|
+
.ox-hovercard-animate[data-ox-state='open'][data-ox-side='right'],
|
|
52
|
+
.ox-popover-animate[data-ox-state='open'][data-ox-side='right'] {
|
|
53
|
+
animation: enter 150ms ease-out;
|
|
54
|
+
transform-origin: left center;
|
|
55
|
+
--tw-enter-opacity: 0;
|
|
56
|
+
--tw-enter-translate-x: -0.5rem;
|
|
57
|
+
--tw-enter-scale: 0.95;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ox-tooltip-animate[data-ox-state='open'][data-ox-side='right'] {
|
|
61
|
+
animation: tooltip-blur-in 150ms ease-out;
|
|
62
|
+
--tw-enter-opacity: 0;
|
|
63
|
+
--tw-enter-translate-x: -0.5rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.ox-dropdown-animate[data-ox-state='open'][data-ox-side='left'],
|
|
67
|
+
.ox-hovercard-animate[data-ox-state='open'][data-ox-side='left'],
|
|
68
|
+
.ox-popover-animate[data-ox-state='open'][data-ox-side='left'] {
|
|
69
|
+
animation: enter 150ms ease-out;
|
|
70
|
+
transform-origin: right center;
|
|
71
|
+
--tw-enter-opacity: 0;
|
|
72
|
+
--tw-enter-translate-x: 0.5rem;
|
|
73
|
+
--tw-enter-scale: 0.95;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ox-tooltip-animate[data-ox-state='open'][data-ox-side='left'] {
|
|
77
|
+
animation: tooltip-blur-in 150ms ease-out;
|
|
78
|
+
--tw-enter-opacity: 0;
|
|
79
|
+
--tw-enter-translate-x: 0.5rem;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ox-dropdown-animate[data-ox-state='open'][data-ox-side='bottom'],
|
|
83
|
+
.ox-hovercard-animate[data-ox-state='open'][data-ox-side='bottom'],
|
|
84
|
+
.ox-popover-animate[data-ox-state='open'][data-ox-side='bottom'],
|
|
85
|
+
.ox-select-animate[data-ox-state='open'][data-ox-side='bottom'] {
|
|
86
|
+
animation: enter 150ms ease-out;
|
|
87
|
+
transform-origin: center top;
|
|
88
|
+
--tw-enter-opacity: 0;
|
|
89
|
+
--tw-enter-translate-y: -0.5rem;
|
|
90
|
+
--tw-enter-scale: 0.95;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ox-tooltip-animate[data-ox-state='open'][data-ox-side='bottom'] {
|
|
94
|
+
animation: tooltip-blur-in 150ms ease-out;
|
|
95
|
+
--tw-enter-opacity: 0;
|
|
96
|
+
--tw-enter-translate-y: -0.5rem;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.ox-dropdown-animate[data-ox-state='open'][data-ox-side='top'],
|
|
100
|
+
.ox-hovercard-animate[data-ox-state='open'][data-ox-side='top'],
|
|
101
|
+
.ox-popover-animate[data-ox-state='open'][data-ox-side='top'],
|
|
102
|
+
.ox-select-animate[data-ox-state='open'][data-ox-side='top'] {
|
|
103
|
+
animation: enter 150ms ease-out;
|
|
104
|
+
transform-origin: center bottom;
|
|
105
|
+
--tw-enter-opacity: 0;
|
|
106
|
+
--tw-enter-translate-y: 0.5rem;
|
|
107
|
+
--tw-enter-scale: 0.95;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.ox-tooltip-animate[data-ox-state='open'][data-ox-side='top'] {
|
|
111
|
+
animation: tooltip-blur-in 150ms ease-out;
|
|
112
|
+
--tw-enter-opacity: 0;
|
|
113
|
+
--tw-enter-translate-y: 0.5rem;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.ox-dropdown-animate[data-ox-state='closing'],
|
|
117
|
+
.ox-hovercard-animate[data-ox-state='closing'],
|
|
118
|
+
.ox-popover-animate[data-ox-state='closing'],
|
|
119
|
+
.ox-select-animate[data-ox-state='closing'] {
|
|
120
|
+
animation: exit 100ms ease-in forwards;
|
|
121
|
+
--tw-exit-opacity: 0;
|
|
122
|
+
--tw-exit-scale: 0.95;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.ox-tooltip-animate[data-ox-state='closing'] {
|
|
126
|
+
animation: tooltip-blur-out 100ms ease-in forwards;
|
|
127
|
+
--tw-exit-opacity: 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* Date input animations */
|
|
131
|
+
.ox-date-input-animate[data-ox-state='open'][data-ox-side='bottom'] {
|
|
132
|
+
animation: enter 250ms ease-out;
|
|
133
|
+
--tw-enter-opacity: 0;
|
|
134
|
+
--tw-enter-translate-y: -0.5rem;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.ox-date-input-animate[data-ox-state='open'][data-ox-side='top'] {
|
|
138
|
+
animation: enter 250ms ease-out;
|
|
139
|
+
--tw-enter-opacity: 0;
|
|
140
|
+
--tw-enter-translate-y: 0.5rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ox-date-input-animate[data-ox-state='closing'] {
|
|
144
|
+
animation: exit 200ms ease-in forwards;
|
|
145
|
+
--tw-exit-opacity: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Dialog animations */
|
|
149
|
+
.ox-dialog-animation[data-ox-state='open'] {
|
|
150
|
+
animation: enter 250ms ease-out;
|
|
151
|
+
--tw-enter-opacity: 0;
|
|
152
|
+
--tw-enter-scale: 0.95;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.ox-dialog-animation[data-ox-state='closing'] {
|
|
156
|
+
animation: exit 200ms ease-in forwards;
|
|
157
|
+
--tw-exit-opacity: 0;
|
|
158
|
+
--tw-exit-scale: 0.95;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Drawer animations */
|
|
162
|
+
.ox-drawer-animate[data-ox-state='open'][data-ox-side='left'] {
|
|
163
|
+
animation: enter 250ms ease-out;
|
|
164
|
+
--tw-enter-translate-x: -100%;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ox-drawer-animate[data-ox-state='closing'][data-ox-side='left'] {
|
|
168
|
+
animation: exit 250ms ease-in forwards;
|
|
169
|
+
--tw-exit-translate-x: -100%;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.ox-drawer-animate[data-ox-state='open'][data-ox-side='right'] {
|
|
173
|
+
animation: enter 250ms ease-out;
|
|
174
|
+
--tw-enter-translate-x: 100%;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.ox-drawer-animate[data-ox-state='closing'][data-ox-side='right'] {
|
|
178
|
+
animation: exit 250ms ease-in forwards;
|
|
179
|
+
--tw-exit-translate-x: 100%;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.ox-drawer-animate[data-ox-state='open'][data-ox-side='top'] {
|
|
183
|
+
animation: enter 250ms ease-out;
|
|
184
|
+
--tw-enter-translate-y: -100%;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.ox-drawer-animate[data-ox-state='closing'][data-ox-side='top'] {
|
|
188
|
+
animation: exit 250ms ease-in forwards;
|
|
189
|
+
--tw-exit-translate-y: -100%;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.ox-drawer-animate[data-ox-state='open'][data-ox-side='bottom'] {
|
|
193
|
+
animation: enter 250ms ease-out;
|
|
194
|
+
--tw-enter-translate-y: 100%;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.ox-drawer-animate[data-ox-state='closing'][data-ox-side='bottom'] {
|
|
198
|
+
animation: exit 250ms ease-in forwards;
|
|
199
|
+
--tw-exit-translate-y: 100%;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* Backdrop */
|
|
203
|
+
@keyframes backdrop-in {
|
|
204
|
+
from {
|
|
205
|
+
opacity: 0;
|
|
206
|
+
background-color: rgba(0, 0, 0, 0);
|
|
207
|
+
backdrop-filter: blur(0px);
|
|
208
|
+
-webkit-backdrop-filter: blur(0px);
|
|
209
|
+
}
|
|
210
|
+
to {
|
|
211
|
+
opacity: 1;
|
|
212
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
213
|
+
backdrop-filter: blur(6px);
|
|
214
|
+
-webkit-backdrop-filter: blur(6px);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@keyframes backdrop-out {
|
|
219
|
+
from {
|
|
220
|
+
opacity: 1;
|
|
221
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
222
|
+
backdrop-filter: blur(6px);
|
|
223
|
+
-webkit-backdrop-filter: blur(6px);
|
|
224
|
+
}
|
|
225
|
+
to {
|
|
226
|
+
opacity: 0;
|
|
227
|
+
background-color: rgba(0, 0, 0, 0);
|
|
228
|
+
backdrop-filter: blur(0px);
|
|
229
|
+
-webkit-backdrop-filter: blur(0px);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* Dialog backdrop */
|
|
234
|
+
.ox-dialog-backdrop::backdrop {
|
|
235
|
+
opacity: 1;
|
|
236
|
+
backdrop-filter: blur(6px);
|
|
237
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
238
|
+
-webkit-backdrop-filter: blur(6px);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.ox-dialog-backdrop[data-ox-state='open']::backdrop {
|
|
242
|
+
animation: backdrop-in 250ms ease-out;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.ox-dialog-backdrop[data-ox-state='closing']::backdrop {
|
|
246
|
+
animation: backdrop-out 200ms ease-in;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* Drawer backdrop */
|
|
250
|
+
.ox-drawer-backdrop {
|
|
251
|
+
opacity: 1;
|
|
252
|
+
backdrop-filter: blur(6px);
|
|
253
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
254
|
+
-webkit-backdrop-filter: blur(6px);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.ox-drawer-backdrop[data-ox-state='open'] {
|
|
258
|
+
animation: backdrop-in 250ms ease-out forwards;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.ox-drawer-backdrop[data-ox-state='closing'] {
|
|
262
|
+
animation: backdrop-out 250ms ease-in forwards;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/* Sidebar submenu collapse/expand animation */
|
|
266
|
+
.ox-sidebar-submenu {
|
|
267
|
+
grid-template-rows: 0fr;
|
|
268
|
+
opacity: 0;
|
|
269
|
+
transition:
|
|
270
|
+
grid-template-rows 200ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
271
|
+
opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.ox-sidebar-submenu[data-ox-state='open'] {
|
|
275
|
+
grid-template-rows: 1fr;
|
|
276
|
+
opacity: 1;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.ox-sidebar-submenu > * {
|
|
280
|
+
overflow: hidden;
|
|
281
|
+
min-width: 0;
|
|
282
|
+
}
|
|
283
|
+
}
|
package/dist/styles.css
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
|
|
3
|
+
@import './theme.css';
|
|
4
|
+
@import './utilities.css';
|
|
5
|
+
@import './animations.css';
|
|
6
|
+
|
|
7
|
+
@variant dark (html[data-theme='dark'] &);
|
|
8
|
+
|
|
9
|
+
@layer base {
|
|
10
|
+
* {
|
|
11
|
+
@apply border-border outline-ring/50;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
::selection {
|
|
15
|
+
@apply bg-selection text-selection-foreground;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
html {
|
|
19
|
+
@apply overscroll-y-none scroll-smooth;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
body {
|
|
23
|
+
font-synthesis-weight: none;
|
|
24
|
+
text-rendering: optimizeLegibility;
|
|
25
|
+
@apply overscroll-y-none text-gray-50;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Firefox: Remove number input spinners */
|
|
30
|
+
input[type='number'] {
|
|
31
|
+
-moz-appearance: textfield;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Chrome/Safari/Edge: Remove number input spinners */
|
|
35
|
+
input[type='number']::-webkit-inner-spin-button,
|
|
36
|
+
input[type='number']::-webkit-outer-spin-button {
|
|
37
|
+
-webkit-appearance: none;
|
|
38
|
+
margin: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Remove search cancel button */
|
|
42
|
+
input[type='search']::-webkit-search-cancel-button {
|
|
43
|
+
display: none;
|
|
44
|
+
}
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
--font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
|
|
3
|
+
--font-mono: 'JetBrains Mono', ui-monospace, monospace;
|
|
4
|
+
|
|
5
|
+
--container-8xl: 88rem;
|
|
6
|
+
--container-9xl: 96rem;
|
|
7
|
+
--container-10xl: 104rem;
|
|
8
|
+
--container-11xl: 112rem;
|
|
9
|
+
--container-12xl: 120rem;
|
|
10
|
+
--container-13xl: 128rem;
|
|
11
|
+
--container-14xl: 136rem;
|
|
12
|
+
--container-15xl: 144rem;
|
|
13
|
+
--container-16xl: 160rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@theme inline {
|
|
17
|
+
--color-background: var(--background);
|
|
18
|
+
--color-foreground: var(--foreground);
|
|
19
|
+
--color-card: var(--card);
|
|
20
|
+
--color-card-foreground: var(--card-foreground);
|
|
21
|
+
--color-popover: var(--popover);
|
|
22
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
23
|
+
--color-popover-stroke: var(--popover-stroke);
|
|
24
|
+
--color-primary: var(--primary);
|
|
25
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
26
|
+
--color-secondary: var(--secondary);
|
|
27
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
28
|
+
--color-muted: var(--muted);
|
|
29
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
30
|
+
--color-accent: var(--accent);
|
|
31
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
32
|
+
--color-neutral-accent: var(--neutral-accent);
|
|
33
|
+
--color-neutral-accent-foreground: var(--neutral-accent-foreground);
|
|
34
|
+
--color-destructive: var(--destructive);
|
|
35
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
36
|
+
--color-success: var(--success);
|
|
37
|
+
--color-success-foreground: var(--success-foreground);
|
|
38
|
+
--color-warning: var(--warning);
|
|
39
|
+
--color-warning-foreground: var(--warning-foreground);
|
|
40
|
+
--color-info: var(--info);
|
|
41
|
+
--color-info-foreground: var(--info-foreground);
|
|
42
|
+
--color-destructive-muted: var(--destructive-muted);
|
|
43
|
+
--color-success-muted: var(--success-muted);
|
|
44
|
+
--color-warning-muted: var(--warning-muted);
|
|
45
|
+
--color-info-muted: var(--info-muted);
|
|
46
|
+
--color-border: var(--border);
|
|
47
|
+
--color-input: var(--input);
|
|
48
|
+
--color-ring: var(--ring);
|
|
49
|
+
--color-sidebar: var(--sidebar);
|
|
50
|
+
--color-chart-1: var(--chart-1);
|
|
51
|
+
--color-chart-2: var(--chart-2);
|
|
52
|
+
--color-chart-3: var(--chart-3);
|
|
53
|
+
--color-chart-4: var(--chart-4);
|
|
54
|
+
--color-chart-5: var(--chart-5);
|
|
55
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
56
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
57
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
58
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
59
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
60
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
61
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
62
|
+
--color-surface: var(--surface);
|
|
63
|
+
--color-surface-foreground: var(--surface-foreground);
|
|
64
|
+
--color-code: var(--code);
|
|
65
|
+
--color-code-foreground: var(--code-foreground);
|
|
66
|
+
--color-code-highlight: var(--code-highlight);
|
|
67
|
+
--color-code-number: var(--code-number);
|
|
68
|
+
--color-selection: var(--selection);
|
|
69
|
+
--color-selection-foreground: var(--selection-foreground);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:root {
|
|
73
|
+
--background: oklch(1 0 0);
|
|
74
|
+
--foreground: oklch(0.145 0 0);
|
|
75
|
+
--card: oklch(1 0 0);
|
|
76
|
+
--card-foreground: oklch(0.145 0 0);
|
|
77
|
+
--popover: oklch(1 0 0);
|
|
78
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
79
|
+
--popover-stroke: var(--border);
|
|
80
|
+
--primary: var(--color-violet-600);
|
|
81
|
+
--primary-foreground: var(--color-violet-50);
|
|
82
|
+
--secondary: oklch(0.97 0 0);
|
|
83
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
84
|
+
--muted: oklch(0.97 0 0);
|
|
85
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
86
|
+
--accent: var(--color-fuchsia-300);
|
|
87
|
+
--accent-foreground: var(--color-fuchsia-50);
|
|
88
|
+
--neutral-accent: oklch(0.97 0 0);
|
|
89
|
+
--neutral-accent-foreground: oklch(0.205 0 0);
|
|
90
|
+
--destructive: oklch(0.534 0.212 25.99);
|
|
91
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
92
|
+
--success: oklch(0.688 0.167 155.97);
|
|
93
|
+
--success-foreground: oklch(0.985 0 0);
|
|
94
|
+
--warning: oklch(0.717 0.146 90.01);
|
|
95
|
+
--warning-foreground: oklch(0.145 0 0);
|
|
96
|
+
--info: oklch(0.625 0.205 255.69);
|
|
97
|
+
--info-foreground: oklch(0.985 0 0);
|
|
98
|
+
--destructive-muted: oklch(0.462 0.188 26.55);
|
|
99
|
+
--success-muted: oklch(0.58 0.131 160.24);
|
|
100
|
+
--warning-muted: oklch(0.603 0.124 94.51);
|
|
101
|
+
--info-muted: oklch(0.529 0.223 260.6);
|
|
102
|
+
--border: oklch(0.922 0 0);
|
|
103
|
+
--input: oklch(0.922 0 0);
|
|
104
|
+
--ring: var(--color-violet-400);
|
|
105
|
+
--chart-1: var(--color-violet-300);
|
|
106
|
+
--chart-2: var(--color-violet-500);
|
|
107
|
+
--chart-3: var(--color-violet-600);
|
|
108
|
+
--chart-4: var(--color-violet-700);
|
|
109
|
+
--chart-5: var(--color-violet-800);
|
|
110
|
+
--sidebar: oklch(0.985 0 0);
|
|
111
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
112
|
+
--sidebar-primary: var(--color-violet-600);
|
|
113
|
+
--sidebar-primary-foreground: var(--color-violet-50);
|
|
114
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
115
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
116
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
117
|
+
--sidebar-ring: var(--color-violet-400);
|
|
118
|
+
--surface: oklch(0.98 0 0);
|
|
119
|
+
--surface-foreground: oklch(0.145 0 0);
|
|
120
|
+
--code: var(--surface);
|
|
121
|
+
--code-foreground: var(--surface-foreground);
|
|
122
|
+
--code-highlight: oklch(0.96 0 0);
|
|
123
|
+
--code-number: oklch(0.56 0 0);
|
|
124
|
+
--selection: oklch(0.145 0 0);
|
|
125
|
+
--selection-foreground: oklch(1 0 0);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
html[data-theme='dark'] {
|
|
129
|
+
--background: oklch(0.145 0 0);
|
|
130
|
+
--foreground: oklch(0.985 0 0);
|
|
131
|
+
--card: oklch(0.205 0 0);
|
|
132
|
+
--card-foreground: oklch(0.985 0 0);
|
|
133
|
+
--popover: oklch(0.269 0 0);
|
|
134
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
135
|
+
--popover-stroke: oklch(1 0 0 / 17%);
|
|
136
|
+
--primary: var(--color-violet-600);
|
|
137
|
+
--primary-foreground: var(--color-violet-50);
|
|
138
|
+
--secondary: oklch(0.269 0 0);
|
|
139
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
140
|
+
--muted: oklch(0.269 0 0);
|
|
141
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
142
|
+
--accent: var(--color-fuchsia-300);
|
|
143
|
+
--accent-foreground: var(--color-fuchsia-50);
|
|
144
|
+
--neutral-accent: oklch(0.371 0 0);
|
|
145
|
+
--neutral-accent-foreground: oklch(0.985 0 0);
|
|
146
|
+
--destructive: oklch(0.611 0.201 23.37);
|
|
147
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
148
|
+
--success: oklch(0.8 0.182 151.71);
|
|
149
|
+
--success-foreground: oklch(0.145 0 0);
|
|
150
|
+
--warning: oklch(0.837 0.164 84.42);
|
|
151
|
+
--warning-foreground: oklch(0.145 0 0);
|
|
152
|
+
--info: oklch(0.714 0.143 254.62);
|
|
153
|
+
--info-foreground: oklch(0.145 0 0);
|
|
154
|
+
--destructive-muted: oklch(0.702 0.182 21.09);
|
|
155
|
+
--success-muted: oklch(0.829 0.201 155.9);
|
|
156
|
+
--warning-muted: oklch(0.872 0.156 88.33);
|
|
157
|
+
--info-muted: oklch(0.779 0.112 266.43);
|
|
158
|
+
--border: oklch(1 0 0 / 10%);
|
|
159
|
+
--input: oklch(1 0 0 / 15%);
|
|
160
|
+
--ring: var(--color-violet-600);
|
|
161
|
+
--sidebar: oklch(0.205 0 0);
|
|
162
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
163
|
+
--sidebar-primary: var(--color-violet-500);
|
|
164
|
+
--sidebar-primary-foreground: var(--color-violet-50);
|
|
165
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
166
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
167
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
168
|
+
--sidebar-ring: var(--color-violet-600);
|
|
169
|
+
--surface: oklch(0.2 0 0);
|
|
170
|
+
--surface-foreground: oklch(0.708 0 0);
|
|
171
|
+
--code: var(--surface);
|
|
172
|
+
--code-foreground: var(--surface-foreground);
|
|
173
|
+
--code-highlight: oklch(0.27 0 0);
|
|
174
|
+
--code-number: oklch(0.72 0 0);
|
|
175
|
+
--selection: oklch(0.922 0 0);
|
|
176
|
+
--selection-foreground: oklch(0.205 0 0);
|
|
177
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@utility ox-default-disabled {
|
|
2
|
+
opacity: 50%;
|
|
3
|
+
cursor: not-allowed;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@layer components {
|
|
7
|
+
.ox-focus-ring {
|
|
8
|
+
@apply outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ox-backdrop-blur-parent {
|
|
12
|
+
backdrop-filter: blur(0);
|
|
13
|
+
-webkit-backdrop-filter: blur(0);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
* {
|
|
17
|
+
scrollbar-width: thin;
|
|
18
|
+
scrollbar-color: color-mix(in oklab, var(--color-white) 25%, transparent) transparent;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
*::-webkit-scrollbar {
|
|
22
|
+
width: 12px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
*::-webkit-scrollbar-track {
|
|
26
|
+
background: transparent;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
*::-webkit-scrollbar-thumb {
|
|
30
|
+
background-color: color-mix(in oklab, var(--color-white) 25%, transparent);
|
|
31
|
+
border-radius: 6px;
|
|
32
|
+
border: 3px solid transparent;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
36
|
+
background-color: color-mix(in oklab, var(--color-white) 40%, transparent);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
input:-webkit-autofill,
|
|
41
|
+
input:-webkit-autofill:hover,
|
|
42
|
+
input:-webkit-autofill:focus,
|
|
43
|
+
input:-webkit-autofill:active {
|
|
44
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
45
|
+
-webkit-text-fill-color: white !important;
|
|
46
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noxickon/onyx",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/onyx.umd.js",
|
|
6
6
|
"module": "./dist/onyx.es.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
|
-
"style": "./dist/
|
|
8
|
+
"style": "./dist/styles.css",
|
|
9
9
|
"sideEffects": [
|
|
10
10
|
"*.css",
|
|
11
11
|
"**/*.css"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"types": "./dist/legacy/index.d.ts",
|
|
44
44
|
"import": "./dist/legacy/legacy.es.js"
|
|
45
45
|
},
|
|
46
|
-
"./styles": "./dist/
|
|
46
|
+
"./styles": "./dist/styles.css"
|
|
47
47
|
},
|
|
48
48
|
"files": [
|
|
49
49
|
"dist",
|
|
@@ -154,6 +154,7 @@
|
|
|
154
154
|
"vite": "^7.0.6",
|
|
155
155
|
"vite-plugin-dts": "^4.5.4",
|
|
156
156
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
157
|
+
"vite-plugin-static-copy": "^3.1.4",
|
|
157
158
|
"vitest": "^4.0.9"
|
|
158
159
|
},
|
|
159
160
|
"overrides": {
|