@rogieking/figui3 1.5.3 → 1.5.4

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 CHANGED
@@ -47,8 +47,11 @@ import "@rogieking/figui3/fig.js";
47
47
  Or include directly in your HTML:
48
48
 
49
49
  ```html
50
- <link rel="stylesheet" href="https://unpkg.com/fig-js@latest/dist/fig.css" />
51
- <script src="https://unpkg.com/fig-js@latest/dist/fig.js"></script>
50
+ <link
51
+ rel="stylesheet"
52
+ href="https://unpkg.com/@rogieking/figui3@latest/fig.css"
53
+ />
54
+ <script src="https://unpkg.com/@rogieking/figui3@latest/fig.js"></script>
52
55
  ```
53
56
 
54
57
  or
package/base.css ADDED
@@ -0,0 +1,86 @@
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
+ *,
31
+ *:before,
32
+ *:after {
33
+ box-sizing: border-box;
34
+ }
35
+
36
+ ::selection {
37
+ background-color: var(--figma-color-text-selection);
38
+ }
39
+
40
+ ::-moz-selection {
41
+ background-color: var(--figma-color-text-selection);
42
+ }
43
+
44
+ /* helper classes/defaults */
45
+ ::-webkit-scrollbar {
46
+ width: var(--spacer-1);
47
+ /* Width of the vertical scrollbar */
48
+ height: var(--spacer-1);
49
+ /* Height of the horizontal scrollbar */
50
+ }
51
+
52
+ ::-webkit-scrollbar-thumb {
53
+ background-color: var(--figma-color-bg-tertiary);
54
+ border-radius: calc(var(--spacer-1) / 2);
55
+ }
56
+
57
+ ::-webkit-scrollbar-thumb:hover {
58
+ background-color: var(--figma-color-bg-secondary);
59
+ }
60
+
61
+ /* For Firefox */
62
+ * {
63
+ scrollbar-width: thin;
64
+ scrollbar-color: var(--figma-color-bg-tertiary)
65
+ var(--figma-color-bg-secondary);
66
+ }
67
+
68
+ .subtle {
69
+ color: var(--figma-color-text-tertiary);
70
+ }
71
+
72
+ /* Defaults */
73
+ p {
74
+ margin: var(--spacer-2) 0;
75
+ line-height: 1rem;
76
+ color: var(--figma-color-text-secondary);
77
+ }
78
+
79
+ label {
80
+ color: var(--figma-color-text-secondary);
81
+ }
82
+
83
+ h2 {
84
+ font-weight: var(--body-medium-strong-fontWeight);
85
+ margin: var(--spacer-2) 0;
86
+ }