@rogieking/figui3 1.3.4 → 1.3.6
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/fig.css +19 -12
- package/package.json +1 -1
package/fig.css
CHANGED
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
--body-medium-strong-fontWeight: 550;
|
|
414
414
|
--body-large-strong-fontWeight: 500;
|
|
415
415
|
--body-medium-fontWeight: 450;
|
|
416
|
-
--handle-shadow: 0px 0 0 0.75px rgba(0, 0, 0, 0.
|
|
416
|
+
--handle-shadow: 0px 0 0 0.75px rgba(0, 0, 0, 0.05),
|
|
417
417
|
0px 1px 3px 0px rgba(0, 0, 0, 0.05), 0px 3px 8px 0px rgba(0, 0, 0, 0.05),
|
|
418
418
|
0px 0px 0.5px 0px rgba(0, 0, 0, 0.1), var(--figma-elevation-200);
|
|
419
419
|
|
|
@@ -1211,7 +1211,7 @@ input[type="checkbox"].switch {
|
|
|
1211
1211
|
align-items: center;
|
|
1212
1212
|
justify-content: center;
|
|
1213
1213
|
border-radius: 0.5rem;
|
|
1214
|
-
background-color: var(--figma-color-bg-
|
|
1214
|
+
background-color: var(--figma-color-bg-secondary);
|
|
1215
1215
|
transition: var(--input-transition);
|
|
1216
1216
|
box-sizing: border-box;
|
|
1217
1217
|
box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
|
|
@@ -1245,7 +1245,7 @@ input[type="checkbox"].switch:checked:after {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
|
|
1247
1247
|
input[type="checkbox"].switch:disabled {
|
|
1248
|
-
background-color: var(--figma-color-bg-
|
|
1248
|
+
background-color: var(--figma-color-bg-secondary);
|
|
1249
1249
|
cursor: not-allowed;
|
|
1250
1250
|
&:after {
|
|
1251
1251
|
background-color: var(--figma-color-bg);
|
|
@@ -1288,9 +1288,10 @@ input[type="checkbox"]:not(.switch) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
1290
1290
|
}
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1291
|
+
@media (prefers-color-scheme: light) {
|
|
1292
|
+
input[type="checkbox"]:not(.switch):hover {
|
|
1293
|
+
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");
|
|
1294
|
+
}
|
|
1294
1295
|
}
|
|
1295
1296
|
|
|
1296
1297
|
label.checkbox:has([type="checkbox"]) {
|
|
@@ -1335,6 +1336,7 @@ input[type="radio"] {
|
|
|
1335
1336
|
&::after {
|
|
1336
1337
|
transform: scale(1);
|
|
1337
1338
|
opacity: 0.25;
|
|
1339
|
+
background-color: var(--figma-color-icon);
|
|
1338
1340
|
}
|
|
1339
1341
|
}
|
|
1340
1342
|
|
|
@@ -1343,7 +1345,7 @@ input[type="radio"] {
|
|
|
1343
1345
|
width: 0.375rem;
|
|
1344
1346
|
height: 0.375rem;
|
|
1345
1347
|
border-radius: 100%;
|
|
1346
|
-
background-color: var(--figma-color-
|
|
1348
|
+
background-color: var(--figma-color-icon-onbrand);
|
|
1347
1349
|
transform: scale(0);
|
|
1348
1350
|
box-shadow: 0px 0 0 0.75px rgba(0, 0, 0, 0.1),
|
|
1349
1351
|
0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 3px 8px 0px rgba(0, 0, 0, 0.1),
|
|
@@ -1456,6 +1458,7 @@ fig-slider {
|
|
|
1456
1458
|
0px 0px 0.5px 0px rgba(0, 0, 0, 0.18),
|
|
1457
1459
|
0 0 0 1px var(--figma-color-border-selected);
|
|
1458
1460
|
--slider-transition: all 0.1s ease-in-out;
|
|
1461
|
+
--handle-transition: var(--slider-transition);
|
|
1459
1462
|
|
|
1460
1463
|
display: inline-flex;
|
|
1461
1464
|
align-items: center;
|
|
@@ -1533,7 +1536,7 @@ fig-slider {
|
|
|
1533
1536
|
position: absolute;
|
|
1534
1537
|
left: calc(var(--start-percent) - var(--slider-tick-size) / 2);
|
|
1535
1538
|
top: calc(50% - var(--slider-tick-size) / 2);
|
|
1536
|
-
background: var(--figma-color-icon-
|
|
1539
|
+
background: var(--figma-color-icon-onbrand);
|
|
1537
1540
|
}
|
|
1538
1541
|
}
|
|
1539
1542
|
}
|
|
@@ -1572,7 +1575,7 @@ fig-slider {
|
|
|
1572
1575
|
appearance: none;
|
|
1573
1576
|
background: transparent;
|
|
1574
1577
|
-webkit-appearance: none;
|
|
1575
|
-
transition: var(--
|
|
1578
|
+
transition: var(--handle-transition);
|
|
1576
1579
|
border-radius: 100%;
|
|
1577
1580
|
height: var(--slider-thumb-size);
|
|
1578
1581
|
width: var(--slider-thumb-size);
|
|
@@ -1655,7 +1658,7 @@ fig-slider {
|
|
|
1655
1658
|
cursor: grab;
|
|
1656
1659
|
cursor: -moz-grab;
|
|
1657
1660
|
box-shadow: var(--slider-handle-shadow);
|
|
1658
|
-
transition: var(--
|
|
1661
|
+
transition: var(--handle-transition);
|
|
1659
1662
|
}
|
|
1660
1663
|
|
|
1661
1664
|
&:disabled {
|
|
@@ -1734,6 +1737,8 @@ fig-slider {
|
|
|
1734
1737
|
--slider-height: 0.25rem;
|
|
1735
1738
|
--slider-thumb-size: 0.5rem;
|
|
1736
1739
|
--slider-tick-size: calc(var(--slider-height) / 2);
|
|
1740
|
+
--handle-transition: none;
|
|
1741
|
+
--slider-transition: none;
|
|
1737
1742
|
|
|
1738
1743
|
.fig-slider-input-container {
|
|
1739
1744
|
height: var(--slider-height);
|
|
@@ -1741,11 +1746,12 @@ fig-slider {
|
|
|
1741
1746
|
display: block;
|
|
1742
1747
|
width: 100%;
|
|
1743
1748
|
box-shadow: none;
|
|
1749
|
+
background: var(--figma-color-bg-tertiary);
|
|
1744
1750
|
|
|
1745
1751
|
/* Track */
|
|
1746
1752
|
&::before {
|
|
1747
1753
|
box-shadow: none;
|
|
1748
|
-
background: var(--figma-color-text-
|
|
1754
|
+
background: var(--figma-color-text-tertiary);
|
|
1749
1755
|
}
|
|
1750
1756
|
|
|
1751
1757
|
input[type="range"] {
|
|
@@ -1764,6 +1770,7 @@ fig-slider {
|
|
|
1764
1770
|
--slider-thumb-size: 1rem;
|
|
1765
1771
|
--slider-tick-size: calc(var(--slider-height) / 4);
|
|
1766
1772
|
.fig-slider-input-container {
|
|
1773
|
+
background: var(--figma-color-bg-secondary);
|
|
1767
1774
|
&::before {
|
|
1768
1775
|
box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
|
|
1769
1776
|
background: var(--figma-color-bg-brand);
|
|
@@ -2258,7 +2265,7 @@ fig-segmented-control {
|
|
|
2258
2265
|
&[selected="true"] {
|
|
2259
2266
|
background-color: var(--figma-color-bg);
|
|
2260
2267
|
border-radius: calc(var(--radius-medium) - 1px);
|
|
2261
|
-
box-shadow: var(--
|
|
2268
|
+
box-shadow: 0 0 0 1px var(--figma-color-border);
|
|
2262
2269
|
}
|
|
2263
2270
|
}
|
|
2264
2271
|
}
|