@react-native-rethemed/tailwind-css-tokens 0.1.0 → 0.1.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/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @react-native-rethemed/tailwind-css-tokens
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/@react-native-rethemed/tailwind-css-tokens.svg)](https://www.npmjs.com/package/@react-native-rethemed/tailwind-css-tokens)
4
+
3
5
  Tailwind CSS's default theme (colors, spacing, text sizes, shadows) for React Native, ready for [react-native-rethemed](https://github.com/manakuro/react-native-rethemed).
4
6
 
5
7
  Tailwind CSS's default `theme.css` with Tailwind's names: `padding: 4` is `p-4`, `themed.text.sm()` is `text-sm` (font size plus its paired line height).
package/dist/index.cjs ADDED
@@ -0,0 +1,51 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_tokens_gen = require("./tokens.gen.cjs");
3
+ //#region src/index.ts
4
+ /**
5
+ * Tailwind CSS's default theme (`tailwindcss/theme.css`), converted for
6
+ * React Native with Tailwind's names. Values are generated by
7
+ * `scripts/generate.ts`; see `src/tokens.gen.ts`.
8
+ *
9
+ * - Lengths: rem → points at 16px; em letter spacings → points at 16px.
10
+ * - `colors`: the oklch palette as hex, `'<hue>.<shade>'` (`'sky.500'`).
11
+ * Fixed in both schemes: Tailwind has no semantic colors (it uses `dark:`
12
+ * variants), so define `semanticTokens.colors` in the app.
13
+ * - `spacing`: `padding: 4` is `p-4` (16), for the steps Tailwind's docs
14
+ * list. `radii` / `lineHeights` add the `rounded-none` / `rounded-full` /
15
+ * `leading-none` utilities.
16
+ * - `text`: `themed.text.sm()` is `text-sm` — font size plus its paired line
17
+ * height. `fontSizes` (`fontSize: 'sm'`) sets the size alone.
18
+ * - `defaults.fontSize` is `base` (16), the size `lineHeights` ratios use when
19
+ * a style has no `fontSize` of its own.
20
+ * - `shadows`: first layer only. Not included (no RN equivalent): fonts,
21
+ * inset / drop / text shadows, blur, perspective, easing, animations,
22
+ * aspect ratios, breakpoints, containers.
23
+ *
24
+ * The palette, radii and shadows are the same values as
25
+ * `@react-native-rethemed/panda-css-tokens` (Panda's preset uses Tailwind's).
26
+ */
27
+ const tailwindCssTheme = (0, require("@react-native-rethemed/core/config").defineTheme)({
28
+ tokens: {
29
+ colors: require_tokens_gen.colors,
30
+ radii: require_tokens_gen.radii,
31
+ spacing: require_tokens_gen.spacing,
32
+ fontSizes: require_tokens_gen.fontSizes,
33
+ fontWeights: require_tokens_gen.fontWeights,
34
+ lineHeights: require_tokens_gen.lineHeights,
35
+ letterSpacings: require_tokens_gen.letterSpacings,
36
+ shadows: require_tokens_gen.shadows
37
+ },
38
+ semanticTokens: { text: require_tokens_gen.text },
39
+ defaults: { fontSize: "base" }
40
+ });
41
+ //#endregion
42
+ exports.colors = require_tokens_gen.colors;
43
+ exports.fontSizes = require_tokens_gen.fontSizes;
44
+ exports.fontWeights = require_tokens_gen.fontWeights;
45
+ exports.letterSpacings = require_tokens_gen.letterSpacings;
46
+ exports.lineHeights = require_tokens_gen.lineHeights;
47
+ exports.radii = require_tokens_gen.radii;
48
+ exports.shadows = require_tokens_gen.shadows;
49
+ exports.spacing = require_tokens_gen.spacing;
50
+ exports.tailwindCssTheme = tailwindCssTheme;
51
+ exports.text = require_tokens_gen.text;
@@ -1,4 +1,5 @@
1
- import { colors, fontSizes, fontWeights, letterSpacings, lineHeights, radii, shadows, spacing, text } from './tokens.gen';
1
+ import { colors, fontSizes, fontWeights, letterSpacings, lineHeights, radii, shadows, spacing, text } from "./tokens.gen.cjs";
2
+ //#region src/index.d.ts
2
3
  /**
3
4
  * Tailwind CSS's default theme (`tailwindcss/theme.css`), converted for
4
5
  * React Native with Tailwind's names. Values are generated by
@@ -23,4 +24,5 @@ import { colors, fontSizes, fontWeights, letterSpacings, lineHeights, radii, sha
23
24
  * `@react-native-rethemed/panda-css-tokens` (Panda's preset uses Tailwind's).
24
25
  */
25
26
  export declare const tailwindCssTheme: import("@react-native-rethemed/core/config").ThemeConfig;
26
- export { colors, fontSizes, fontWeights, letterSpacings, lineHeights, radii, shadows, spacing, text, };
27
+ //#endregion
28
+ export { colors, fontSizes, fontWeights, letterSpacings, lineHeights, radii, shadows, spacing, text };
@@ -1,4 +1,5 @@
1
- import { colors, fontSizes, fontWeights, letterSpacings, lineHeights, radii, shadows, spacing, text } from './tokens.gen.js';
1
+ import { colors, fontSizes, fontWeights, letterSpacings, lineHeights, radii, shadows, spacing, text } from "./tokens.gen.mjs";
2
+ //#region src/index.d.ts
2
3
  /**
3
4
  * Tailwind CSS's default theme (`tailwindcss/theme.css`), converted for
4
5
  * React Native with Tailwind's names. Values are generated by
@@ -23,4 +24,5 @@ import { colors, fontSizes, fontWeights, letterSpacings, lineHeights, radii, sha
23
24
  * `@react-native-rethemed/panda-css-tokens` (Panda's preset uses Tailwind's).
24
25
  */
25
26
  export declare const tailwindCssTheme: import("@react-native-rethemed/core/config").ThemeConfig;
26
- export { colors, fontSizes, fontWeights, letterSpacings, lineHeights, radii, shadows, spacing, text, };
27
+ //#endregion
28
+ export { colors, fontSizes, fontWeights, letterSpacings, lineHeights, radii, shadows, spacing, text };
package/dist/index.mjs ADDED
@@ -0,0 +1,42 @@
1
+ import { colors, fontSizes, fontWeights, letterSpacings, lineHeights, radii, shadows, spacing, text } from "./tokens.gen.mjs";
2
+ import { defineTheme } from "@react-native-rethemed/core/config";
3
+ //#region src/index.ts
4
+ /**
5
+ * Tailwind CSS's default theme (`tailwindcss/theme.css`), converted for
6
+ * React Native with Tailwind's names. Values are generated by
7
+ * `scripts/generate.ts`; see `src/tokens.gen.ts`.
8
+ *
9
+ * - Lengths: rem → points at 16px; em letter spacings → points at 16px.
10
+ * - `colors`: the oklch palette as hex, `'<hue>.<shade>'` (`'sky.500'`).
11
+ * Fixed in both schemes: Tailwind has no semantic colors (it uses `dark:`
12
+ * variants), so define `semanticTokens.colors` in the app.
13
+ * - `spacing`: `padding: 4` is `p-4` (16), for the steps Tailwind's docs
14
+ * list. `radii` / `lineHeights` add the `rounded-none` / `rounded-full` /
15
+ * `leading-none` utilities.
16
+ * - `text`: `themed.text.sm()` is `text-sm` — font size plus its paired line
17
+ * height. `fontSizes` (`fontSize: 'sm'`) sets the size alone.
18
+ * - `defaults.fontSize` is `base` (16), the size `lineHeights` ratios use when
19
+ * a style has no `fontSize` of its own.
20
+ * - `shadows`: first layer only. Not included (no RN equivalent): fonts,
21
+ * inset / drop / text shadows, blur, perspective, easing, animations,
22
+ * aspect ratios, breakpoints, containers.
23
+ *
24
+ * The palette, radii and shadows are the same values as
25
+ * `@react-native-rethemed/panda-css-tokens` (Panda's preset uses Tailwind's).
26
+ */
27
+ const tailwindCssTheme = defineTheme({
28
+ tokens: {
29
+ colors,
30
+ radii,
31
+ spacing,
32
+ fontSizes,
33
+ fontWeights,
34
+ lineHeights,
35
+ letterSpacings,
36
+ shadows
37
+ },
38
+ semanticTokens: { text },
39
+ defaults: { fontSize: "base" }
40
+ });
41
+ //#endregion
42
+ export { colors, fontSizes, fontWeights, letterSpacings, lineHeights, radii, shadows, spacing, tailwindCssTheme, text };
@@ -0,0 +1,527 @@
1
+ //#region src/tokens.gen.ts
2
+ /** Tailwind's palette (`--color-*`), converted from oklch to hex: `'<hue>.<shade>'`, plus `black` and `white`. */
3
+ const colors = {
4
+ "red.50": "#fef2f2",
5
+ "red.100": "#ffe2e2",
6
+ "red.200": "#ffc9c9",
7
+ "red.300": "#ffa2a2",
8
+ "red.400": "#ff6467",
9
+ "red.500": "#fb2c36",
10
+ "red.600": "#e7000b",
11
+ "red.700": "#c10007",
12
+ "red.800": "#9f0712",
13
+ "red.900": "#82181a",
14
+ "red.950": "#460809",
15
+ "orange.50": "#fff7ed",
16
+ "orange.100": "#ffedd4",
17
+ "orange.200": "#ffd6a8",
18
+ "orange.300": "#ffb86a",
19
+ "orange.400": "#ff8904",
20
+ "orange.500": "#ff6900",
21
+ "orange.600": "#f54a00",
22
+ "orange.700": "#ca3500",
23
+ "orange.800": "#9f2d00",
24
+ "orange.900": "#7e2a0c",
25
+ "orange.950": "#441306",
26
+ "amber.50": "#fffbeb",
27
+ "amber.100": "#fef3c6",
28
+ "amber.200": "#fee685",
29
+ "amber.300": "#ffd230",
30
+ "amber.400": "#ffba00",
31
+ "amber.500": "#fd9a00",
32
+ "amber.600": "#e17100",
33
+ "amber.700": "#bb4d00",
34
+ "amber.800": "#973c00",
35
+ "amber.900": "#7b3306",
36
+ "amber.950": "#461901",
37
+ "yellow.50": "#fefce8",
38
+ "yellow.100": "#fef9c2",
39
+ "yellow.200": "#fff085",
40
+ "yellow.300": "#ffdf20",
41
+ "yellow.400": "#fcc800",
42
+ "yellow.500": "#efb100",
43
+ "yellow.600": "#d08700",
44
+ "yellow.700": "#a65f00",
45
+ "yellow.800": "#894b00",
46
+ "yellow.900": "#733e0a",
47
+ "yellow.950": "#432004",
48
+ "lime.50": "#f7fee7",
49
+ "lime.100": "#ecfcca",
50
+ "lime.200": "#d8f999",
51
+ "lime.300": "#bbf451",
52
+ "lime.400": "#9ae600",
53
+ "lime.500": "#7ccf00",
54
+ "lime.600": "#5ea500",
55
+ "lime.700": "#497d00",
56
+ "lime.800": "#3d6300",
57
+ "lime.900": "#35530e",
58
+ "lime.950": "#192e03",
59
+ "green.50": "#f0fdf4",
60
+ "green.100": "#dcfce7",
61
+ "green.200": "#b9f8cf",
62
+ "green.300": "#7bf1a8",
63
+ "green.400": "#05df72",
64
+ "green.500": "#00c951",
65
+ "green.600": "#00a63e",
66
+ "green.700": "#008236",
67
+ "green.800": "#016630",
68
+ "green.900": "#0d542b",
69
+ "green.950": "#032e15",
70
+ "emerald.50": "#ecfdf5",
71
+ "emerald.100": "#d0fae5",
72
+ "emerald.200": "#a4f4cf",
73
+ "emerald.300": "#5ee9b5",
74
+ "emerald.400": "#00d492",
75
+ "emerald.500": "#00bc7d",
76
+ "emerald.600": "#009966",
77
+ "emerald.700": "#007a55",
78
+ "emerald.800": "#006045",
79
+ "emerald.900": "#004f3b",
80
+ "emerald.950": "#002c22",
81
+ "teal.50": "#f0fdfa",
82
+ "teal.100": "#cbfbf1",
83
+ "teal.200": "#96f7e4",
84
+ "teal.300": "#46ecd5",
85
+ "teal.400": "#00d5be",
86
+ "teal.500": "#00bba7",
87
+ "teal.600": "#009689",
88
+ "teal.700": "#00786f",
89
+ "teal.800": "#005f5a",
90
+ "teal.900": "#0b4f4a",
91
+ "teal.950": "#022f2e",
92
+ "cyan.50": "#ecfeff",
93
+ "cyan.100": "#cefafe",
94
+ "cyan.200": "#a2f4fd",
95
+ "cyan.300": "#53eafd",
96
+ "cyan.400": "#00d3f2",
97
+ "cyan.500": "#00b8db",
98
+ "cyan.600": "#0092b8",
99
+ "cyan.700": "#007595",
100
+ "cyan.800": "#005f78",
101
+ "cyan.900": "#104e64",
102
+ "cyan.950": "#053345",
103
+ "sky.50": "#f0f9ff",
104
+ "sky.100": "#dff2fe",
105
+ "sky.200": "#b8e6fe",
106
+ "sky.300": "#74d4ff",
107
+ "sky.400": "#00bcff",
108
+ "sky.500": "#00a6f4",
109
+ "sky.600": "#0084d1",
110
+ "sky.700": "#0069a8",
111
+ "sky.800": "#00598a",
112
+ "sky.900": "#024a70",
113
+ "sky.950": "#052f4a",
114
+ "blue.50": "#eff6ff",
115
+ "blue.100": "#dbeafe",
116
+ "blue.200": "#bedbff",
117
+ "blue.300": "#8ec5ff",
118
+ "blue.400": "#51a2ff",
119
+ "blue.500": "#2b7fff",
120
+ "blue.600": "#155dfc",
121
+ "blue.700": "#1447e6",
122
+ "blue.800": "#193cb8",
123
+ "blue.900": "#1c398e",
124
+ "blue.950": "#162456",
125
+ "indigo.50": "#eef2ff",
126
+ "indigo.100": "#e0e7ff",
127
+ "indigo.200": "#c6d2ff",
128
+ "indigo.300": "#a3b3ff",
129
+ "indigo.400": "#7c86ff",
130
+ "indigo.500": "#615fff",
131
+ "indigo.600": "#4f39f6",
132
+ "indigo.700": "#432dd7",
133
+ "indigo.800": "#372aac",
134
+ "indigo.900": "#312c85",
135
+ "indigo.950": "#1e1a4d",
136
+ "violet.50": "#f5f3ff",
137
+ "violet.100": "#ede9fe",
138
+ "violet.200": "#ddd6ff",
139
+ "violet.300": "#c4b4ff",
140
+ "violet.400": "#a684ff",
141
+ "violet.500": "#8e51ff",
142
+ "violet.600": "#7f22fe",
143
+ "violet.700": "#7008e7",
144
+ "violet.800": "#5d0ec0",
145
+ "violet.900": "#4d179a",
146
+ "violet.950": "#2f0d68",
147
+ "purple.50": "#faf5ff",
148
+ "purple.100": "#f3e8ff",
149
+ "purple.200": "#e9d4ff",
150
+ "purple.300": "#dab2ff",
151
+ "purple.400": "#c27aff",
152
+ "purple.500": "#ad46ff",
153
+ "purple.600": "#9810fa",
154
+ "purple.700": "#8200db",
155
+ "purple.800": "#6e11b0",
156
+ "purple.900": "#59168b",
157
+ "purple.950": "#3c0366",
158
+ "fuchsia.50": "#fdf4ff",
159
+ "fuchsia.100": "#fae8ff",
160
+ "fuchsia.200": "#f6cfff",
161
+ "fuchsia.300": "#f4a8ff",
162
+ "fuchsia.400": "#ed6bff",
163
+ "fuchsia.500": "#e12afb",
164
+ "fuchsia.600": "#c800de",
165
+ "fuchsia.700": "#a800b7",
166
+ "fuchsia.800": "#8a0194",
167
+ "fuchsia.900": "#721378",
168
+ "fuchsia.950": "#4b004f",
169
+ "pink.50": "#fdf2f8",
170
+ "pink.100": "#fce7f3",
171
+ "pink.200": "#fccee8",
172
+ "pink.300": "#fda5d5",
173
+ "pink.400": "#fb64b6",
174
+ "pink.500": "#f6339a",
175
+ "pink.600": "#e60076",
176
+ "pink.700": "#c6005c",
177
+ "pink.800": "#a3004c",
178
+ "pink.900": "#861043",
179
+ "pink.950": "#510424",
180
+ "rose.50": "#fff1f2",
181
+ "rose.100": "#ffe4e6",
182
+ "rose.200": "#ffccd3",
183
+ "rose.300": "#ffa1ad",
184
+ "rose.400": "#ff637e",
185
+ "rose.500": "#ff2056",
186
+ "rose.600": "#ec003f",
187
+ "rose.700": "#c70036",
188
+ "rose.800": "#a50036",
189
+ "rose.900": "#8b0836",
190
+ "rose.950": "#4d0218",
191
+ "slate.50": "#f8fafc",
192
+ "slate.100": "#f1f5f9",
193
+ "slate.200": "#e2e8f0",
194
+ "slate.300": "#cad5e2",
195
+ "slate.400": "#90a1b9",
196
+ "slate.500": "#62748e",
197
+ "slate.600": "#45556c",
198
+ "slate.700": "#314158",
199
+ "slate.800": "#1d293d",
200
+ "slate.900": "#0f172b",
201
+ "slate.950": "#020618",
202
+ "gray.50": "#f9fafb",
203
+ "gray.100": "#f3f4f6",
204
+ "gray.200": "#e5e7eb",
205
+ "gray.300": "#d1d5dc",
206
+ "gray.400": "#99a1af",
207
+ "gray.500": "#6a7282",
208
+ "gray.600": "#4a5565",
209
+ "gray.700": "#364153",
210
+ "gray.800": "#1e2939",
211
+ "gray.900": "#101828",
212
+ "gray.950": "#030712",
213
+ "zinc.50": "#fafafa",
214
+ "zinc.100": "#f4f4f5",
215
+ "zinc.200": "#e4e4e7",
216
+ "zinc.300": "#d4d4d8",
217
+ "zinc.400": "#9f9fa9",
218
+ "zinc.500": "#71717b",
219
+ "zinc.600": "#52525c",
220
+ "zinc.700": "#3f3f46",
221
+ "zinc.800": "#27272a",
222
+ "zinc.900": "#18181b",
223
+ "zinc.950": "#09090b",
224
+ "neutral.50": "#fafafa",
225
+ "neutral.100": "#f5f5f5",
226
+ "neutral.200": "#e5e5e5",
227
+ "neutral.300": "#d4d4d4",
228
+ "neutral.400": "#a1a1a1",
229
+ "neutral.500": "#737373",
230
+ "neutral.600": "#525252",
231
+ "neutral.700": "#404040",
232
+ "neutral.800": "#262626",
233
+ "neutral.900": "#171717",
234
+ "neutral.950": "#0a0a0a",
235
+ "stone.50": "#fafaf9",
236
+ "stone.100": "#f5f5f4",
237
+ "stone.200": "#e7e5e4",
238
+ "stone.300": "#d6d3d1",
239
+ "stone.400": "#a6a09b",
240
+ "stone.500": "#79716b",
241
+ "stone.600": "#57534d",
242
+ "stone.700": "#44403b",
243
+ "stone.800": "#292524",
244
+ "stone.900": "#1c1917",
245
+ "stone.950": "#0c0a09",
246
+ "mauve.50": "#fafafa",
247
+ "mauve.100": "#f3f1f3",
248
+ "mauve.200": "#e7e4e7",
249
+ "mauve.300": "#d7d0d7",
250
+ "mauve.400": "#a89ea9",
251
+ "mauve.500": "#79697b",
252
+ "mauve.600": "#594c5b",
253
+ "mauve.700": "#463947",
254
+ "mauve.800": "#2a212c",
255
+ "mauve.900": "#1d161e",
256
+ "mauve.950": "#0c090c",
257
+ "olive.50": "#fbfbf9",
258
+ "olive.100": "#f4f4f0",
259
+ "olive.200": "#e8e8e3",
260
+ "olive.300": "#d8d8d0",
261
+ "olive.400": "#abab9c",
262
+ "olive.500": "#7c7c67",
263
+ "olive.600": "#5b5b4b",
264
+ "olive.700": "#474739",
265
+ "olive.800": "#2b2b22",
266
+ "olive.900": "#1d1d16",
267
+ "olive.950": "#0c0c09",
268
+ "mist.50": "#f9fbfb",
269
+ "mist.100": "#f1f3f3",
270
+ "mist.200": "#e3e7e8",
271
+ "mist.300": "#d0d6d8",
272
+ "mist.400": "#9ca8ab",
273
+ "mist.500": "#67787c",
274
+ "mist.600": "#4b585b",
275
+ "mist.700": "#394447",
276
+ "mist.800": "#22292b",
277
+ "mist.900": "#161b1d",
278
+ "mist.950": "#090b0c",
279
+ "taupe.50": "#fbfaf9",
280
+ "taupe.100": "#f3f1f1",
281
+ "taupe.200": "#e8e4e3",
282
+ "taupe.300": "#d8d2d0",
283
+ "taupe.400": "#aba09c",
284
+ "taupe.500": "#7c6d67",
285
+ "taupe.600": "#5b4f4b",
286
+ "taupe.700": "#473c39",
287
+ "taupe.800": "#2b2422",
288
+ "taupe.900": "#1d1816",
289
+ "taupe.950": "#0c0a09",
290
+ black: "#000000",
291
+ white: "#ffffff"
292
+ };
293
+ /** `--spacing` (0.25rem) × n for the steps in Tailwind's docs: `padding: 4` is `p-4` (16). `px` is 1. */
294
+ const spacing = {
295
+ px: 1,
296
+ 0: 0,
297
+ .5: 2,
298
+ 1: 4,
299
+ 1.5: 6,
300
+ 2: 8,
301
+ 2.5: 10,
302
+ 3: 12,
303
+ 3.5: 14,
304
+ 4: 16,
305
+ 5: 20,
306
+ 6: 24,
307
+ 7: 28,
308
+ 8: 32,
309
+ 9: 36,
310
+ 10: 40,
311
+ 11: 44,
312
+ 12: 48,
313
+ 14: 56,
314
+ 16: 64,
315
+ 20: 80,
316
+ 24: 96,
317
+ 28: 112,
318
+ 32: 128,
319
+ 36: 144,
320
+ 40: 160,
321
+ 44: 176,
322
+ 48: 192,
323
+ 52: 208,
324
+ 56: 224,
325
+ 60: 240,
326
+ 64: 256,
327
+ 72: 288,
328
+ 80: 320,
329
+ 96: 384
330
+ };
331
+ /** `--radius-*` in points, plus the `rounded-none` / `rounded-full` utilities. */
332
+ const radii = {
333
+ none: 0,
334
+ xs: 2,
335
+ sm: 4,
336
+ md: 6,
337
+ lg: 8,
338
+ xl: 12,
339
+ "2xl": 16,
340
+ "3xl": 24,
341
+ "4xl": 32,
342
+ full: 9999
343
+ };
344
+ /** `--text-*` sizes in points. */
345
+ const fontSizes = {
346
+ xs: 12,
347
+ sm: 14,
348
+ base: 16,
349
+ lg: 18,
350
+ xl: 20,
351
+ "2xl": 24,
352
+ "3xl": 30,
353
+ "4xl": 36,
354
+ "5xl": 48,
355
+ "6xl": 60,
356
+ "7xl": 72,
357
+ "8xl": 96,
358
+ "9xl": 128
359
+ };
360
+ /** `--font-weight-*`. */
361
+ const fontWeights = {
362
+ thin: "100",
363
+ extralight: "200",
364
+ light: "300",
365
+ normal: "400",
366
+ medium: "500",
367
+ semibold: "600",
368
+ bold: "700",
369
+ extrabold: "800",
370
+ black: "900"
371
+ };
372
+ /** `--leading-*` as ratios of `fontSize`, plus the `leading-none` utility. */
373
+ const lineHeights = {
374
+ none: 1,
375
+ tight: 1.25,
376
+ snug: 1.375,
377
+ normal: 1.5,
378
+ relaxed: 1.625,
379
+ loose: 2
380
+ };
381
+ /** `--tracking-*`: em values converted to points at a 16px font size. */
382
+ const letterSpacings = {
383
+ tighter: -.8,
384
+ tight: -.4,
385
+ normal: 0,
386
+ wide: .4,
387
+ wider: .8,
388
+ widest: 1.6
389
+ };
390
+ /** `--shadow-*` as single-layer RN shadows (first layer). */
391
+ const shadows = {
392
+ "2xs": {
393
+ shadowColor: "#000000",
394
+ shadowOffset: {
395
+ width: 0,
396
+ height: 1
397
+ },
398
+ shadowOpacity: .05,
399
+ shadowRadius: 0,
400
+ elevation: 1
401
+ },
402
+ xs: {
403
+ shadowColor: "#000000",
404
+ shadowOffset: {
405
+ width: 0,
406
+ height: 1
407
+ },
408
+ shadowOpacity: .05,
409
+ shadowRadius: 1,
410
+ elevation: 1
411
+ },
412
+ sm: {
413
+ shadowColor: "#000000",
414
+ shadowOffset: {
415
+ width: 0,
416
+ height: 1
417
+ },
418
+ shadowOpacity: .1,
419
+ shadowRadius: 1.5,
420
+ elevation: 2
421
+ },
422
+ md: {
423
+ shadowColor: "#000000",
424
+ shadowOffset: {
425
+ width: 0,
426
+ height: 4
427
+ },
428
+ shadowOpacity: .1,
429
+ shadowRadius: 3,
430
+ elevation: 4
431
+ },
432
+ lg: {
433
+ shadowColor: "#000000",
434
+ shadowOffset: {
435
+ width: 0,
436
+ height: 10
437
+ },
438
+ shadowOpacity: .1,
439
+ shadowRadius: 7.5,
440
+ elevation: 8
441
+ },
442
+ xl: {
443
+ shadowColor: "#000000",
444
+ shadowOffset: {
445
+ width: 0,
446
+ height: 20
447
+ },
448
+ shadowOpacity: .1,
449
+ shadowRadius: 12.5,
450
+ elevation: 12
451
+ },
452
+ "2xl": {
453
+ shadowColor: "#000000",
454
+ shadowOffset: {
455
+ width: 0,
456
+ height: 25
457
+ },
458
+ shadowOpacity: .25,
459
+ shadowRadius: 25,
460
+ elevation: 16
461
+ }
462
+ };
463
+ /** `text-*` as presets: each size with its paired `--text-*--line-height`, made absolute. */
464
+ const text = {
465
+ xs: {
466
+ fontSize: 12,
467
+ lineHeight: 16
468
+ },
469
+ sm: {
470
+ fontSize: 14,
471
+ lineHeight: 20
472
+ },
473
+ base: {
474
+ fontSize: 16,
475
+ lineHeight: 24
476
+ },
477
+ lg: {
478
+ fontSize: 18,
479
+ lineHeight: 28
480
+ },
481
+ xl: {
482
+ fontSize: 20,
483
+ lineHeight: 28
484
+ },
485
+ "2xl": {
486
+ fontSize: 24,
487
+ lineHeight: 32
488
+ },
489
+ "3xl": {
490
+ fontSize: 30,
491
+ lineHeight: 36
492
+ },
493
+ "4xl": {
494
+ fontSize: 36,
495
+ lineHeight: 40
496
+ },
497
+ "5xl": {
498
+ fontSize: 48,
499
+ lineHeight: 48
500
+ },
501
+ "6xl": {
502
+ fontSize: 60,
503
+ lineHeight: 60
504
+ },
505
+ "7xl": {
506
+ fontSize: 72,
507
+ lineHeight: 72
508
+ },
509
+ "8xl": {
510
+ fontSize: 96,
511
+ lineHeight: 96
512
+ },
513
+ "9xl": {
514
+ fontSize: 128,
515
+ lineHeight: 128
516
+ }
517
+ };
518
+ //#endregion
519
+ exports.colors = colors;
520
+ exports.fontSizes = fontSizes;
521
+ exports.fontWeights = fontWeights;
522
+ exports.letterSpacings = letterSpacings;
523
+ exports.lineHeights = lineHeights;
524
+ exports.radii = radii;
525
+ exports.shadows = shadows;
526
+ exports.spacing = spacing;
527
+ exports.text = text;