@rogieking/figui3 3.15.0 → 3.17.0
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 +725 -643
- package/components.css +92 -79
- package/dist/base.css +1 -99
- package/dist/components.css +1 -3978
- package/dist/fig.css +1 -2
- package/dist/fig.js +80 -78
- package/fig.js +381 -226
- package/package.json +14 -9
package/components.css
CHANGED
|
@@ -741,7 +741,6 @@ fig-button {
|
|
|
741
741
|
appearance: none;
|
|
742
742
|
border: 0;
|
|
743
743
|
min-width: 0;
|
|
744
|
-
color: var(--figma-color-text-onbrand);
|
|
745
744
|
outline: 0;
|
|
746
745
|
border-radius: var(--radius-medium);
|
|
747
746
|
background-color: var(--figma-color-bg-brand);
|
|
@@ -753,9 +752,6 @@ fig-button {
|
|
|
753
752
|
|
|
754
753
|
&:hover {
|
|
755
754
|
background-color: var(--figma-color-bg-brand-hover);
|
|
756
|
-
&:active {
|
|
757
|
-
background-color: var(--figma-color-bg-brand-pressed);
|
|
758
|
-
}
|
|
759
755
|
&:active {
|
|
760
756
|
background-color: var(--figma-color-bg-brand-pressed);
|
|
761
757
|
color: var(--figma-color-text-onbrand-secondary);
|
|
@@ -1020,7 +1016,6 @@ fig-tab,
|
|
|
1020
1016
|
&::after {
|
|
1021
1017
|
content: attr(label);
|
|
1022
1018
|
color: var(--figma-color-text-secondary);
|
|
1023
|
-
content: attr(label);
|
|
1024
1019
|
height: 0 !important;
|
|
1025
1020
|
width: auto !important;
|
|
1026
1021
|
visibility: hidden;
|
|
@@ -1159,7 +1154,6 @@ input[type="color"] {
|
|
|
1159
1154
|
&::-moz-color-swatch {
|
|
1160
1155
|
color-scheme: inherit;
|
|
1161
1156
|
border-radius: 0.125rem;
|
|
1162
|
-
color-scheme: inherit;
|
|
1163
1157
|
padding: 0;
|
|
1164
1158
|
border: 0;
|
|
1165
1159
|
appearance: none;
|
|
@@ -1169,7 +1163,6 @@ input[type="color"] {
|
|
|
1169
1163
|
black 50%,
|
|
1170
1164
|
rgba(0, 0, 0, var(--alpha)) 50%
|
|
1171
1165
|
);
|
|
1172
|
-
border-radius: 0.125rem;
|
|
1173
1166
|
box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
|
|
1174
1167
|
}
|
|
1175
1168
|
}
|
|
@@ -1224,18 +1217,16 @@ fig-chit {
|
|
|
1224
1217
|
--padding: 0px;
|
|
1225
1218
|
}
|
|
1226
1219
|
|
|
1227
|
-
&[disabled] {
|
|
1220
|
+
&[disabled]:not([disabled="false"]) {
|
|
1228
1221
|
pointer-events: none;
|
|
1229
1222
|
}
|
|
1230
1223
|
|
|
1231
1224
|
&::before,
|
|
1232
1225
|
&::after {
|
|
1233
1226
|
content: "";
|
|
1234
|
-
width: var(--width);
|
|
1235
|
-
height: var(--height);
|
|
1236
|
-
border-radius: calc(var(--border-radius) - (var(--padding) / 2));
|
|
1237
1227
|
width: calc(var(--width) - var(--padding) * 2);
|
|
1238
1228
|
height: calc(var(--height) - var(--padding) * 2);
|
|
1229
|
+
border-radius: calc(var(--border-radius) - (var(--padding) / 2));
|
|
1239
1230
|
grid-area: 1/1;
|
|
1240
1231
|
place-self: center;
|
|
1241
1232
|
pointer-events: none;
|
|
@@ -1268,7 +1259,6 @@ fig-chit {
|
|
|
1268
1259
|
background: none;
|
|
1269
1260
|
width: var(--width);
|
|
1270
1261
|
height: var(--height);
|
|
1271
|
-
background: none;
|
|
1272
1262
|
grid-area: 1/1;
|
|
1273
1263
|
place-self: center;
|
|
1274
1264
|
box-sizing: border-box;
|
|
@@ -1373,9 +1363,9 @@ fig-easing-curve {
|
|
|
1373
1363
|
--easing-bezier-handle-radius: 5;
|
|
1374
1364
|
--easing-spring-handle-radius: 5;
|
|
1375
1365
|
--easing-handle-fill: var(--figma-color-border-strong);
|
|
1376
|
-
--easing-duration-bar-width:
|
|
1366
|
+
--easing-duration-bar-width: 7;
|
|
1377
1367
|
--easing-duration-bar-height: 16;
|
|
1378
|
-
--easing-duration-bar-radius:
|
|
1368
|
+
--easing-duration-bar-radius: 4;
|
|
1379
1369
|
--aspect-ratio: 1 / 1;
|
|
1380
1370
|
|
|
1381
1371
|
width: 100%;
|
|
@@ -1438,17 +1428,6 @@ fig-easing-curve {
|
|
|
1438
1428
|
overflow: visible;
|
|
1439
1429
|
pointer-events: all;
|
|
1440
1430
|
cursor: default;
|
|
1441
|
-
|
|
1442
|
-
fig-handle {
|
|
1443
|
-
--width: calc(var(--easing-bezier-handle-radius) * 2px);
|
|
1444
|
-
--height: calc(var(--easing-bezier-handle-radius) * 2px);
|
|
1445
|
-
pointer-events: all;
|
|
1446
|
-
cursor: default;
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
&:active fig-handle {
|
|
1450
|
-
cursor: grabbing;
|
|
1451
|
-
}
|
|
1452
1431
|
}
|
|
1453
1432
|
.fig-easing-curve-endpoint {
|
|
1454
1433
|
fill: var(--easing-handle-fill);
|
|
@@ -1485,7 +1464,6 @@ fig-3d-rotate {
|
|
|
1485
1464
|
rgba(255, 255, 255, 0.1)
|
|
1486
1465
|
);
|
|
1487
1466
|
--border-end-color: transparent;
|
|
1488
|
-
--border-end-color: transparent;
|
|
1489
1467
|
--gradient-end-color: transparent;
|
|
1490
1468
|
--figma-3d-rotate-handle-size: 6px;
|
|
1491
1469
|
--front-face-bg: light-dark(var(--figma-color-bg), #555);
|
|
@@ -1897,7 +1875,6 @@ input[type="checkbox"].switch {
|
|
|
1897
1875
|
height: 1rem;
|
|
1898
1876
|
left: 0;
|
|
1899
1877
|
top: 0;
|
|
1900
|
-
margin: 0;
|
|
1901
1878
|
background: transparent;
|
|
1902
1879
|
appearance: none;
|
|
1903
1880
|
-moz-appearance: none;
|
|
@@ -3095,6 +3072,10 @@ fig-input-fill {
|
|
|
3095
3072
|
outline: 1px solid var(--figma-color-border-selected) !important;
|
|
3096
3073
|
outline-offset: -1px !important;
|
|
3097
3074
|
}
|
|
3075
|
+
&:hover {
|
|
3076
|
+
outline: 1px solid var(--figma-color-border);
|
|
3077
|
+
outline-offset: -1px !important;
|
|
3078
|
+
}
|
|
3098
3079
|
|
|
3099
3080
|
& > .input-combo > fig-chit:not(:only-child),
|
|
3100
3081
|
& > .input-combo > fig-chit:not(:only-child) input,
|
|
@@ -3179,11 +3160,10 @@ fig-input-gradient {
|
|
|
3179
3160
|
}
|
|
3180
3161
|
|
|
3181
3162
|
fig-input-palette {
|
|
3182
|
-
display: inline-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
width: 100%;
|
|
3163
|
+
display: inline-flex !important;
|
|
3164
|
+
flex-direction: column;
|
|
3165
|
+
gap: var(--spacer-2);
|
|
3166
|
+
min-width: 0;
|
|
3187
3167
|
|
|
3188
3168
|
.palette-colors {
|
|
3189
3169
|
display: flex;
|
|
@@ -3199,15 +3179,19 @@ fig-input-palette {
|
|
|
3199
3179
|
.palette-add-btn {
|
|
3200
3180
|
grid-area: button;
|
|
3201
3181
|
}
|
|
3182
|
+
.palette-colors-inline {
|
|
3183
|
+
display: inline-grid !important;
|
|
3184
|
+
grid-template-columns: 1fr 24px;
|
|
3185
|
+
grid-template-areas: "inputs button";
|
|
3186
|
+
border-radius: var(--radius-medium);
|
|
3187
|
+
background-color: var(--figma-color-bg-secondary);
|
|
3188
|
+
width: 100%;
|
|
3202
3189
|
|
|
3203
|
-
&:not([expanded]),
|
|
3204
|
-
&[expanded="false"] {
|
|
3205
3190
|
.palette-colors {
|
|
3206
3191
|
display: flex;
|
|
3207
3192
|
background-color: var(--figma-color-bg-secondary);
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
display: contents;
|
|
3193
|
+
fig-input-color {
|
|
3194
|
+
width: 100%;
|
|
3211
3195
|
}
|
|
3212
3196
|
|
|
3213
3197
|
fig-chit {
|
|
@@ -3228,27 +3212,37 @@ fig-input-palette {
|
|
|
3228
3212
|
}
|
|
3229
3213
|
}
|
|
3230
3214
|
}
|
|
3215
|
+
&[expanded]:not([expanded="false"]):not([edit="false"]) {
|
|
3216
|
+
.palette-colors-expanded {
|
|
3217
|
+
display: flex;
|
|
3218
|
+
}
|
|
3219
|
+
}
|
|
3220
|
+
&[add="false"] {
|
|
3221
|
+
.palette-colors-expanded,
|
|
3222
|
+
.palette-colors-inline {
|
|
3223
|
+
grid-template-areas: "inputs inputs";
|
|
3224
|
+
}
|
|
3225
|
+
}
|
|
3226
|
+
.palette-colors-expanded {
|
|
3227
|
+
display: none;
|
|
3228
|
+
flex-direction: column;
|
|
3229
|
+
overflow: visible;
|
|
3230
|
+
border-radius: 0;
|
|
3231
|
+
gap: var(--spacer-2);
|
|
3232
|
+
width: 100%;
|
|
3231
3233
|
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
overflow: visible;
|
|
3236
|
-
border-radius: 0;
|
|
3237
|
-
gap: var(--spacer-2);
|
|
3238
|
-
background-color: transparent;
|
|
3239
|
-
|
|
3240
|
-
> fig-input-color {
|
|
3241
|
-
min-width: 0;
|
|
3242
|
-
}
|
|
3234
|
+
> fig-input-color {
|
|
3235
|
+
min-width: 0;
|
|
3236
|
+
}
|
|
3243
3237
|
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
}
|
|
3238
|
+
fig-chit {
|
|
3239
|
+
--border-radius: var(--radius-medium);
|
|
3240
|
+
width: auto !important;
|
|
3241
|
+
height: var(--size);
|
|
3242
|
+
border-radius: var(--radius-medium) !important;
|
|
3250
3243
|
}
|
|
3251
3244
|
}
|
|
3245
|
+
|
|
3252
3246
|
}
|
|
3253
3247
|
|
|
3254
3248
|
fig-field[direction="horizontal"]:has(> fig-input-palette) {
|
|
@@ -3289,7 +3283,6 @@ fig-field,
|
|
|
3289
3283
|
}
|
|
3290
3284
|
|
|
3291
3285
|
& > [full] {
|
|
3292
|
-
flex: 1;
|
|
3293
3286
|
flex: 1 1 auto;
|
|
3294
3287
|
}
|
|
3295
3288
|
|
|
@@ -3550,7 +3543,6 @@ fig-segmented-control {
|
|
|
3550
3543
|
height: 1.5rem;
|
|
3551
3544
|
padding: 1px;
|
|
3552
3545
|
gap: 0;
|
|
3553
|
-
display: inline-flex;
|
|
3554
3546
|
align-items: stretch;
|
|
3555
3547
|
position: relative;
|
|
3556
3548
|
overflow: hidden;
|
|
@@ -3710,8 +3702,6 @@ fig-joystick {
|
|
|
3710
3702
|
place-items: center;
|
|
3711
3703
|
flex-shrink: 0;
|
|
3712
3704
|
flex-grow: 0;
|
|
3713
|
-
align-items: center;
|
|
3714
|
-
justify-content: center;
|
|
3715
3705
|
position: relative;
|
|
3716
3706
|
&:focus {
|
|
3717
3707
|
outline: 0;
|
|
@@ -3815,7 +3805,6 @@ fig-joystick {
|
|
|
3815
3805
|
&:before {
|
|
3816
3806
|
content: "";
|
|
3817
3807
|
position: absolute;
|
|
3818
|
-
height: 0;
|
|
3819
3808
|
border-left: 1px solid var(--figma-color-border);
|
|
3820
3809
|
height: calc(100% - 2px);
|
|
3821
3810
|
top: 1px;
|
|
@@ -3825,7 +3814,6 @@ fig-joystick {
|
|
|
3825
3814
|
&:after {
|
|
3826
3815
|
content: "";
|
|
3827
3816
|
position: absolute;
|
|
3828
|
-
height: 0;
|
|
3829
3817
|
border-top: 1px solid var(--figma-color-border);
|
|
3830
3818
|
width: calc(100% - 2px);
|
|
3831
3819
|
top: calc(50% - 0.5px);
|
|
@@ -4584,8 +4572,20 @@ fig-chooser {
|
|
|
4584
4572
|
display: flex;
|
|
4585
4573
|
flex-direction: column;
|
|
4586
4574
|
gap: 1px;
|
|
4587
|
-
overflow:
|
|
4575
|
+
overflow: visible auto;
|
|
4588
4576
|
scrollbar-width: none;
|
|
4577
|
+
scroll-snap-type: y mandatory;
|
|
4578
|
+
|
|
4579
|
+
> * {
|
|
4580
|
+
scroll-snap-align: start;
|
|
4581
|
+
}
|
|
4582
|
+
|
|
4583
|
+
&[padding="false"] {
|
|
4584
|
+
gap: var(--spacer-2);
|
|
4585
|
+
fig-choice {
|
|
4586
|
+
--fig-choice-padding: 0px;
|
|
4587
|
+
}
|
|
4588
|
+
}
|
|
4589
4589
|
|
|
4590
4590
|
&[overflow="scrollbar"] {
|
|
4591
4591
|
scrollbar-width: thin;
|
|
@@ -4753,12 +4753,15 @@ fig-chooser {
|
|
|
4753
4753
|
}
|
|
4754
4754
|
|
|
4755
4755
|
fig-choice {
|
|
4756
|
-
--fig-choice-selection-ring-width:
|
|
4756
|
+
--fig-choice-selection-ring-width: 1.25px;
|
|
4757
4757
|
--fig-choice-padding: var(--spacer-2);
|
|
4758
|
+
--fig-choice-border-radius: calc(
|
|
4759
|
+
var(--radius-medium) + var(--fig-choice-padding)
|
|
4760
|
+
);
|
|
4758
4761
|
display: flex;
|
|
4759
4762
|
align-items: center;
|
|
4760
4763
|
flex-direction: column;
|
|
4761
|
-
border-radius: var(--radius
|
|
4764
|
+
border-radius: var(--fig-choice-border-radius);
|
|
4762
4765
|
gap: var(--spacer-2);
|
|
4763
4766
|
outline: none;
|
|
4764
4767
|
border: 1px solid transparent;
|
|
@@ -4770,14 +4773,25 @@ fig-choice {
|
|
|
4770
4773
|
background-color: var(--figma-color-bg-secondary);
|
|
4771
4774
|
}
|
|
4772
4775
|
|
|
4776
|
+
&[padding="false"] {
|
|
4777
|
+
--fig-choice-padding: 0px;
|
|
4778
|
+
}
|
|
4779
|
+
|
|
4773
4780
|
&[selected] {
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4781
|
+
position: relative;
|
|
4782
|
+
&::after {
|
|
4783
|
+
content: "";
|
|
4784
|
+
position: absolute;
|
|
4785
|
+
inset: 0;
|
|
4786
|
+
border-radius: var(--fig-choice-border-radius);
|
|
4787
|
+
pointer-events: none;
|
|
4788
|
+
z-index: 1;
|
|
4789
|
+
box-shadow: inset 0 0 0 4px var(--figma-color-bg);
|
|
4777
4790
|
outline: var(--fig-choice-selection-ring-width) solid
|
|
4778
4791
|
var(--figma-color-border-selected);
|
|
4779
|
-
outline-offset:
|
|
4792
|
+
outline-offset: calc(var(--fig-choice-selection-ring-width) * -1);
|
|
4780
4793
|
}
|
|
4794
|
+
background-color: var(--figma-color-bg-secondary);
|
|
4781
4795
|
}
|
|
4782
4796
|
|
|
4783
4797
|
&[disabled]:not([disabled="false"]),
|
|
@@ -4793,14 +4807,14 @@ fig-handle {
|
|
|
4793
4807
|
--height: 0.875rem;
|
|
4794
4808
|
--fill: var(--figma-color-bg-brand);
|
|
4795
4809
|
--border-radius: 50%;
|
|
4796
|
-
--ring-width:
|
|
4797
|
-
--box-shadow:
|
|
4798
|
-
inset 0 0 0 var(--ring-width) var(--handle-color),
|
|
4799
|
-
0px 0 0 0.5px rgba(0, 0, 0, 0.1), var(--elevation-100-canvas);
|
|
4810
|
+
--ring-width: 0.125rem;
|
|
4811
|
+
--box-shadow: 0px 0 0 0.5px rgba(0, 0, 0, 0.1), var(--elevation-100-canvas);
|
|
4800
4812
|
--outline: none;
|
|
4801
4813
|
--border: none;
|
|
4802
4814
|
|
|
4803
|
-
display:
|
|
4815
|
+
display: grid;
|
|
4816
|
+
margin: 0;
|
|
4817
|
+
padding: 0;
|
|
4804
4818
|
place-items: center;
|
|
4805
4819
|
width: var(--width);
|
|
4806
4820
|
height: var(--height);
|
|
@@ -4813,8 +4827,8 @@ fig-handle {
|
|
|
4813
4827
|
&::before {
|
|
4814
4828
|
content: "";
|
|
4815
4829
|
color-scheme: light only;
|
|
4816
|
-
width: calc(var(--width) -
|
|
4817
|
-
height: calc(var(--height) -
|
|
4830
|
+
width: calc(var(--width) - var(--ring-width) * 2);
|
|
4831
|
+
height: calc(var(--height) - var(--ring-width) * 2);
|
|
4818
4832
|
background: var(--fill);
|
|
4819
4833
|
border-radius: var(--border-radius);
|
|
4820
4834
|
box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
|
|
@@ -4822,8 +4836,8 @@ fig-handle {
|
|
|
4822
4836
|
}
|
|
4823
4837
|
|
|
4824
4838
|
&[size="small"] {
|
|
4825
|
-
--width:
|
|
4826
|
-
--height:
|
|
4839
|
+
--width: 11px;
|
|
4840
|
+
--height: 11px;
|
|
4827
4841
|
}
|
|
4828
4842
|
|
|
4829
4843
|
&[drag]:not([drag="false"]) {
|
|
@@ -4832,14 +4846,13 @@ fig-handle {
|
|
|
4832
4846
|
}
|
|
4833
4847
|
&:hover,
|
|
4834
4848
|
&[selected]:not([selected="false"]) {
|
|
4835
|
-
outline:
|
|
4849
|
+
outline: 1px solid var(--figma-color-border-selected);
|
|
4836
4850
|
outline-offset: 0;
|
|
4837
4851
|
}
|
|
4838
4852
|
|
|
4839
4853
|
&[disabled]:not([disabled="false"]),
|
|
4840
4854
|
&[aria-disabled="true"] {
|
|
4841
4855
|
pointer-events: none;
|
|
4842
|
-
opacity: 0.4;
|
|
4843
4856
|
cursor: default;
|
|
4844
4857
|
}
|
|
4845
4858
|
|
|
@@ -4849,7 +4862,7 @@ fig-handle {
|
|
|
4849
4862
|
|
|
4850
4863
|
fig-color-tip {
|
|
4851
4864
|
position: absolute;
|
|
4852
|
-
bottom: calc(100% +
|
|
4865
|
+
bottom: calc(100% + 2px);
|
|
4853
4866
|
left: 50%;
|
|
4854
4867
|
transform: translateX(-50%);
|
|
4855
4868
|
z-index: 10;
|
package/dist/base.css
CHANGED
|
@@ -1,99 +1 @@
|
|
|
1
|
-
html {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 100%;
|
|
4
|
-
margin: 0;
|
|
5
|
-
padding: 0;
|
|
6
|
-
color: var(--figma-color-text);
|
|
7
|
-
-webkit-font-smoothing: antialiased;
|
|
8
|
-
-moz-osx-font-smoothing: grayscale;
|
|
9
|
-
font-family: var(--font-family);
|
|
10
|
-
font-size: 16px;
|
|
11
|
-
font-weight: var(--body-medium-fontWeight);
|
|
12
|
-
letter-spacing: var(--body-letter-spacing);
|
|
13
|
-
background-color: var(--figma-color-bg);
|
|
14
|
-
}
|
|
15
|
-
body {
|
|
16
|
-
font-size: var(--body-medium-fontSize);
|
|
17
|
-
letter-spacing: var(--body-letter-spacing);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
h1,
|
|
21
|
-
h2 {
|
|
22
|
-
font-weight: var(--body-large-strong-fontWeight);
|
|
23
|
-
font-size: var(--body-large-fontSize);
|
|
24
|
-
}
|
|
25
|
-
h3 {
|
|
26
|
-
font-weight: var(--body-medium-strong-fontWeight);
|
|
27
|
-
font-size: var(--body-medium-fontSize);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
hr {
|
|
31
|
-
height: 1px;
|
|
32
|
-
border: none;
|
|
33
|
-
background-color: var(--figma-color-border);
|
|
34
|
-
margin: var(--spacer-2) 0;
|
|
35
|
-
|
|
36
|
-
&[vertical] {
|
|
37
|
-
height: 100%;
|
|
38
|
-
width: 1px;
|
|
39
|
-
margin: 0 var(--spacer-2);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
*,
|
|
44
|
-
*:before,
|
|
45
|
-
*:after {
|
|
46
|
-
box-sizing: border-box;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
::selection {
|
|
50
|
-
background-color: var(--figma-color-text-selection);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
::-moz-selection {
|
|
54
|
-
background-color: var(--figma-color-text-selection);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* helper classes/defaults */
|
|
58
|
-
::-webkit-scrollbar {
|
|
59
|
-
width: var(--spacer-1);
|
|
60
|
-
/* Width of the vertical scrollbar */
|
|
61
|
-
height: var(--spacer-1);
|
|
62
|
-
/* Height of the horizontal scrollbar */
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
::-webkit-scrollbar-thumb {
|
|
66
|
-
background-color: var(--figma-color-bg-tertiary);
|
|
67
|
-
border-radius: calc(var(--spacer-1) / 2);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
::-webkit-scrollbar-thumb:hover {
|
|
71
|
-
background-color: var(--figma-color-bg-secondary);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/* For Firefox */
|
|
75
|
-
* {
|
|
76
|
-
scrollbar-width: thin;
|
|
77
|
-
scrollbar-color: var(--figma-color-bg-tertiary)
|
|
78
|
-
var(--figma-color-bg-secondary);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.subtle {
|
|
82
|
-
color: var(--figma-color-text-tertiary);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/* Defaults */
|
|
86
|
-
p {
|
|
87
|
-
margin: var(--spacer-2) 0;
|
|
88
|
-
line-height: 1rem;
|
|
89
|
-
color: var(--figma-color-text-secondary);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
label {
|
|
93
|
-
color: var(--figma-color-text-secondary);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
h2 {
|
|
97
|
-
font-weight: var(--body-medium-strong-fontWeight);
|
|
98
|
-
margin: var(--spacer-2) 0;
|
|
99
|
-
}
|
|
1
|
+
html,:host{width:100%;height:100%;color:var(--figma-color-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:var(--font-family);font-size:16px;font-weight:var(--body-medium-fontWeight);letter-spacing:var(--body-letter-spacing);background-color:var(--figma-color-bg);margin:0;padding:0}body,:host{font-size:var(--body-medium-fontSize);letter-spacing:var(--body-letter-spacing)}h1,h2{font-weight:var(--body-large-strong-fontWeight);font-size:var(--body-large-fontSize)}h3{font-weight:var(--body-medium-strong-fontWeight);font-size:var(--body-medium-fontSize)}hr{background-color:var(--figma-color-border);height:1px;margin:var(--spacer-2) 0;border:none;&[vertical]{width:1px;height:100%;margin:0 var(--spacer-2)}}*,:before,:after{box-sizing:border-box}::selection{background-color:var(--figma-color-text-selection)}::selection{background-color:var(--figma-color-text-selection)}::-webkit-scrollbar{width:var(--spacer-1);height:var(--spacer-1)}::-webkit-scrollbar-thumb{background-color:var(--figma-color-bg-tertiary);border-radius:calc(var(--spacer-1) / 2)}::-webkit-scrollbar-thumb:hover{background-color:var(--figma-color-bg-secondary)}*{scrollbar-width:thin;scrollbar-color:var(--figma-color-bg-tertiary) var(--figma-color-bg-secondary)}.subtle{color:var(--figma-color-text-tertiary)}p{margin:var(--spacer-2) 0;color:var(--figma-color-text-secondary);line-height:1rem}label{color:var(--figma-color-text-secondary)}h2{font-weight:var(--body-medium-strong-fontWeight);margin:var(--spacer-2) 0}
|