@rogieking/figui3 3.20.3 → 3.21.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 CHANGED
@@ -277,6 +277,11 @@
277
277
  rgba(255, 255, 255, 0.1) 0% 50%
278
278
  )
279
279
  0 0 / 0.66666rem 0.66666rem;
280
+ --checkerboard-small: repeating-conic-gradient(
281
+ rgba(0, 0, 0, 0.2) 0% 25%,
282
+ rgba(255, 255, 255, 0.2) 0% 50%
283
+ )
284
+ 0 0 / 0.5rem 0.5rem;
280
285
  --bg-hue: linear-gradient(
281
286
  90deg,
282
287
  rgba(255, 0, 0, 1),
@@ -1237,10 +1242,12 @@ fig-chit {
1237
1242
  }
1238
1243
  &::before {
1239
1244
  content: "";
1240
- background: var(--chit-background);
1241
- background-size: var(--chit-bg-size);
1245
+ background: var(--chit-background), var(--checkerboard-small);
1246
+ background-size:
1247
+ var(--chit-bg-size),
1248
+ 0.5rem 0.5rem;
1242
1249
  background-position: var(--chit-bg-position);
1243
- background-repeat: no-repeat;
1250
+ background-repeat: no-repeat, repeat;
1244
1251
  border-radius: calc(var(--border-radius) - (var(--padding) / 2));
1245
1252
  mask-image: linear-gradient(
1246
1253
  to right,
@@ -3146,6 +3153,7 @@ fig-input-fill {
3146
3153
  }
3147
3154
  fig-input-gradient {
3148
3155
  --height: 1.5rem;
3156
+ --chit-height: var(--height);
3149
3157
  position: relative;
3150
3158
  height: var(--height);
3151
3159
  width: 100%;
@@ -3157,12 +3165,34 @@ fig-input-gradient {
3157
3165
  outline: 1px solid var(--figma-color-border-selected) !important;
3158
3166
  outline-offset: -1px !important;
3159
3167
  }
3160
- & > fig-chit {
3168
+
3169
+ &[edit="false"] {
3170
+ pointer-events: none;
3171
+
3172
+ &:focus,
3173
+ &:active,
3174
+ &:focus-within {
3175
+ outline: none !important;
3176
+ }
3177
+ }
3178
+
3179
+ &[edit="picker"] {
3180
+ & > fig-fill-picker {
3181
+ display: contents;
3182
+ }
3183
+ }
3184
+ & > fig-chit,
3185
+ & > fig-fill-picker > fig-chit {
3161
3186
  --padding: 0;
3162
3187
  --width: 100%;
3188
+ --height: var(--chit-height);
3163
3189
  flex: 1 1 auto;
3164
3190
  width: 100% !important;
3165
3191
  min-width: 0 !important;
3192
+ min-height: var(--chit-height) !important;
3193
+ }
3194
+ &[size="large"] {
3195
+ --height: 3rem;
3166
3196
  }
3167
3197
 
3168
3198
  .fig-input-gradient-track {
@@ -3194,7 +3224,7 @@ fig-input-palette {
3194
3224
  display: flex;
3195
3225
  flex-wrap: nowrap;
3196
3226
  gap: 0;
3197
- border-radius: var(--radius-medium);
3227
+ border-radius: var(--radius-small);
3198
3228
  overflow: hidden;
3199
3229
  grid-area: inputs;
3200
3230
  min-width: 0;
@@ -3211,9 +3241,15 @@ fig-input-palette {
3211
3241
  border-radius: var(--radius-medium);
3212
3242
  background-color: var(--figma-color-bg-secondary);
3213
3243
  width: 100%;
3244
+ gap: var(--spacer-1);
3245
+ place-items: center;
3214
3246
 
3215
3247
  .palette-colors {
3216
3248
  display: flex;
3249
+ --palette-colors-height: calc(1.5rem - var(--spacer-1));
3250
+ height: var(--palette-colors-height);
3251
+ margin-left: var(--spacer-1);
3252
+
3217
3253
  background-color: var(--figma-color-bg-secondary);
3218
3254
  fig-input-color {
3219
3255
  width: 100%;
@@ -3223,10 +3259,11 @@ fig-input-palette {
3223
3259
  --padding: 0px;
3224
3260
  --border-radius: 0px;
3225
3261
  --width: 100%;
3262
+ --height: var(--palette-colors-height);
3263
+ --size: var(--palette-colors-height);
3226
3264
  flex: 1;
3227
3265
  min-width: 0;
3228
3266
  width: 100% !important;
3229
- height: var(--size);
3230
3267
  border-radius: 0 !important;
3231
3268
  input,
3232
3269
  &::before,
@@ -3248,6 +3285,11 @@ fig-input-palette {
3248
3285
  grid-template-areas: "inputs inputs";
3249
3286
  }
3250
3287
  }
3288
+ &[color-strip="false"] {
3289
+ .palette-colors-inline {
3290
+ display: none !important;
3291
+ }
3292
+ }
3251
3293
  .palette-colors-expanded {
3252
3294
  display: none;
3253
3295
  flex-direction: column;
@@ -4375,17 +4417,13 @@ fig-preview {
4375
4417
  }
4376
4418
  }
4377
4419
 
4378
- .fig-fill-picker-gradient-bar {
4379
- background: linear-gradient(90deg, #d9d9d9 0%, #737373 100%);
4380
- }
4381
-
4382
- .fig-fill-picker-gradient-stops-handles {
4383
- position: absolute;
4384
- top: 0;
4385
- left: 0;
4386
- right: 0;
4387
- bottom: 0;
4388
- pointer-events: none;
4420
+ .fig-fill-picker-gradient-preview {
4421
+ display: block;
4422
+ .fig-fill-picker-gradient-bar-input {
4423
+ --width: 100%;
4424
+ --height: 100%;
4425
+ aspect-ratio: 1/1;
4426
+ }
4389
4427
  }
4390
4428
 
4391
4429
  .fig-fill-picker-gradient-stops {
@@ -4866,7 +4904,8 @@ fig-handle {
4866
4904
  color-scheme: light only;
4867
4905
  width: calc(var(--width) - var(--ring-width) * 2);
4868
4906
  height: calc(var(--height) - var(--ring-width) * 2);
4869
- background: var(--fill);
4907
+ background:
4908
+ linear-gradient(var(--fill), var(--fill)), var(--checkerboard-small);
4870
4909
  border-radius: var(--border-radius);
4871
4910
  box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
4872
4911
  place-self: center;