@rogieking/figui3 2.19.0 → 2.19.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/components.css +11 -8
- package/package.json +1 -1
package/components.css
CHANGED
|
@@ -306,9 +306,10 @@
|
|
|
306
306
|
--icon-swap: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.35355 6.35355C8.54882 6.15829 8.54882 5.84171 8.35355 5.64645C8.15829 5.45118 7.84171 5.45118 7.64645 5.64645L5.14645 8.14645C4.95118 8.34171 4.95118 8.65829 5.14645 8.85355L7.64645 11.3536C7.84171 11.5488 8.15829 11.5488 8.35355 11.3536C8.54882 11.1583 8.54882 10.8417 8.35355 10.6464L6.70711 9H18.5C18.7761 9 19 8.77614 19 8.5C19 8.22386 18.7761 8 18.5 8H6.70711L8.35355 6.35355ZM15.6464 13.3536C15.4512 13.1583 15.4512 12.8417 15.6464 12.6464C15.8417 12.4512 16.1583 12.4512 16.3536 12.6464L18.8536 15.1464C19.0488 15.3417 19.0488 15.6583 18.8536 15.8536L16.3536 18.3536C16.1583 18.5488 15.8417 18.5488 15.6464 18.3536C15.4512 18.1583 15.4512 17.8417 15.6464 17.6464L17.2929 16H5.5C5.22386 16 5 15.7761 5 15.5C5 15.2239 5.22386 15 5.5 15H17.2929L15.6464 13.3536Z' fill='currentColor'/%3E%3C/svg%3E");
|
|
307
307
|
|
|
308
308
|
/* Elevations - light theme defaults */
|
|
309
|
-
--elevation-500-modal-window:
|
|
310
|
-
|
|
311
|
-
|
|
309
|
+
--figma-elevation-500-modal-window:
|
|
310
|
+
0 0 0.5px 0 rgba(0, 0, 0, 0.08), 0 10px 24px 0 rgba(0, 0, 0, 0.18),
|
|
311
|
+
0 2px 5px 0 rgba(0, 0, 0, 0.15);
|
|
312
|
+
|
|
312
313
|
--figma-elevation-100:
|
|
313
314
|
0px 0px 0.5px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 0px rgba(0, 0, 0, 0.15);
|
|
314
315
|
--figma-elevation-200:
|
|
@@ -324,9 +325,10 @@
|
|
|
324
325
|
}
|
|
325
326
|
|
|
326
327
|
/* Dark theme overrides for non-color values (shadows, elevations) */
|
|
327
|
-
/*
|
|
328
|
+
/* light-dark() only works for colors, so these use class-based switching */
|
|
329
|
+
/* The @media block is a no-JS fallback — ignored when setTheme() sets classes */
|
|
328
330
|
@media (prefers-color-scheme: dark) {
|
|
329
|
-
:root {
|
|
331
|
+
:root:not(.figma-dark):not(.figma-light) {
|
|
330
332
|
--handle-shadow:
|
|
331
333
|
0px 0 0 0.75px rgba(0, 0, 0, 0.1),
|
|
332
334
|
0px 0px 0.5px 0px rgba(255, 255, 255, 0.1);
|
|
@@ -349,7 +351,7 @@
|
|
|
349
351
|
}
|
|
350
352
|
}
|
|
351
353
|
|
|
352
|
-
/* Class-based dark theme override (
|
|
354
|
+
/* Class-based dark theme override (primary mechanism via setTheme()) */
|
|
353
355
|
:root.figma-dark {
|
|
354
356
|
--handle-shadow:
|
|
355
357
|
0px 0 0 0.75px rgba(0, 0, 0, 0.1),
|
|
@@ -1444,13 +1446,14 @@ input[type="checkbox"]:not(.switch) {
|
|
|
1444
1446
|
}
|
|
1445
1447
|
}
|
|
1446
1448
|
/* Light theme checkbox hover (black checkmark preview) */
|
|
1449
|
+
/* @media is a no-JS fallback — ignored when setTheme() sets classes */
|
|
1447
1450
|
@media (prefers-color-scheme: light) {
|
|
1448
|
-
input[type="checkbox"]:not(.switch):not(:disabled):hover {
|
|
1451
|
+
:root:not(.figma-dark):not(.figma-light) input[type="checkbox"]:not(.switch):not(:disabled):hover {
|
|
1449
1452
|
background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.50012 7.5L7.50012 10.5L11.5001 4.5' stroke='black' opacity='0.25' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.125' /%3E%3C/svg%3E%0A");
|
|
1450
1453
|
}
|
|
1451
1454
|
}
|
|
1452
1455
|
|
|
1453
|
-
/* Class-based light theme override (
|
|
1456
|
+
/* Class-based light theme override (primary mechanism via setTheme()) */
|
|
1454
1457
|
:root.figma-light input[type="checkbox"]:not(.switch):not(:disabled):hover {
|
|
1455
1458
|
background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.50012 7.5L7.50012 10.5L11.5001 4.5' stroke='black' opacity='0.25' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.125' /%3E%3C/svg%3E%0A");
|
|
1456
1459
|
}
|
package/package.json
CHANGED