@matteoaliano/forest-ui 0.2.1 → 0.2.2

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.
@@ -1,273 +0,0 @@
1
- import * as _mui_material_styles from '@mui/material/styles';
2
- import { PaletteOptions, TypographyVariantsOptions, Components, Theme, Shadows, ThemeOptions } from '@mui/material/styles';
3
-
4
- /**
5
- * Design tokens extracted from Figma.
6
- * These are the primitive values that the semantic theme references.
7
- */
8
- declare const colors: {
9
- readonly base: {
10
- readonly white: "#ffffff";
11
- readonly black: "#000000";
12
- readonly transparent: "#ffffff00";
13
- };
14
- readonly brand: {
15
- readonly 25: "#fcfaff";
16
- readonly 50: "#f9f5ff";
17
- readonly 100: "#f4ebff";
18
- readonly 200: "#e9d7fe";
19
- readonly 300: "#d6bbfb";
20
- readonly 400: "#b692f6";
21
- readonly 500: "#9e77ed";
22
- readonly 600: "#7f56d9";
23
- readonly 700: "#6941c6";
24
- readonly 800: "#53389e";
25
- readonly 900: "#42307d";
26
- readonly 950: "#2c1c5f";
27
- };
28
- readonly gray: {
29
- readonly 25: "#fcfcfd";
30
- readonly 50: "#f9fafb";
31
- readonly 100: "#f2f4f7";
32
- readonly 200: "#eaecf0";
33
- readonly 300: "#d0d5dd";
34
- readonly 400: "#98a2b3";
35
- readonly 500: "#667085";
36
- readonly 600: "#475467";
37
- readonly 700: "#344054";
38
- readonly 800: "#182230";
39
- readonly 900: "#101828";
40
- readonly 950: "#0c111d";
41
- };
42
- readonly error: {
43
- readonly 25: "#fffbfa";
44
- readonly 50: "#fef3f2";
45
- readonly 100: "#fee4e2";
46
- readonly 200: "#fecdca";
47
- readonly 300: "#fda29b";
48
- readonly 400: "#f97066";
49
- readonly 500: "#f04438";
50
- readonly 600: "#d92d20";
51
- readonly 700: "#b42318";
52
- readonly 800: "#912018";
53
- readonly 900: "#7a271a";
54
- readonly 950: "#55160c";
55
- };
56
- readonly warning: {
57
- readonly 25: "#fffcf5";
58
- readonly 50: "#fffaeb";
59
- readonly 100: "#fef0c7";
60
- readonly 200: "#fedf89";
61
- readonly 300: "#fec84b";
62
- readonly 400: "#fdb022";
63
- readonly 500: "#f79009";
64
- readonly 600: "#dc6803";
65
- readonly 700: "#b54708";
66
- readonly 800: "#93370d";
67
- readonly 900: "#7a2e0e";
68
- readonly 950: "#4e1d09";
69
- };
70
- readonly success: {
71
- readonly 25: "#f6fef9";
72
- readonly 50: "#ecfdf3";
73
- readonly 100: "#dcfae6";
74
- readonly 200: "#abefc6";
75
- readonly 300: "#75e0a7";
76
- readonly 400: "#47cd89";
77
- readonly 500: "#17b26a";
78
- readonly 600: "#079455";
79
- readonly 700: "#067647";
80
- readonly 800: "#085d3a";
81
- readonly 900: "#074d31";
82
- readonly 950: "#053321";
83
- };
84
- readonly blue: {
85
- readonly 25: "#f5faff";
86
- readonly 50: "#eff8ff";
87
- readonly 100: "#d1e9ff";
88
- readonly 200: "#b2ddff";
89
- readonly 300: "#84caff";
90
- readonly 400: "#53b1fd";
91
- readonly 500: "#2e90fa";
92
- readonly 600: "#1570ef";
93
- readonly 700: "#175cd3";
94
- readonly 800: "#1849a9";
95
- readonly 900: "#194185";
96
- readonly 950: "#102a56";
97
- };
98
- };
99
- declare const spacing: {
100
- readonly none: 0;
101
- readonly xxs: 2;
102
- readonly xs: 4;
103
- readonly sm: 6;
104
- readonly md: 8;
105
- readonly lg: 12;
106
- readonly xl: 16;
107
- readonly "2xl": 20;
108
- readonly "3xl": 24;
109
- readonly "4xl": 32;
110
- readonly "5xl": 40;
111
- readonly "6xl": 48;
112
- readonly "7xl": 64;
113
- readonly "8xl": 80;
114
- readonly "9xl": 96;
115
- readonly "10xl": 128;
116
- readonly "11xl": 160;
117
- };
118
- declare const radius: {
119
- readonly none: 0;
120
- readonly xxs: 2;
121
- readonly xs: 4;
122
- readonly sm: 6;
123
- readonly md: 8;
124
- readonly lg: 10;
125
- readonly xl: 12;
126
- readonly "2xl": 16;
127
- readonly "3xl": 20;
128
- readonly "4xl": 24;
129
- readonly full: 9999;
130
- };
131
- declare const shadows$1: {
132
- readonly xs: "0px 1px 2px 0px #1018280d";
133
- readonly sm: "0px 1px 3px 0px #1018281a, 0px 1px 2px 0px #1018280f";
134
- readonly md: "0px 4px 8px -2px #1018281a, 0px 2px 4px -2px #1018280f";
135
- readonly lg: "0px 12px 16px -4px #10182814, 0px 4px 6px -2px #10182808";
136
- readonly xl: "0px 20px 24px -4px #10182814, 0px 8px 8px -4px #10182808";
137
- readonly "2xl": "0px 24px 48px -12px #1018282e";
138
- readonly "3xl": "0px 32px 64px -12px #10182824";
139
- };
140
- declare const focusRings: {
141
- readonly brand: "0px 0px 0px 4px #9e77ed3d";
142
- readonly brandShadowXs: "0px 1px 2px 0px #1018280d, 0px 0px 0px 4px #9e77ed3d";
143
- readonly brandShadowSm: "0px 1px 3px 0px #1018281a, 0px 1px 2px 0px #1018280f, 0px 0px 0px 4px #9e77ed3d";
144
- readonly gray: "0px 0px 0px 4px #98a2b324";
145
- readonly grayShadowXs: "0px 1px 2px 0px #1018280d, 0px 0px 0px 4px #98a2b324";
146
- readonly grayShadowSm: "0px 1px 3px 0px #1018281a, 0px 1px 2px 0px #1018280f, 0px 0px 0px 4px #98a2b324";
147
- readonly error: "0px 0px 0px 4px #f044383d";
148
- readonly errorShadowXs: "0px 1px 2px 0px #1018280d, 0px 0px 0px 4px #f044383d";
149
- };
150
- declare const fontFamily = "\"Poppins\", sans-serif";
151
- declare const fontSize: {
152
- readonly xxs: 11;
153
- readonly xs: 12;
154
- readonly sm: 14;
155
- readonly md: 16;
156
- readonly lg: 18;
157
- readonly xl: 20;
158
- };
159
- declare const lineHeight: {
160
- readonly xxs: "16px";
161
- readonly xs: "18px";
162
- readonly sm: "20px";
163
- readonly md: "24px";
164
- readonly lg: "28px";
165
- readonly xl: "30px";
166
- };
167
- declare const fontWeight: {
168
- readonly regular: 400;
169
- readonly medium: 500;
170
- readonly semibold: 600;
171
- readonly bold: 700;
172
- };
173
- declare const display: {
174
- readonly "2xl": {
175
- readonly fontSize: 72;
176
- readonly lineHeight: "90px";
177
- readonly letterSpacing: "-0.02em";
178
- };
179
- readonly xl: {
180
- readonly fontSize: 60;
181
- readonly lineHeight: "72px";
182
- readonly letterSpacing: "-0.02em";
183
- };
184
- readonly lg: {
185
- readonly fontSize: 48;
186
- readonly lineHeight: "60px";
187
- readonly letterSpacing: "-0.02em";
188
- };
189
- readonly md: {
190
- readonly fontSize: 36;
191
- readonly lineHeight: "44px";
192
- readonly letterSpacing: "-0.02em";
193
- };
194
- readonly sm: {
195
- readonly fontSize: 30;
196
- readonly lineHeight: "38px";
197
- };
198
- readonly xs: {
199
- readonly fontSize: 24;
200
- readonly lineHeight: "32px";
201
- };
202
- };
203
- declare const container: {
204
- readonly maxWidthDesktop: 1280;
205
- readonly paddingDesktop: 32;
206
- readonly paddingMobile: 16;
207
- };
208
- declare const widths: {
209
- readonly xxs: 320;
210
- readonly xs: 384;
211
- readonly sm: 480;
212
- readonly md: 560;
213
- readonly lg: 640;
214
- readonly xl: 768;
215
- readonly "2xl": 1024;
216
- readonly "3xl": 1280;
217
- readonly "4xl": 1440;
218
- readonly "5xl": 1600;
219
- readonly "6xl": 1920;
220
- };
221
-
222
- /** Full set of design tokens that a preset variant must provide. */
223
- interface DesignTokens {
224
- colors: typeof colors;
225
- spacing: typeof spacing;
226
- radius: typeof radius;
227
- shadows: typeof shadows$1;
228
- focusRings: typeof focusRings;
229
- fontFamily: string;
230
- fontSize: typeof fontSize;
231
- lineHeight: typeof lineHeight;
232
- fontWeight: typeof fontWeight;
233
- display: typeof display;
234
- container: typeof container;
235
- widths: typeof widths;
236
- }
237
- /** Configuration for a single variant within a preset. */
238
- interface PresetVariantConfig {
239
- tokens: DesignTokens;
240
- }
241
- /** A named theme preset with one or more variants. */
242
- interface ThemePreset {
243
- name: string;
244
- defaultVariant: string;
245
- variants: Record<string, PresetVariantConfig>;
246
- }
247
-
248
- declare const palette: PaletteOptions;
249
-
250
- declare const typography: TypographyVariantsOptions;
251
-
252
- declare const components: Components<Theme>;
253
-
254
- declare const shadows: Shadows;
255
-
256
- /** Assemble a MUI ThemeOptions object from a full set of design tokens. */
257
- declare function buildThemeOptions(tokens: DesignTokens): ThemeOptions;
258
- /** Create a fully resolved MUI Theme from a full set of design tokens. */
259
- declare function buildTheme(tokens: DesignTokens): Theme;
260
-
261
- declare const forestPreset: ThemePreset;
262
-
263
- /** Get a preset by name. Returns `undefined` if not found. */
264
- declare function getPreset(name: string): ThemePreset | undefined;
265
- /** Register a custom preset (or override a built-in one). */
266
- declare function registerPreset(preset: ThemePreset): void;
267
- /** List all registered preset names. */
268
- declare function getAvailablePresets(): string[];
269
-
270
- declare const forestThemeOptions: ThemeOptions;
271
- declare const forestTheme: _mui_material_styles.Theme;
272
-
273
- export { type DesignTokens as D, type PresetVariantConfig as P, type ThemePreset as T, buildThemeOptions as a, buildTheme as b, colors as c, container as d, display as e, focusRings as f, fontFamily as g, fontSize as h, fontWeight as i, forestPreset as j, forestTheme as k, forestThemeOptions as l, getAvailablePresets as m, getPreset as n, lineHeight as o, registerPreset as p, shadows$1 as q, radius as r, spacing as s, components as t, palette as u, shadows as v, widths as w, typography as x };