figma-kit 1.0.0-beta.7 → 1.0.0-beta.9
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 +16 -5
- package/dist/figma-development-theme.css +1 -2
- package/dist/styles.css +22 -22
- package/dist/tailwind.preset.js +205 -173
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<a href="https://storybook.figma-kit.dev" target="_blank">
|
|
3
|
-
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="media/github-banner-dark.png">
|
|
5
|
+
<source media="(prefers-color-scheme: light)" srcset="media/github-banner-light.png">
|
|
6
|
+
<img src="media/github-banner-light.png" width="400" height="243" alt="Figma kit logo" />
|
|
7
|
+
</picture>
|
|
4
8
|
</a>
|
|
5
9
|
<h3>A set of React components for building Figma plugins.</h3>
|
|
6
10
|
</div>
|
|
7
11
|
|
|
12
|
+
> [!NOTE]
|
|
13
|
+
> Figma Kit is currently in beta. There may be breaking changes before the final release.
|
|
14
|
+
|
|
8
15
|
### Overview
|
|
9
16
|
|
|
10
|
-
Figma Kit is
|
|
11
|
-
|
|
12
|
-
|
|
17
|
+
Figma Kit is an extensive set of React components that attempts to replicate Figma's user interface look & feel with near-100% feature parity.
|
|
18
|
+
|
|
19
|
+
#### Features
|
|
20
|
+
|
|
21
|
+
* UI3 Ready
|
|
22
|
+
* Automatic dark mode
|
|
23
|
+
* First-class Tailwind support with a preset
|
|
13
24
|
|
|
14
25
|
### Documentation
|
|
15
26
|
|
|
16
|
-
The documentation for the library is on its way. Meanwhile, feel free to check out the [Storybook](https://storybook.figma-kit.dev) for available components and functionality.
|
|
27
|
+
The documentation for the library is on its way. Meanwhile, feel free to check out the [Storybook](https://storybook.figma-kit.dev) for basic guides, information about available components and functionality.
|
package/dist/styles.css
CHANGED
|
@@ -5,28 +5,28 @@
|
|
|
5
5
|
--font-family-monospace: 'Roboto Mono', monospace;
|
|
6
6
|
}
|
|
7
7
|
:root {
|
|
8
|
-
--space-0:
|
|
9
|
-
--space-px:
|
|
10
|
-
--space-0_5:
|
|
11
|
-
--space-1:
|
|
12
|
-
--space-1_5:
|
|
13
|
-
--space-2:
|
|
14
|
-
--space-2_5:
|
|
15
|
-
--space-3:
|
|
16
|
-
--space-3_5:
|
|
17
|
-
--space-4:
|
|
18
|
-
--space-5:
|
|
19
|
-
--space-6:
|
|
20
|
-
--space-7:
|
|
21
|
-
--space-8:
|
|
22
|
-
--space-9:
|
|
23
|
-
--space-10:
|
|
24
|
-
--space-11:
|
|
25
|
-
--space-12:
|
|
26
|
-
--space-13:
|
|
27
|
-
--space-14:
|
|
28
|
-
--space-15:
|
|
29
|
-
--space-16:
|
|
8
|
+
--space-0: 0rem;
|
|
9
|
+
--space-px: 0.0625rem;
|
|
10
|
+
--space-0_5: 0.125rem;
|
|
11
|
+
--space-1: 0.25rem;
|
|
12
|
+
--space-1_5: 0.375rem;
|
|
13
|
+
--space-2: 0.5rem;
|
|
14
|
+
--space-2_5: 0.625rem;
|
|
15
|
+
--space-3: 0.75rem;
|
|
16
|
+
--space-3_5: 0.875rem;
|
|
17
|
+
--space-4: 1rem;
|
|
18
|
+
--space-5: 1.25rem;
|
|
19
|
+
--space-6: 1.5rem;
|
|
20
|
+
--space-7: 1.75rem;
|
|
21
|
+
--space-8: 2rem;
|
|
22
|
+
--space-9: 2.25rem;
|
|
23
|
+
--space-10: 2.5rem;
|
|
24
|
+
--space-11: 2.75rem;
|
|
25
|
+
--space-12: 3rem;
|
|
26
|
+
--space-13: 3.25rem;
|
|
27
|
+
--space-14: 3.5rem;
|
|
28
|
+
--space-15: 3.75rem;
|
|
29
|
+
--space-16: 4rem;
|
|
30
30
|
}
|
|
31
31
|
:root {
|
|
32
32
|
--radius-extra-small: 0.0625rem;
|
package/dist/tailwind.preset.js
CHANGED
|
@@ -4,179 +4,186 @@ export default {
|
|
|
4
4
|
current: 'currentColor',
|
|
5
5
|
inherit: 'inherit',
|
|
6
6
|
transparent: 'transparent',
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
7
|
+
bg: {
|
|
8
|
+
DEFAULT: 'var(--figma-color-bg)',
|
|
9
|
+
brand: 'var(--figma-color-bg-brand)',
|
|
10
|
+
'brand-hover': 'var(--figma-color-bg-brand-hover)',
|
|
11
|
+
'brand-pressed': 'var(--figma-color-bg-brand-pressed)',
|
|
12
|
+
'brand-secondary': 'var(--figma-color-bg-brand-secondary)',
|
|
13
|
+
'brand-tertiary': 'var(--figma-color-bg-brand-tertiary)',
|
|
14
|
+
component: 'var(--figma-color-bg-component)',
|
|
15
|
+
'component-hover': 'var(--figma-color-bg-component-hover)',
|
|
16
|
+
'component-pressed': 'var(--figma-color-bg-component-pressed)',
|
|
17
|
+
'component-secondary': 'var(--figma-color-bg-component-secondary)',
|
|
18
|
+
'component-tertiary': 'var(--figma-color-bg-component-tertiary)',
|
|
19
|
+
danger: 'var(--figma-color-bg-danger)',
|
|
20
|
+
'danger-hover': 'var(--figma-color-bg-danger-hover)',
|
|
21
|
+
'danger-pressed': 'var(--figma-color-bg-danger-pressed)',
|
|
22
|
+
'danger-secondary': 'var(--figma-color-bg-danger-secondary)',
|
|
23
|
+
'danger-tertiary': 'var(--figma-color-bg-danger-tertiary)',
|
|
24
|
+
disabled: 'var(--figma-color-bg-disabled)',
|
|
25
|
+
'disabled-secondary': 'var(--figma-color-bg-disabled-secondary)',
|
|
26
|
+
hover: 'var(--figma-color-bg-hover)',
|
|
27
|
+
inverse: 'var(--figma-color-bg-inverse)',
|
|
28
|
+
onselected: 'var(--figma-color-bg-onselected)',
|
|
29
|
+
'onselected-hover': 'var(--figma-color-bg-onselected-hover)',
|
|
30
|
+
'onselected-pressed': 'var(--figma-color-bg-onselected-pressed)',
|
|
31
|
+
pressed: 'var(--figma-color-bg-pressed)',
|
|
32
|
+
secondary: 'var(--figma-color-bg-secondary)',
|
|
33
|
+
selected: 'var(--figma-color-bg-selected)',
|
|
34
|
+
'selected-hover': 'var(--figma-color-bg-selected-hover)',
|
|
35
|
+
'selected-pressed': 'var(--figma-color-bg-selected-pressed)',
|
|
36
|
+
'selected-secondary': 'var(--figma-color-bg-selected-secondary)',
|
|
37
|
+
'selected-strong': 'var(--figma-color-bg-selected-strong)',
|
|
38
|
+
'selected-tertiary': 'var(--figma-color-bg-selected-tertiary)',
|
|
39
|
+
success: 'var(--figma-color-bg-success)',
|
|
40
|
+
'success-hover': 'var(--figma-color-bg-success-hover)',
|
|
41
|
+
'success-pressed': 'var(--figma-color-bg-success-pressed)',
|
|
42
|
+
'success-secondary': 'var(--figma-color-bg-success-secondary)',
|
|
43
|
+
'success-tertiary': 'var(--figma-color-bg-success-tertiary)',
|
|
44
|
+
tertiary: 'var(--figma-color-bg-tertiary)',
|
|
45
|
+
warning: 'var(--figma-color-bg-warning)',
|
|
46
|
+
'warning-hover': 'var(--figma-color-bg-warning-hover)',
|
|
47
|
+
'warning-pressed': 'var(--figma-color-bg-warning-pressed)',
|
|
48
|
+
'warning-secondary': 'var(--figma-color-bg-warning-secondary)',
|
|
49
|
+
'warning-tertiary': 'var(--figma-color-bg-warning-tertiary)',
|
|
50
|
+
},
|
|
51
|
+
border: {
|
|
52
|
+
DEFAULT: 'var(--figma-color-border)',
|
|
53
|
+
brand: 'var(--figma-color-border-brand)',
|
|
54
|
+
'brand-strong': 'var(--figma-color-border-brand-strong)',
|
|
55
|
+
component: 'var(--figma-color-border-component)',
|
|
56
|
+
'component-hover': 'var(--figma-color-border-component-hover)',
|
|
57
|
+
'component-strong': 'var(--figma-color-border-component-strong)',
|
|
58
|
+
danger: 'var(--figma-color-border-danger)',
|
|
59
|
+
'danger-strong': 'var(--figma-color-border-danger-strong)',
|
|
60
|
+
disabled: 'var(--figma-color-border-disabled)',
|
|
61
|
+
'disabled-strong': 'var(--figma-color-border-disabled-strong)',
|
|
62
|
+
onbrand: 'var(--figma-color-border-onbrand)',
|
|
63
|
+
'onbrand-strong': 'var(--figma-color-border-onbrand-strong)',
|
|
64
|
+
oncomponent: 'var(--figma-color-border-oncomponent)',
|
|
65
|
+
'oncomponent-strong': 'var(--figma-color-border-oncomponent-strong)',
|
|
66
|
+
ondanger: 'var(--figma-color-border-ondanger)',
|
|
67
|
+
'ondanger-strong': 'var(--figma-color-border-ondanger-strong)',
|
|
68
|
+
onselected: 'var(--figma-color-border-onselected)',
|
|
69
|
+
'onselected-strong': 'var(--figma-color-border-onselected-strong)',
|
|
70
|
+
onsuccess: 'var(--figma-color-border-onsuccess)',
|
|
71
|
+
'onsuccess-strong': 'var(--figma-color-border-onsuccess-strong)',
|
|
72
|
+
onwarning: 'var(--figma-color-border-onwarning)',
|
|
73
|
+
'onwarning-strong': 'var(--figma-color-border-onwarning-strong)',
|
|
74
|
+
selected: 'var(--figma-color-border-selected)',
|
|
75
|
+
'selected-strong': 'var(--figma-color-border-selected-strong)',
|
|
76
|
+
strong: 'var(--figma-color-border-strong)',
|
|
77
|
+
success: 'var(--figma-color-border-success)',
|
|
78
|
+
'success-strong': 'var(--figma-color-border-success-strong)',
|
|
79
|
+
warning: 'var(--figma-color-border-warning)',
|
|
80
|
+
'warning-strong': 'var(--figma-color-border-warning-strong)',
|
|
81
|
+
},
|
|
82
|
+
icon: {
|
|
83
|
+
DEFAULT: 'var(--figma-color-icon)',
|
|
84
|
+
brand: 'var(--figma-color-icon-brand)',
|
|
85
|
+
'brand-pressed': 'var(--figma-color-icon-brand-pressed)',
|
|
86
|
+
'brand-secondary': 'var(--figma-color-icon-brand-secondary)',
|
|
87
|
+
'brand-tertiary': 'var(--figma-color-icon-brand-tertiary)',
|
|
88
|
+
component: 'var(--figma-color-icon-component)',
|
|
89
|
+
'component-pressed': 'var(--figma-color-icon-component-pressed)',
|
|
90
|
+
'component-secondary': 'var(--figma-color-icon-component-secondary)',
|
|
91
|
+
'component-tertiary': 'var(--figma-color-icon-component-tertiary)',
|
|
92
|
+
danger: 'var(--figma-color-icon-danger)',
|
|
93
|
+
'danger-hover': 'var(--figma-color-icon-danger-hover)',
|
|
94
|
+
'danger-pressed': 'var(--figma-color-icon-danger-pressed)',
|
|
95
|
+
'danger-secondary': 'var(--figma-color-icon-danger-secondary)',
|
|
96
|
+
'danger-secondary-hover': 'var(--figma-color-icon-danger-secondary-hover)',
|
|
97
|
+
'danger-tertiary': 'var(--figma-color-icon-danger-tertiary)',
|
|
98
|
+
disabled: 'var(--figma-color-icon-disabled)',
|
|
99
|
+
hover: 'var(--figma-color-icon-hover)',
|
|
100
|
+
onbrand: 'var(--figma-color-icon-onbrand)',
|
|
101
|
+
'onbrand-secondary': 'var(--figma-color-icon-onbrand-secondary)',
|
|
102
|
+
'onbrand-tertiary': 'var(--figma-color-icon-onbrand-tertiary)',
|
|
103
|
+
oncomponent: 'var(--figma-color-icon-oncomponent)',
|
|
104
|
+
'oncomponent-secondary': 'var(--figma-color-icon-oncomponent-secondary)',
|
|
105
|
+
'oncomponent-tertiary': 'var(--figma-color-icon-oncomponent-tertiary)',
|
|
106
|
+
ondanger: 'var(--figma-color-icon-ondanger)',
|
|
107
|
+
'ondanger-secondary': 'var(--figma-color-icon-ondanger-secondary)',
|
|
108
|
+
'ondanger-tertiary': 'var(--figma-color-icon-ondanger-tertiary)',
|
|
109
|
+
ondisabled: 'var(--figma-color-icon-ondisabled)',
|
|
110
|
+
oninverse: 'var(--figma-color-icon-oninverse)',
|
|
111
|
+
onselected: 'var(--figma-color-icon-onselected)',
|
|
112
|
+
'onselected-secondary': 'var(--figma-color-icon-onselected-secondary)',
|
|
113
|
+
'onselected-strong': 'var(--figma-color-icon-onselected-strong)',
|
|
114
|
+
'onselected-tertiary': 'var(--figma-color-icon-onselected-tertiary)',
|
|
115
|
+
onsuccess: 'var(--figma-color-icon-onsuccess)',
|
|
116
|
+
'onsuccess-secondary': 'var(--figma-color-icon-onsuccess-secondary)',
|
|
117
|
+
'onsuccess-tertiary': 'var(--figma-color-icon-onsuccess-tertiary)',
|
|
118
|
+
onwarning: 'var(--figma-color-icon-onwarning)',
|
|
119
|
+
'onwarning-secondary': 'var(--figma-color-icon-onwarning-secondary)',
|
|
120
|
+
'onwarning-tertiary': 'var(--figma-color-icon-onwarning-tertiary)',
|
|
121
|
+
pressed: 'var(--figma-color-icon-pressed)',
|
|
122
|
+
secondary: 'var(--figma-color-icon-secondary)',
|
|
123
|
+
'secondary-hover': 'var(--figma-color-icon-secondary-hover)',
|
|
124
|
+
selected: 'var(--figma-color-icon-selected)',
|
|
125
|
+
'selected-secondary': 'var(--figma-color-icon-selected-secondary)',
|
|
126
|
+
'selected-tertiary': 'var(--figma-color-icon-selected-tertiary)',
|
|
127
|
+
success: 'var(--figma-color-icon-success)',
|
|
128
|
+
'success-pressed': 'var(--figma-color-icon-success-pressed)',
|
|
129
|
+
'success-secondary': 'var(--figma-color-icon-success-secondary)',
|
|
130
|
+
'success-tertiary': 'var(--figma-color-icon-success-tertiary)',
|
|
131
|
+
tertiary: 'var(--figma-color-icon-tertiary)',
|
|
132
|
+
'tertiary-hover': 'var(--figma-color-icon-tertiary-hover)',
|
|
133
|
+
warning: 'var(--figma-color-icon-warning)',
|
|
134
|
+
'warning-pressed': 'var(--figma-color-icon-warning-pressed)',
|
|
135
|
+
'warning-secondary': 'var(--figma-color-icon-warning-secondary)',
|
|
136
|
+
'warning-tertiary': 'var(--figma-color-icon-warning-tertiary)',
|
|
137
|
+
},
|
|
138
|
+
text: {
|
|
139
|
+
DEFAULT: 'var(--figma-color-text)',
|
|
140
|
+
brand: 'var(--figma-color-text-brand)',
|
|
141
|
+
'brand-secondary': 'var(--figma-color-text-brand-secondary)',
|
|
142
|
+
'brand-tertiary': 'var(--figma-color-text-brand-tertiary)',
|
|
143
|
+
component: 'var(--figma-color-text-component)',
|
|
144
|
+
'component-pressed': 'var(--figma-color-text-component-pressed)',
|
|
145
|
+
'component-secondary': 'var(--figma-color-text-component-secondary)',
|
|
146
|
+
'component-tertiary': 'var(--figma-color-text-component-tertiary)',
|
|
147
|
+
danger: 'var(--figma-color-text-danger)',
|
|
148
|
+
'danger-secondary': 'var(--figma-color-text-danger-secondary)',
|
|
149
|
+
'danger-tertiary': 'var(--figma-color-text-danger-tertiary)',
|
|
150
|
+
disabled: 'var(--figma-color-text-disabled)',
|
|
151
|
+
hover: 'var(--figma-color-text-hover)',
|
|
152
|
+
onbrand: 'var(--figma-color-text-onbrand)',
|
|
153
|
+
'onbrand-secondary': 'var(--figma-color-text-onbrand-secondary)',
|
|
154
|
+
'onbrand-tertiary': 'var(--figma-color-text-onbrand-tertiary)',
|
|
155
|
+
oncomponent: 'var(--figma-color-text-oncomponent)',
|
|
156
|
+
'oncomponent-secondary': 'var(--figma-color-text-oncomponent-secondary)',
|
|
157
|
+
'oncomponent-tertiary': 'var(--figma-color-text-oncomponent-tertiary)',
|
|
158
|
+
ondanger: 'var(--figma-color-text-ondanger)',
|
|
159
|
+
'ondanger-secondary': 'var(--figma-color-text-ondanger-secondary)',
|
|
160
|
+
'ondanger-tertiary': 'var(--figma-color-text-ondanger-tertiary)',
|
|
161
|
+
ondisabled: 'var(--figma-color-text-ondisabled)',
|
|
162
|
+
oninverse: 'var(--figma-color-text-oninverse)',
|
|
163
|
+
onselected: 'var(--figma-color-text-onselected)',
|
|
164
|
+
'onselected-secondary': 'var(--figma-color-text-onselected-secondary)',
|
|
165
|
+
'onselected-strong': 'var(--figma-color-text-onselected-strong)',
|
|
166
|
+
'onselected-tertiary': 'var(--figma-color-text-onselected-tertiary)',
|
|
167
|
+
onsuccess: 'var(--figma-color-text-onsuccess)',
|
|
168
|
+
'onsuccess-secondary': 'var(--figma-color-text-onsuccess-secondary)',
|
|
169
|
+
'onsuccess-tertiary': 'var(--figma-color-text-onsuccess-tertiary)',
|
|
170
|
+
onwarning: 'var(--figma-color-text-onwarning)',
|
|
171
|
+
'onwarning-secondary': 'var(--figma-color-text-onwarning-secondary)',
|
|
172
|
+
'onwarning-tertiary': 'var(--figma-color-text-onwarning-tertiary)',
|
|
173
|
+
secondary: 'var(--figma-color-text-secondary)',
|
|
174
|
+
'secondary-hover': 'var(--figma-color-text-secondary-hover)',
|
|
175
|
+
selected: 'var(--figma-color-text-selected)',
|
|
176
|
+
'selected-secondary': 'var(--figma-color-text-selected-secondary)',
|
|
177
|
+
'selected-tertiary': 'var(--figma-color-text-selected-tertiary)',
|
|
178
|
+
success: 'var(--figma-color-text-success)',
|
|
179
|
+
'success-secondary': 'var(--figma-color-text-success-secondary)',
|
|
180
|
+
'success-tertiary': 'var(--figma-color-text-success-tertiary)',
|
|
181
|
+
tertiary: 'var(--figma-color-text-tertiary)',
|
|
182
|
+
'tertiary-hover': 'var(--figma-color-text-tertiary-hover)',
|
|
183
|
+
warning: 'var(--figma-color-text-warning)',
|
|
184
|
+
'warning-secondary': 'var(--figma-color-text-warning-secondary)',
|
|
185
|
+
'warning-tertiary': 'var(--figma-color-text-warning-tertiary)',
|
|
186
|
+
},
|
|
180
187
|
},
|
|
181
188
|
fontFamily: {
|
|
182
189
|
default: 'var(--font-family-default)',
|
|
@@ -251,5 +258,30 @@ export default {
|
|
|
251
258
|
400: 'var(--elevation-400)',
|
|
252
259
|
500: 'var(--elevation-500)',
|
|
253
260
|
},
|
|
261
|
+
textColor: ({ theme }) => {
|
|
262
|
+
return {
|
|
263
|
+
current: 'currentColor',
|
|
264
|
+
inherit: 'inherit',
|
|
265
|
+
transparent: 'transparent',
|
|
266
|
+
...theme('colors').text,
|
|
267
|
+
};
|
|
268
|
+
},
|
|
269
|
+
backgroundColor: ({ theme }) => {
|
|
270
|
+
return {
|
|
271
|
+
current: 'currentColor',
|
|
272
|
+
inherit: 'inherit',
|
|
273
|
+
transparent: 'transparent',
|
|
274
|
+
...theme('colors').bg,
|
|
275
|
+
};
|
|
276
|
+
},
|
|
277
|
+
borderColor: ({ theme }) => {
|
|
278
|
+
return {
|
|
279
|
+
current: 'currentColor',
|
|
280
|
+
inherit: 'inherit',
|
|
281
|
+
transparent: 'transparent',
|
|
282
|
+
DEFAULT: theme('colors').border.DEFAULT,
|
|
283
|
+
...theme('colors').border,
|
|
284
|
+
};
|
|
285
|
+
},
|
|
254
286
|
},
|
|
255
287
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "figma-kit",
|
|
3
3
|
"description": "A set of React components for building Figma plugins.",
|
|
4
4
|
"homepage": "https://figma-kit.dev",
|
|
5
|
-
"version": "1.0.0-beta.
|
|
5
|
+
"version": "1.0.0-beta.9",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"figma",
|
|
14
14
|
"figma react components",
|
|
15
15
|
"figma design system",
|
|
16
|
-
"
|
|
16
|
+
"UI3",
|
|
17
|
+
"component-library"
|
|
17
18
|
],
|
|
18
19
|
"type": "module",
|
|
19
20
|
"files": [
|