@rogieking/figui3 3.0.1 → 3.0.3

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
@@ -3400,16 +3400,10 @@ fig-joystick {
3400
3400
  box-shadow:
3401
3401
  inset 0 0 0 0.125rem var(--handle-color),
3402
3402
  0px 0 0 0.5px rgba(0, 0, 0, 0.1),
3403
- var(--figma-elevation-200);
3403
+ var(--elevation-100-canvas);
3404
3404
  border-radius: 50%;
3405
3405
  transform: translate(-50%, -50%);
3406
3406
  transition: box-shadow var(--slider-transition);
3407
- &:hover {
3408
- box-shadow:
3409
- inset 0 0 0 0.25rem var(--handle-color),
3410
- 0px 0 0 0.5px rgba(0, 0, 0, 0.1),
3411
- var(--figma-elevation-200);
3412
- }
3413
3407
  }
3414
3408
  }
3415
3409
 
@@ -3564,9 +3558,11 @@ fig-layer {
3564
3558
  display: none;
3565
3559
  }
3566
3560
 
3567
- /* Rotate chevron when open */
3568
- &[open]:not([open="false"]) > .fig-layer-row > .fig-layer-chevron {
3569
- rotate: 0deg;
3561
+ &[open]:not([open="false"]) {
3562
+ /* Rotate chevron when open */
3563
+ & > .fig-layer-row > .fig-layer-chevron {
3564
+ rotate: 0deg;
3565
+ }
3570
3566
  }
3571
3567
 
3572
3568
  /* Dimmed when not visible */
@@ -3578,6 +3574,10 @@ fig-layer {
3578
3574
 
3579
3575
  /* Selected state */
3580
3576
  &[selected]:not([selected="false"]) {
3577
+ /* Open with children */
3578
+ /*&:has(fig-layer) {
3579
+ background: var(--figma-color-bg-selected-secondary);
3580
+ }*/
3581
3581
  & > .fig-layer-row {
3582
3582
  background: var(--figma-color-bg-selected);
3583
3583
  & > .fig-layer-icon {
@@ -3700,14 +3700,10 @@ fig-fill-picker {
3700
3700
  box-shadow:
3701
3701
  inset 0 0 0 0.125rem var(--handle-color),
3702
3702
  0px 0 0 0.5px rgba(0, 0, 0, 0.1),
3703
- var(--figma-elevation-200);
3703
+ var(--elevation-100-canvas);
3704
3704
  transform: translate(-50%, -50%);
3705
3705
  z-index: 1;
3706
3706
  &:hover {
3707
- box-shadow:
3708
- inset 0 0 0 0.25rem var(--handle-color),
3709
- 0px 0 0 0.5px rgba(0, 0, 0, 0.1),
3710
- var(--figma-elevation-200);
3711
3707
  transform: translate(-50%, -50%);
3712
3708
  }
3713
3709
  }
@@ -0,0 +1,2 @@
1
+ @import url("base.css");
2
+ @import url("components.css");
@@ -0,0 +1 @@
1
+ var r="./fig-y6bay2cg.css";export{r as default};
package/dist/base.css ADDED
@@ -0,0 +1,99 @@
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
+ }