@vllnt/ui-core 0.1.0-canary.100.shabd406b0b1cdb
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/CHANGELOG.md +108 -0
- package/LICENSE +21 -0
- package/README.md +90 -0
- package/component-contracts.json +208 -0
- package/component-contracts.schema.json +136 -0
- package/dist/chunk-25M4DIJU.js +570 -0
- package/dist/index.d.ts +1857 -0
- package/dist/index.js +1973 -0
- package/dist/theme-ChrZM15o.d.ts +612 -0
- package/dist/theme.d.ts +1 -0
- package/dist/theme.js +10 -0
- package/llms.txt +14 -0
- package/package.json +79 -0
- package/tokens.json +834 -0
- package/tokens.schema.json +435 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1857 @@
|
|
|
1
|
+
export { N as NativeGlassTokens, a as NativeShadow, b as NativeTheme, c as NativeThemeOverride, S as SemanticColorName, T as ThemeColorScheme, d as createNativeTheme, e as darkTheme, l as lightTheme, n as nativeTokens } from './theme-ChrZM15o.js';
|
|
2
|
+
|
|
3
|
+
/** Renderers represented in VLLNT UI registry metadata. */
|
|
4
|
+
declare const componentPlatforms: readonly ["web", "native"];
|
|
5
|
+
/** A renderer target represented in VLLNT UI registry metadata. */
|
|
6
|
+
type ComponentPlatform = (typeof componentPlatforms)[number];
|
|
7
|
+
/** Returns whether an unknown value is a supported renderer target. */
|
|
8
|
+
declare function isComponentPlatform(value: unknown): value is ComponentPlatform;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The value kinds a contract prop can take.
|
|
12
|
+
*
|
|
13
|
+
* - `boolean`, `number`, `string`: the plain value.
|
|
14
|
+
* - `enum`: one of the listed `values` (variants and sizes are enum props).
|
|
15
|
+
* - `text`: text content, a string or a number.
|
|
16
|
+
* - `node`: renderable content (a React node on web and native).
|
|
17
|
+
* - `style`: a renderer style object, for a platform's props.
|
|
18
|
+
*/
|
|
19
|
+
declare const contractPropertyTypes: readonly ["boolean", "enum", "node", "number", "string", "style", "text"];
|
|
20
|
+
/** A value kind a contract prop can take. See {@link contractPropertyTypes}. */
|
|
21
|
+
type ContractPropertyType = (typeof contractPropertyTypes)[number];
|
|
22
|
+
/** A value an enum prop or a default can hold. */
|
|
23
|
+
type ContractValue = boolean | number | string;
|
|
24
|
+
/** One prop of a component contract. */
|
|
25
|
+
type ContractProperty = {
|
|
26
|
+
/** The prop's value when the caller leaves it out. */
|
|
27
|
+
readonly default?: ContractValue;
|
|
28
|
+
/** What the prop does, written for the person or agent choosing a value. */
|
|
29
|
+
readonly description: string;
|
|
30
|
+
/** Whether a caller must pass it. Absent means optional. */
|
|
31
|
+
readonly required?: boolean;
|
|
32
|
+
readonly type: ContractPropertyType;
|
|
33
|
+
/** The allowed values. Required for `enum` props, absent for the others. */
|
|
34
|
+
readonly values?: readonly (number | string)[];
|
|
35
|
+
};
|
|
36
|
+
/** Props by name. */
|
|
37
|
+
type ContractProps = Readonly<Record<string, ContractProperty>>;
|
|
38
|
+
/** What a component looks like on one renderer. */
|
|
39
|
+
type ContractPlatform = {
|
|
40
|
+
/** Host props the renderer forwards unchanged, in words (for example "button element attributes"). */
|
|
41
|
+
readonly inherits?: string;
|
|
42
|
+
/** Props this renderer adds, or shared props it widens (same `type`, more `values`). */
|
|
43
|
+
readonly props?: ContractProps;
|
|
44
|
+
};
|
|
45
|
+
/** A text alternative that assistive technology reads for the component. */
|
|
46
|
+
type ContractLabel = {
|
|
47
|
+
readonly description: string;
|
|
48
|
+
readonly required: boolean;
|
|
49
|
+
};
|
|
50
|
+
/** The component's accessibility contract. */
|
|
51
|
+
type ContractAccessibility = {
|
|
52
|
+
/** Labels by name, such as the accessible name or a description. */
|
|
53
|
+
readonly labels?: Readonly<Record<string, ContractLabel>>;
|
|
54
|
+
/** The WAI-ARIA role the component exposes. A React Native role can use another name for it (`heading` is `header`). */
|
|
55
|
+
readonly role: string;
|
|
56
|
+
};
|
|
57
|
+
/** A named piece of a compound component, such as `CardHeader`. */
|
|
58
|
+
type ContractPart = {
|
|
59
|
+
readonly description: string;
|
|
60
|
+
};
|
|
61
|
+
/** A state the component draws differently, such as `disabled` or `pressed`. */
|
|
62
|
+
type ContractState = {
|
|
63
|
+
readonly description: string;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* The renderer-neutral description of one component: its purpose, the
|
|
67
|
+
* props it takes on every platform, its states, accessibility and parts.
|
|
68
|
+
*/
|
|
69
|
+
type ComponentContract = {
|
|
70
|
+
readonly accessibility?: ContractAccessibility;
|
|
71
|
+
/** What the component is for and when to choose it. */
|
|
72
|
+
readonly description: string;
|
|
73
|
+
/** The exported component name, such as `Button`. */
|
|
74
|
+
readonly name: string;
|
|
75
|
+
readonly parts?: Readonly<Record<string, ContractPart>>;
|
|
76
|
+
/** The supported renderers, each with its own props. */
|
|
77
|
+
readonly platforms: Readonly<Partial<Record<ComponentPlatform, ContractPlatform>>>;
|
|
78
|
+
/** Props every listed platform takes with the same name, type and values. */
|
|
79
|
+
readonly props: ContractProps;
|
|
80
|
+
readonly states?: Readonly<Record<string, ContractState>>;
|
|
81
|
+
};
|
|
82
|
+
/** The contents of `component-contracts.json`. */
|
|
83
|
+
type ComponentContracts = {
|
|
84
|
+
readonly $schema?: string;
|
|
85
|
+
/** Contracts by kebab-case component id, such as `button`. */
|
|
86
|
+
readonly components: Readonly<Record<string, ComponentContract>>;
|
|
87
|
+
/** The contract format version (semver). */
|
|
88
|
+
readonly version: string;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Checks a parsed `component-contracts.json` against the contract format.
|
|
92
|
+
* Needs no dependency, so agents and scripts can run it on contracts they
|
|
93
|
+
* read or write.
|
|
94
|
+
*
|
|
95
|
+
* @param value - The parsed JSON.
|
|
96
|
+
* @returns Every problem as a sentence naming its path; empty when valid.
|
|
97
|
+
* @example
|
|
98
|
+
* validateComponentContracts(JSON.parse(source)); // [] when valid
|
|
99
|
+
*/
|
|
100
|
+
declare function validateComponentContracts(value: unknown): string[];
|
|
101
|
+
type IsEqual<TLeft, TRight> = [TLeft] extends [TRight] ? [TRight] extends [TLeft] ? true : false : false;
|
|
102
|
+
type NoProps = object;
|
|
103
|
+
type PlatformOwnProps<TContract extends ComponentContract, TPlatform extends ComponentPlatform> = NonNullable<TContract["platforms"][TPlatform]> extends {
|
|
104
|
+
readonly props: infer TOwn extends ContractProps;
|
|
105
|
+
} ? TOwn : NoProps;
|
|
106
|
+
/** The props a component declares on one platform: the shared props, with that platform's own props added or restated. */
|
|
107
|
+
type ContractPropsFor<TContract extends ComponentContract, TPlatform extends ComponentPlatform> = Omit<TContract["props"], keyof PlatformOwnProps<TContract, TPlatform>> & PlatformOwnProps<TContract, TPlatform>;
|
|
108
|
+
/** The TypeScript value of a contract prop, or `unknown` for the renderer-specific types (`node`, `style`). */
|
|
109
|
+
type ContractPropertyValue<TProperty extends ContractProperty> = TProperty extends {
|
|
110
|
+
readonly type: "enum";
|
|
111
|
+
readonly values: readonly (infer TValue)[];
|
|
112
|
+
} ? TValue : TProperty["type"] extends "boolean" ? boolean : TProperty["type"] extends "number" ? number : TProperty["type"] extends "string" ? string : TProperty["type"] extends "text" ? number | string : unknown;
|
|
113
|
+
type IsRequired<TProperty> = TProperty extends {
|
|
114
|
+
readonly required: true;
|
|
115
|
+
} ? true : false;
|
|
116
|
+
type IsOptional<TProps, TName extends keyof TProps> = NoProps extends Pick<TProps, TName> ? true : false;
|
|
117
|
+
type SharedValue<TContract extends ComponentContract, TName extends string> = TName extends keyof TContract["props"] ? ContractPropertyValue<TContract["props"][TName]> : never;
|
|
118
|
+
/**
|
|
119
|
+
* The values a prop takes on one platform: the platform's own values plus
|
|
120
|
+
* the shared ones, so a shared value the platform forgot to restate still
|
|
121
|
+
* counts.
|
|
122
|
+
*/
|
|
123
|
+
type ContractPlatformValue<TContract extends ComponentContract, TPlatform extends ComponentPlatform, TName extends keyof ContractPropsFor<TContract, TPlatform> & string> = ContractPropertyValue<ContractPropsFor<TContract, TPlatform>[TName]> | SharedValue<TContract, TName>;
|
|
124
|
+
type PropertyDrift<TName extends string, TProperty extends ContractProperty, TValue, TProps> = TName extends keyof TProps ? IsEqual<IsRequired<TProperty>, IsOptional<TProps, TName>> extends true ? `${TName}: required differs from the contract` : unknown extends TValue ? never : IsEqual<NonNullable<TProps[TName]>, TValue> extends true ? never : `${TName}: type or values differ from the contract` : `${TName}: missing from the component`;
|
|
125
|
+
type ContractKeys<TContract extends ComponentContract, TPlatform extends ComponentPlatform> = keyof ContractPropsFor<TContract, TPlatform> & string;
|
|
126
|
+
/**
|
|
127
|
+
* Every way a renderer's props differ from a contract on one platform, as
|
|
128
|
+
* readable strings; `never` when they match. An enum prop must take the shared
|
|
129
|
+
* values plus the platform's own, and no others. Pass the component's props and
|
|
130
|
+
* the host props it forwards (`TInherited`): a prop not in `TInherited` must
|
|
131
|
+
* be in the contract. Defaults are not checked: types cannot see them.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* expectTypeOf<
|
|
135
|
+
* ContractDrift<ButtonContract, "web", ButtonProps, ButtonHTMLAttributes<HTMLButtonElement>>
|
|
136
|
+
* >().toEqualTypeOf<never>();
|
|
137
|
+
*/
|
|
138
|
+
type ContractDrift<TContract extends ComponentContract, TPlatform extends ComponentPlatform, TProps, TInherited = NoProps> = {
|
|
139
|
+
[TName in ContractKeys<TContract, TPlatform>]: PropertyDrift<TName, ContractPropsFor<TContract, TPlatform>[TName], ContractPlatformValue<TContract, TPlatform, TName>, TProps>;
|
|
140
|
+
}[ContractKeys<TContract, TPlatform>] | {
|
|
141
|
+
[TName in Exclude<keyof TProps, keyof TInherited>]: TName extends ContractKeys<TContract, TPlatform> ? never : `${TName & string}: not in the contract`;
|
|
142
|
+
}[Exclude<keyof TProps, keyof TInherited>];
|
|
143
|
+
|
|
144
|
+
declare const designTokens: {
|
|
145
|
+
readonly $schema: "./tokens.schema.json";
|
|
146
|
+
readonly name: "VLLNT UI";
|
|
147
|
+
readonly version: "0.4.0";
|
|
148
|
+
readonly source: {
|
|
149
|
+
readonly guide: "../../DESIGN.md";
|
|
150
|
+
readonly theme: "../ui/themes/default.css";
|
|
151
|
+
};
|
|
152
|
+
readonly color: {
|
|
153
|
+
readonly format: "oklch-channel";
|
|
154
|
+
readonly semantic: {
|
|
155
|
+
readonly background: {
|
|
156
|
+
readonly cssVariable: "--background";
|
|
157
|
+
readonly light: "1 0 0";
|
|
158
|
+
readonly dark: "0 0 0";
|
|
159
|
+
readonly role: "Page and app surface";
|
|
160
|
+
};
|
|
161
|
+
readonly foreground: {
|
|
162
|
+
readonly cssVariable: "--foreground";
|
|
163
|
+
readonly light: "0 0 0";
|
|
164
|
+
readonly dark: "1 0 0";
|
|
165
|
+
readonly role: "Primary text and icon color";
|
|
166
|
+
};
|
|
167
|
+
readonly card: {
|
|
168
|
+
readonly cssVariable: "--card";
|
|
169
|
+
readonly light: "1 0 0";
|
|
170
|
+
readonly dark: "0 0 0";
|
|
171
|
+
readonly role: "Card and contained surface";
|
|
172
|
+
};
|
|
173
|
+
readonly cardForeground: {
|
|
174
|
+
readonly cssVariable: "--card-foreground";
|
|
175
|
+
readonly light: "0 0 0";
|
|
176
|
+
readonly dark: "1 0 0";
|
|
177
|
+
readonly role: "Text on card surfaces";
|
|
178
|
+
};
|
|
179
|
+
readonly popover: {
|
|
180
|
+
readonly cssVariable: "--popover";
|
|
181
|
+
readonly light: "1 0 0";
|
|
182
|
+
readonly dark: "0 0 0";
|
|
183
|
+
readonly role: "Popover, menu, and floating surface";
|
|
184
|
+
};
|
|
185
|
+
readonly popoverForeground: {
|
|
186
|
+
readonly cssVariable: "--popover-foreground";
|
|
187
|
+
readonly light: "0 0 0";
|
|
188
|
+
readonly dark: "0.9461 0 0";
|
|
189
|
+
readonly role: "Text on popover surfaces";
|
|
190
|
+
};
|
|
191
|
+
readonly primary: {
|
|
192
|
+
readonly cssVariable: "--primary";
|
|
193
|
+
readonly light: "0 0 0";
|
|
194
|
+
readonly dark: "1 0 0";
|
|
195
|
+
readonly role: "Primary action surface";
|
|
196
|
+
};
|
|
197
|
+
readonly primaryForeground: {
|
|
198
|
+
readonly cssVariable: "--primary-foreground";
|
|
199
|
+
readonly light: "1 0 0";
|
|
200
|
+
readonly dark: "0 0 0";
|
|
201
|
+
readonly role: "Text on primary action surfaces";
|
|
202
|
+
};
|
|
203
|
+
readonly secondary: {
|
|
204
|
+
readonly cssVariable: "--secondary";
|
|
205
|
+
readonly light: "0.9703 0 0";
|
|
206
|
+
readonly dark: "0.2686 0 0";
|
|
207
|
+
readonly role: "Secondary action surface";
|
|
208
|
+
};
|
|
209
|
+
readonly secondaryForeground: {
|
|
210
|
+
readonly cssVariable: "--secondary-foreground";
|
|
211
|
+
readonly light: "0.2044 0 0";
|
|
212
|
+
readonly dark: "0.9461 0 0";
|
|
213
|
+
readonly role: "Text on secondary action surfaces";
|
|
214
|
+
};
|
|
215
|
+
readonly muted: {
|
|
216
|
+
readonly cssVariable: "--muted";
|
|
217
|
+
readonly light: "0.9703 0 0";
|
|
218
|
+
readonly dark: "0 0 0";
|
|
219
|
+
readonly role: "Subtle surface";
|
|
220
|
+
};
|
|
221
|
+
readonly mutedForeground: {
|
|
222
|
+
readonly cssVariable: "--muted-foreground";
|
|
223
|
+
readonly light: "0.525 0 0";
|
|
224
|
+
readonly dark: "0.7153 0 0";
|
|
225
|
+
readonly role: "Secondary text";
|
|
226
|
+
};
|
|
227
|
+
readonly accent: {
|
|
228
|
+
readonly cssVariable: "--accent";
|
|
229
|
+
readonly light: "0.9703 0 0";
|
|
230
|
+
readonly dark: "0.2686 0 0";
|
|
231
|
+
readonly role: "Hover and active surface";
|
|
232
|
+
};
|
|
233
|
+
readonly accentForeground: {
|
|
234
|
+
readonly cssVariable: "--accent-foreground";
|
|
235
|
+
readonly light: "0.2044 0 0";
|
|
236
|
+
readonly dark: "0.9461 0 0";
|
|
237
|
+
readonly role: "Text on accent surfaces";
|
|
238
|
+
};
|
|
239
|
+
readonly destructive: {
|
|
240
|
+
readonly cssVariable: "--destructive";
|
|
241
|
+
readonly light: "0.55 0.2078 25.326";
|
|
242
|
+
readonly dark: "0.7 0.18 25.721";
|
|
243
|
+
readonly role: "Destructive action and error surface";
|
|
244
|
+
};
|
|
245
|
+
readonly destructiveForeground: {
|
|
246
|
+
readonly cssVariable: "--destructive-foreground";
|
|
247
|
+
readonly light: "0.9848 0 0";
|
|
248
|
+
readonly dark: "0.2044 0 0";
|
|
249
|
+
readonly role: "Text on destructive surfaces";
|
|
250
|
+
};
|
|
251
|
+
readonly success: {
|
|
252
|
+
readonly cssVariable: "--success";
|
|
253
|
+
readonly light: "0.5 0.11 155";
|
|
254
|
+
readonly dark: "0.78 0.16 155";
|
|
255
|
+
readonly role: "Success fill and success text";
|
|
256
|
+
};
|
|
257
|
+
readonly successForeground: {
|
|
258
|
+
readonly cssVariable: "--success-foreground";
|
|
259
|
+
readonly light: "0.9848 0 0";
|
|
260
|
+
readonly dark: "0.2044 0 0";
|
|
261
|
+
readonly role: "Text on success surfaces";
|
|
262
|
+
};
|
|
263
|
+
readonly warning: {
|
|
264
|
+
readonly cssVariable: "--warning";
|
|
265
|
+
readonly light: "0.5 0.085 70";
|
|
266
|
+
readonly dark: "0.82 0.15 85";
|
|
267
|
+
readonly role: "Warning fill and warning text";
|
|
268
|
+
};
|
|
269
|
+
readonly warningForeground: {
|
|
270
|
+
readonly cssVariable: "--warning-foreground";
|
|
271
|
+
readonly light: "0.9848 0 0";
|
|
272
|
+
readonly dark: "0.2044 0 0";
|
|
273
|
+
readonly role: "Text on warning surfaces";
|
|
274
|
+
};
|
|
275
|
+
readonly info: {
|
|
276
|
+
readonly cssVariable: "--info";
|
|
277
|
+
readonly light: "0.5 0.15 255";
|
|
278
|
+
readonly dark: "0.74 0.12 245";
|
|
279
|
+
readonly role: "Informational fill and informational text";
|
|
280
|
+
};
|
|
281
|
+
readonly infoForeground: {
|
|
282
|
+
readonly cssVariable: "--info-foreground";
|
|
283
|
+
readonly light: "0.9848 0 0";
|
|
284
|
+
readonly dark: "0.2044 0 0";
|
|
285
|
+
readonly role: "Text on info surfaces";
|
|
286
|
+
};
|
|
287
|
+
readonly diffAdded: {
|
|
288
|
+
readonly cssVariable: "--diff-added";
|
|
289
|
+
readonly light: "0.94 0.04 150";
|
|
290
|
+
readonly dark: "0.26 0.05 150";
|
|
291
|
+
readonly role: "Added-line surface in diffs (text on it uses foreground)";
|
|
292
|
+
};
|
|
293
|
+
readonly diffRemoved: {
|
|
294
|
+
readonly cssVariable: "--diff-removed";
|
|
295
|
+
readonly light: "0.94 0.03 25";
|
|
296
|
+
readonly dark: "0.26 0.055 25";
|
|
297
|
+
readonly role: "Removed-line surface in diffs (text on it uses foreground)";
|
|
298
|
+
};
|
|
299
|
+
readonly border: {
|
|
300
|
+
readonly cssVariable: "--border";
|
|
301
|
+
readonly light: "0.9219 0 0";
|
|
302
|
+
readonly dark: "0.2686 0 0";
|
|
303
|
+
readonly role: "Hairline divider";
|
|
304
|
+
};
|
|
305
|
+
readonly input: {
|
|
306
|
+
readonly cssVariable: "--input";
|
|
307
|
+
readonly light: "0.6167 0 0";
|
|
308
|
+
readonly dark: "0.5208 0 0";
|
|
309
|
+
readonly role: "Form-control boundary (3:1 against background, card, popover)";
|
|
310
|
+
};
|
|
311
|
+
readonly ring: {
|
|
312
|
+
readonly cssVariable: "--ring";
|
|
313
|
+
readonly light: "0.1445 0 0";
|
|
314
|
+
readonly dark: "0.8697 0 0";
|
|
315
|
+
readonly role: "Focus ring";
|
|
316
|
+
};
|
|
317
|
+
readonly sidebar: {
|
|
318
|
+
readonly cssVariable: "--sidebar";
|
|
319
|
+
readonly light: "0.9848 0 0";
|
|
320
|
+
readonly dark: "0 0 0";
|
|
321
|
+
readonly role: "Sidebar and rail surface";
|
|
322
|
+
};
|
|
323
|
+
readonly pill: {
|
|
324
|
+
readonly cssVariable: "--pill";
|
|
325
|
+
readonly light: "0.9703 0 0";
|
|
326
|
+
readonly dark: "0 0 0";
|
|
327
|
+
readonly role: "Fill of a pill: inline code and small tags";
|
|
328
|
+
};
|
|
329
|
+
readonly pillBorder: {
|
|
330
|
+
readonly cssVariable: "--pill-border";
|
|
331
|
+
readonly light: "0.9219 0 0";
|
|
332
|
+
readonly dark: "0.2686 0 0";
|
|
333
|
+
readonly role: "1px border of a pill";
|
|
334
|
+
};
|
|
335
|
+
readonly composerBorder: {
|
|
336
|
+
readonly cssVariable: "--composer-border";
|
|
337
|
+
readonly light: "0.8699 0 0";
|
|
338
|
+
readonly dark: "0.285 0 0";
|
|
339
|
+
readonly role: "Border of a composer, the message input box";
|
|
340
|
+
};
|
|
341
|
+
readonly statusNeedsYou: {
|
|
342
|
+
readonly cssVariable: "--status-needs-you";
|
|
343
|
+
readonly light: "0.554 0.135 66.44";
|
|
344
|
+
readonly dark: "0.795 0.162 86.05";
|
|
345
|
+
readonly role: "Status mark: waiting for the person (yellow). A mark, not text";
|
|
346
|
+
};
|
|
347
|
+
readonly statusUnread: {
|
|
348
|
+
readonly cssVariable: "--status-unread";
|
|
349
|
+
readonly light: "0.546 0.215 262.88";
|
|
350
|
+
readonly dark: "0.623 0.188 259.81";
|
|
351
|
+
readonly role: "Status mark: unread (blue). A mark, not text";
|
|
352
|
+
};
|
|
353
|
+
readonly statusFailed: {
|
|
354
|
+
readonly cssVariable: "--status-failed";
|
|
355
|
+
readonly light: "0.577 0.215 27.33";
|
|
356
|
+
readonly dark: "0.637 0.208 25.33";
|
|
357
|
+
readonly role: "Status mark: failed (red). A mark, not text; red text uses destructive";
|
|
358
|
+
};
|
|
359
|
+
readonly statusDone: {
|
|
360
|
+
readonly cssVariable: "--status-done";
|
|
361
|
+
readonly light: "0.527 0.137 150.07";
|
|
362
|
+
readonly dark: "0.723 0.219 149.58";
|
|
363
|
+
readonly role: "Status mark: done (green). A mark, not text";
|
|
364
|
+
};
|
|
365
|
+
readonly statusRing: {
|
|
366
|
+
readonly cssVariable: "--status-ring";
|
|
367
|
+
readonly light: "0.556 0 0";
|
|
368
|
+
readonly dark: "0.715 0 0";
|
|
369
|
+
readonly role: "Status mark: idle ring (grey). A mark, not text";
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
readonly "glass-border": {
|
|
373
|
+
readonly light: "#00000024";
|
|
374
|
+
readonly dark: "#FFFFFF2E";
|
|
375
|
+
readonly role: "Hairline of a glass surface, with alpha. Material token material.glass.hairline points at it";
|
|
376
|
+
};
|
|
377
|
+
readonly "border-strong": {
|
|
378
|
+
readonly light: "0.9219 0 0";
|
|
379
|
+
readonly dark: "0.3485 0 0";
|
|
380
|
+
readonly role: "Brighter hairline of the top depth steps, depth.z-3 (floating) and depth.z-4 (modal). Light equals border; dark is #3a3a3a, one step above border, on the pure black surface";
|
|
381
|
+
};
|
|
382
|
+
readonly "glass-input": {
|
|
383
|
+
readonly light: "0.464 0 0";
|
|
384
|
+
readonly dark: "0.7155 0 0";
|
|
385
|
+
readonly role: "Control boundary inside a glass surface (3:1 against the glass over a white, black or mid backdrop). Replaces input within glass";
|
|
386
|
+
};
|
|
387
|
+
readonly "glass-muted-foreground": {
|
|
388
|
+
readonly light: "0.3715 0 0";
|
|
389
|
+
readonly dark: "0.8699 0 0";
|
|
390
|
+
readonly role: "Secondary text inside a glass surface (4.5:1 against the glass over a white, black or mid backdrop). Replaces muted-foreground within glass";
|
|
391
|
+
};
|
|
392
|
+
readonly "badge-label": {
|
|
393
|
+
readonly danger: {
|
|
394
|
+
readonly value: "{color.destructive}";
|
|
395
|
+
readonly role: "Penpot name for a danger Badge label colour. Web code reads the destructive role directly";
|
|
396
|
+
};
|
|
397
|
+
readonly info: {
|
|
398
|
+
readonly value: "{color.info}";
|
|
399
|
+
readonly role: "Penpot name for an info Badge label colour. Web code reads the info role directly";
|
|
400
|
+
};
|
|
401
|
+
readonly success: {
|
|
402
|
+
readonly value: "{color.success}";
|
|
403
|
+
readonly role: "Penpot name for a success Badge label colour. Web code reads the success role directly";
|
|
404
|
+
};
|
|
405
|
+
readonly warning: {
|
|
406
|
+
readonly value: "{color.warning}";
|
|
407
|
+
readonly role: "Penpot name for a warning Badge label colour. Web code reads the warning role directly";
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
readonly brand: {
|
|
412
|
+
readonly status: {
|
|
413
|
+
readonly candidate: {
|
|
414
|
+
readonly light: {
|
|
415
|
+
readonly value: "{color.info}";
|
|
416
|
+
readonly role: "Roadmap status: candidate (light)";
|
|
417
|
+
};
|
|
418
|
+
readonly dark: {
|
|
419
|
+
readonly value: "{color.info}";
|
|
420
|
+
readonly role: "Roadmap status: candidate (dark)";
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
readonly deprecated: {
|
|
424
|
+
readonly light: {
|
|
425
|
+
readonly value: "{color.warning}";
|
|
426
|
+
readonly role: "Roadmap status: deprecated (light)";
|
|
427
|
+
};
|
|
428
|
+
readonly dark: {
|
|
429
|
+
readonly value: "{color.warning}";
|
|
430
|
+
readonly role: "Roadmap status: deprecated (dark)";
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
readonly implemented: {
|
|
434
|
+
readonly light: {
|
|
435
|
+
readonly value: "{color.success}";
|
|
436
|
+
readonly role: "Roadmap status: implemented (light)";
|
|
437
|
+
};
|
|
438
|
+
readonly dark: {
|
|
439
|
+
readonly value: "{color.success}";
|
|
440
|
+
readonly role: "Roadmap status: implemented (dark)";
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
readonly planned: {
|
|
444
|
+
readonly light: {
|
|
445
|
+
readonly value: "{color.muted-foreground}";
|
|
446
|
+
readonly role: "Roadmap status: planned (light)";
|
|
447
|
+
};
|
|
448
|
+
readonly dark: {
|
|
449
|
+
readonly value: "{color.muted-foreground}";
|
|
450
|
+
readonly role: "Roadmap status: planned (dark)";
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
readonly unsupported: {
|
|
454
|
+
readonly light: {
|
|
455
|
+
readonly value: "{color.destructive}";
|
|
456
|
+
readonly role: "Roadmap status: unsupported (light)";
|
|
457
|
+
};
|
|
458
|
+
readonly dark: {
|
|
459
|
+
readonly value: "{color.destructive}";
|
|
460
|
+
readonly role: "Roadmap status: unsupported (dark)";
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
readonly typography: {
|
|
466
|
+
readonly fontFamily: {
|
|
467
|
+
readonly sans: {
|
|
468
|
+
readonly cssVariable: "--font-sans";
|
|
469
|
+
readonly value: "'JetBrains Mono', ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace";
|
|
470
|
+
readonly role: "Body + UI text. A monospace stack; no font file is shipped, so the app loads JetBrains Mono or the system face shows";
|
|
471
|
+
};
|
|
472
|
+
readonly display: {
|
|
473
|
+
readonly cssVariable: "--font-display";
|
|
474
|
+
readonly value: "var(--font-sans)";
|
|
475
|
+
readonly role: "Heading + Display face — override per theme for a brand type identity (defaults to sans)";
|
|
476
|
+
};
|
|
477
|
+
readonly mono: {
|
|
478
|
+
readonly cssVariable: "--font-mono";
|
|
479
|
+
readonly value: "'JetBrains Mono', ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace";
|
|
480
|
+
readonly role: "Code + tabular";
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
readonly fontWeight: {
|
|
484
|
+
readonly heading: {
|
|
485
|
+
readonly cssVariable: "--font-weight-heading";
|
|
486
|
+
readonly value: 500;
|
|
487
|
+
readonly role: "Heading primitive weight — theme-overridable";
|
|
488
|
+
};
|
|
489
|
+
readonly display: {
|
|
490
|
+
readonly cssVariable: "--font-weight-display";
|
|
491
|
+
readonly value: 600;
|
|
492
|
+
readonly role: "Display primitive weight — theme-overridable";
|
|
493
|
+
};
|
|
494
|
+
readonly body: {
|
|
495
|
+
readonly value: 400;
|
|
496
|
+
};
|
|
497
|
+
readonly caption: {
|
|
498
|
+
readonly value: 400;
|
|
499
|
+
};
|
|
500
|
+
readonly label: {
|
|
501
|
+
readonly cssVariable: "--font-weight-label";
|
|
502
|
+
readonly value: 500;
|
|
503
|
+
readonly role: "Label weight — theme-overridable";
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
readonly scale: {
|
|
507
|
+
readonly display: {
|
|
508
|
+
readonly cssVariable: "--font-size-display";
|
|
509
|
+
readonly fontSize: "1.75rem";
|
|
510
|
+
readonly lineHeight: "1.1";
|
|
511
|
+
readonly lineHeightCssVariable: "--line-height-display";
|
|
512
|
+
};
|
|
513
|
+
readonly h1: {
|
|
514
|
+
readonly cssVariable: "--font-size-h1";
|
|
515
|
+
readonly fontSize: "1.25rem";
|
|
516
|
+
readonly lineHeight: "1.3";
|
|
517
|
+
readonly lineHeightCssVariable: "--line-height-h1";
|
|
518
|
+
};
|
|
519
|
+
readonly h2: {
|
|
520
|
+
readonly cssVariable: "--font-size-h2";
|
|
521
|
+
readonly fontSize: "0.875rem";
|
|
522
|
+
readonly lineHeight: "1.4";
|
|
523
|
+
readonly lineHeightCssVariable: "--line-height-h2";
|
|
524
|
+
};
|
|
525
|
+
readonly h3: {
|
|
526
|
+
readonly cssVariable: "--font-size-h3";
|
|
527
|
+
readonly fontSize: "0.8125rem";
|
|
528
|
+
readonly lineHeight: "1.4";
|
|
529
|
+
readonly lineHeightCssVariable: "--line-height-h3";
|
|
530
|
+
};
|
|
531
|
+
readonly h4: {
|
|
532
|
+
readonly cssVariable: "--font-size-h4";
|
|
533
|
+
readonly fontSize: "0.8125rem";
|
|
534
|
+
readonly lineHeight: "1.4";
|
|
535
|
+
readonly lineHeightCssVariable: "--line-height-h4";
|
|
536
|
+
};
|
|
537
|
+
readonly h5: {
|
|
538
|
+
readonly cssVariable: "--font-size-h5";
|
|
539
|
+
readonly fontSize: "0.8125rem";
|
|
540
|
+
readonly lineHeight: "1.4";
|
|
541
|
+
readonly lineHeightCssVariable: "--line-height-h5";
|
|
542
|
+
};
|
|
543
|
+
readonly h6: {
|
|
544
|
+
readonly cssVariable: "--font-size-h6";
|
|
545
|
+
readonly fontSize: "0.8125rem";
|
|
546
|
+
readonly lineHeight: "1.4";
|
|
547
|
+
readonly lineHeightCssVariable: "--line-height-h6";
|
|
548
|
+
};
|
|
549
|
+
readonly bodyLarge: {
|
|
550
|
+
readonly cssVariable: "--font-size-body-lg";
|
|
551
|
+
readonly fontSize: "0.9375rem";
|
|
552
|
+
readonly lineHeight: "1.6";
|
|
553
|
+
readonly lineHeightCssVariable: "--line-height-body-lg";
|
|
554
|
+
};
|
|
555
|
+
readonly body: {
|
|
556
|
+
readonly cssVariable: "--font-size-body";
|
|
557
|
+
readonly fontSize: "0.875rem";
|
|
558
|
+
readonly lineHeight: "1.5";
|
|
559
|
+
readonly lineHeightCssVariable: "--line-height-body";
|
|
560
|
+
};
|
|
561
|
+
readonly bodySmall: {
|
|
562
|
+
readonly cssVariable: "--font-size-body-sm";
|
|
563
|
+
readonly fontSize: "0.8125rem";
|
|
564
|
+
readonly lineHeight: "1.45";
|
|
565
|
+
readonly lineHeightCssVariable: "--line-height-body-sm";
|
|
566
|
+
};
|
|
567
|
+
readonly caption: {
|
|
568
|
+
readonly cssVariable: "--font-size-caption";
|
|
569
|
+
readonly fontSize: "0.75rem";
|
|
570
|
+
readonly lineHeight: "1.4";
|
|
571
|
+
readonly lineHeightCssVariable: "--line-height-caption";
|
|
572
|
+
};
|
|
573
|
+
readonly label: {
|
|
574
|
+
readonly cssVariable: "--font-size-label";
|
|
575
|
+
readonly fontSize: "0.6875rem";
|
|
576
|
+
readonly lineHeight: "1.4";
|
|
577
|
+
readonly lineHeightCssVariable: "--line-height-label";
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
readonly spacing: {
|
|
582
|
+
readonly unit: "4px";
|
|
583
|
+
readonly scale: {
|
|
584
|
+
readonly "1": "0.25rem";
|
|
585
|
+
readonly "2": "0.5rem";
|
|
586
|
+
readonly "3": "0.75rem";
|
|
587
|
+
readonly "4": "1rem";
|
|
588
|
+
readonly "5": "1.25rem";
|
|
589
|
+
readonly "6": "1.5rem";
|
|
590
|
+
readonly "8": "2rem";
|
|
591
|
+
readonly "10": "2.5rem";
|
|
592
|
+
readonly "12": "3rem";
|
|
593
|
+
readonly "16": "4rem";
|
|
594
|
+
readonly "24": "6rem";
|
|
595
|
+
};
|
|
596
|
+
readonly "page-gutter": {
|
|
597
|
+
readonly value: "{spacing.5}";
|
|
598
|
+
readonly role: "Horizontal page padding below 768 px (20)";
|
|
599
|
+
};
|
|
600
|
+
readonly "page-gutter-tablet": {
|
|
601
|
+
readonly value: "{spacing.12}";
|
|
602
|
+
readonly role: "Horizontal page padding from 768 px (48)";
|
|
603
|
+
};
|
|
604
|
+
readonly "page-gutter-desktop": {
|
|
605
|
+
readonly value: "{spacing.24}";
|
|
606
|
+
readonly role: "Horizontal page padding from 1200 px (96)";
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
readonly radius: {
|
|
610
|
+
readonly none: "0";
|
|
611
|
+
readonly sm: "0.25rem";
|
|
612
|
+
readonly md: "0.5rem";
|
|
613
|
+
readonly lg: "0.75rem";
|
|
614
|
+
readonly xl: "1rem";
|
|
615
|
+
readonly full: "9999px";
|
|
616
|
+
readonly control: "0.25rem";
|
|
617
|
+
readonly surface: "0.375rem";
|
|
618
|
+
};
|
|
619
|
+
readonly size: {
|
|
620
|
+
readonly "control-xs": {
|
|
621
|
+
readonly value: "2rem";
|
|
622
|
+
readonly coarse: "{size.target.min}";
|
|
623
|
+
readonly role: "Extra-small control height (32). Under a coarse pointer it rises to size.target.min";
|
|
624
|
+
};
|
|
625
|
+
readonly "measure-narrow": {
|
|
626
|
+
readonly value: "30rem";
|
|
627
|
+
readonly role: "Narrow text column width (480), for rich text in a tight container";
|
|
628
|
+
};
|
|
629
|
+
readonly "measure-prose": {
|
|
630
|
+
readonly value: "45rem";
|
|
631
|
+
readonly role: "Prose text column width (720), for lead copy and descriptions";
|
|
632
|
+
};
|
|
633
|
+
readonly "page-max": {
|
|
634
|
+
readonly value: "90rem";
|
|
635
|
+
readonly role: "Maximum width of the page column (1440), centred; the gutters above are its side padding";
|
|
636
|
+
};
|
|
637
|
+
readonly target: {
|
|
638
|
+
readonly min: {
|
|
639
|
+
readonly value: "2.75rem";
|
|
640
|
+
readonly role: "Minimum touch target (44); equals size.target.touch. Interactive controls reach it under a coarse pointer";
|
|
641
|
+
};
|
|
642
|
+
readonly pointer: {
|
|
643
|
+
readonly value: "1.5rem";
|
|
644
|
+
readonly role: "Minimum pointer target (24), WCAG 2.2 SC 2.5.8. The hit area under a fine pointer";
|
|
645
|
+
};
|
|
646
|
+
readonly touch: {
|
|
647
|
+
readonly value: "2.75rem";
|
|
648
|
+
readonly role: "Touch target (44), Apple HIG and WCAG 2.2 SC 2.5.5. The hit area under a coarse pointer and on native";
|
|
649
|
+
};
|
|
650
|
+
readonly spatial: {
|
|
651
|
+
readonly value: "3.75rem";
|
|
652
|
+
readonly role: "Spatial target (60), visionOS guidance for gaze targets. Set by hand with data-input=\"spatial\"";
|
|
653
|
+
};
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
readonly opacity: {
|
|
657
|
+
readonly grain: {
|
|
658
|
+
readonly value: "1";
|
|
659
|
+
readonly role: "Opacity of a Surface grain layer when grain is on. Grain is opt-in; 0 hides it";
|
|
660
|
+
};
|
|
661
|
+
readonly contact: {
|
|
662
|
+
readonly value: "1";
|
|
663
|
+
readonly role: "Opacity of a Surface contact-shadow layer. 0 hides it";
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
readonly elevation: {
|
|
667
|
+
readonly none: "none";
|
|
668
|
+
readonly sm: "0 1px 2px rgba(0, 0, 0, 0.05)";
|
|
669
|
+
readonly md: "0 4px 6px -1px rgba(0, 0, 0, 0.1)";
|
|
670
|
+
readonly lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1)";
|
|
671
|
+
};
|
|
672
|
+
readonly shadow: {
|
|
673
|
+
readonly raised: {
|
|
674
|
+
readonly role: "Shadow of a raised surface, the lowest step. None: depth is a border and a surface step, not a shadow";
|
|
675
|
+
readonly light: readonly [];
|
|
676
|
+
readonly dark: readonly [];
|
|
677
|
+
};
|
|
678
|
+
readonly overlay: {
|
|
679
|
+
readonly role: "Shadow of an overlay: dialog, command palette, popover, tooltip. None: an overlay is a solid surface with a border";
|
|
680
|
+
readonly light: readonly [];
|
|
681
|
+
readonly dark: readonly [];
|
|
682
|
+
};
|
|
683
|
+
readonly floating: {
|
|
684
|
+
readonly role: "Shadow of a floating surface, the highest step. None: a floating surface is a solid surface with a border";
|
|
685
|
+
readonly light: readonly [];
|
|
686
|
+
readonly dark: readonly [];
|
|
687
|
+
};
|
|
688
|
+
readonly glass: {
|
|
689
|
+
readonly role: "Two-layer shadow of a glass part: bars, panels, cards, chips";
|
|
690
|
+
readonly light: readonly [{
|
|
691
|
+
readonly offsetX: "0";
|
|
692
|
+
readonly offsetY: "1";
|
|
693
|
+
readonly blur: "2";
|
|
694
|
+
readonly spread: "0";
|
|
695
|
+
readonly color: "#0000000D";
|
|
696
|
+
readonly inset: false;
|
|
697
|
+
}, {
|
|
698
|
+
readonly offsetX: "0";
|
|
699
|
+
readonly offsetY: "4";
|
|
700
|
+
readonly blur: "14";
|
|
701
|
+
readonly spread: "0";
|
|
702
|
+
readonly color: "#0000000F";
|
|
703
|
+
readonly inset: false;
|
|
704
|
+
}];
|
|
705
|
+
readonly dark: readonly [{
|
|
706
|
+
readonly offsetX: "0";
|
|
707
|
+
readonly offsetY: "1";
|
|
708
|
+
readonly blur: "2";
|
|
709
|
+
readonly spread: "0";
|
|
710
|
+
readonly color: "#00000066";
|
|
711
|
+
readonly inset: false;
|
|
712
|
+
}, {
|
|
713
|
+
readonly offsetX: "0";
|
|
714
|
+
readonly offsetY: "4";
|
|
715
|
+
readonly blur: "14";
|
|
716
|
+
readonly spread: "0";
|
|
717
|
+
readonly color: "#0000004D";
|
|
718
|
+
readonly inset: false;
|
|
719
|
+
}];
|
|
720
|
+
};
|
|
721
|
+
readonly "glass-floating": {
|
|
722
|
+
readonly role: "Stronger two-layer shadow of a floating glass part: docks, menus, popovers, dialogs, sheets";
|
|
723
|
+
readonly light: readonly [{
|
|
724
|
+
readonly offsetX: "0";
|
|
725
|
+
readonly offsetY: "1";
|
|
726
|
+
readonly blur: "2";
|
|
727
|
+
readonly spread: "0";
|
|
728
|
+
readonly color: "#00000014";
|
|
729
|
+
readonly inset: false;
|
|
730
|
+
}, {
|
|
731
|
+
readonly offsetX: "0";
|
|
732
|
+
readonly offsetY: "10";
|
|
733
|
+
readonly blur: "28";
|
|
734
|
+
readonly spread: "0";
|
|
735
|
+
readonly color: "#0000001F";
|
|
736
|
+
readonly inset: false;
|
|
737
|
+
}];
|
|
738
|
+
readonly dark: readonly [{
|
|
739
|
+
readonly offsetX: "0";
|
|
740
|
+
readonly offsetY: "1";
|
|
741
|
+
readonly blur: "2";
|
|
742
|
+
readonly spread: "0";
|
|
743
|
+
readonly color: "#00000080";
|
|
744
|
+
readonly inset: false;
|
|
745
|
+
}, {
|
|
746
|
+
readonly offsetX: "0";
|
|
747
|
+
readonly offsetY: "10";
|
|
748
|
+
readonly blur: "28";
|
|
749
|
+
readonly spread: "0";
|
|
750
|
+
readonly color: "#00000080";
|
|
751
|
+
readonly inset: false;
|
|
752
|
+
}];
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
readonly blur: {
|
|
756
|
+
readonly glass: {
|
|
757
|
+
readonly sm: {
|
|
758
|
+
readonly value: "8px";
|
|
759
|
+
readonly role: "Backdrop blur radius of a small glass layer: scrims, chips, tracks (8)";
|
|
760
|
+
};
|
|
761
|
+
readonly md: {
|
|
762
|
+
readonly value: "12px";
|
|
763
|
+
readonly role: "Backdrop blur radius of a medium glass layer: cards, overlays on content (12)";
|
|
764
|
+
};
|
|
765
|
+
readonly lg: {
|
|
766
|
+
readonly value: "24px";
|
|
767
|
+
readonly role: "Backdrop blur radius of the budget ceiling (24): no glass layer blurs more";
|
|
768
|
+
};
|
|
769
|
+
readonly default: {
|
|
770
|
+
readonly value: "20px";
|
|
771
|
+
readonly role: "Backdrop blur radius of a glass part: panels, bars, menus, dialogs (20). Mirrors the backgroundBlur 20 of the Penpot Glass board";
|
|
772
|
+
};
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
readonly material: {
|
|
776
|
+
readonly glass: {
|
|
777
|
+
readonly opacity: {
|
|
778
|
+
readonly sm: {
|
|
779
|
+
readonly value: "0.6";
|
|
780
|
+
readonly role: "Glass tint opacity, step sm. Not for text-bearing surfaces";
|
|
781
|
+
};
|
|
782
|
+
readonly md: {
|
|
783
|
+
readonly value: "0.72";
|
|
784
|
+
readonly role: "Glass tint opacity, step md";
|
|
785
|
+
};
|
|
786
|
+
readonly lg: {
|
|
787
|
+
readonly value: "0.82";
|
|
788
|
+
readonly role: "Glass tint opacity, step lg. The floor for text on glass over a worst-case backdrop";
|
|
789
|
+
};
|
|
790
|
+
readonly xl: {
|
|
791
|
+
readonly value: "0.9";
|
|
792
|
+
readonly role: "Glass tint opacity, step xl: floating surfaces";
|
|
793
|
+
};
|
|
794
|
+
readonly default: {
|
|
795
|
+
readonly value: "{material.glass.opacity.lg}";
|
|
796
|
+
readonly role: "Glass tint opacity of a surface that does not pick a step";
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
readonly tint: {
|
|
800
|
+
readonly value: "{color.background}";
|
|
801
|
+
readonly role: "Glass tint colour: the page background, drawn at a glass opacity";
|
|
802
|
+
};
|
|
803
|
+
readonly highlight: {
|
|
804
|
+
readonly value: "{material.highlight.top}";
|
|
805
|
+
readonly role: "1 px light line along the top edge of a glass surface";
|
|
806
|
+
};
|
|
807
|
+
readonly hairline: {
|
|
808
|
+
readonly value: "{color.glass-border}";
|
|
809
|
+
readonly role: "Border colour of a glass surface";
|
|
810
|
+
};
|
|
811
|
+
readonly "tint-top": {
|
|
812
|
+
readonly light: "#FFFFFFA3";
|
|
813
|
+
readonly dark: "#1C1C1CB2";
|
|
814
|
+
readonly role: "Default glass tint, top stop. Foreground text only: no muted text, placeholder or control border. Dark is #1C1C1CB2, not the first recipe draft's #1C1C1CAF, so foreground text keeps 4.5:1 over a white backdrop (4.51:1, against 4.34:1)";
|
|
815
|
+
};
|
|
816
|
+
readonly "tint-bottom": {
|
|
817
|
+
readonly light: "#FFFFFF80";
|
|
818
|
+
readonly dark: "#1414149C";
|
|
819
|
+
readonly role: "Default glass tint, bottom stop. Dark is #1414149C, not the first recipe draft's #14141499, for the same reason";
|
|
820
|
+
};
|
|
821
|
+
readonly "tint-dense-top": {
|
|
822
|
+
readonly light: "#FFFFFFE6";
|
|
823
|
+
readonly dark: "#121212E0";
|
|
824
|
+
readonly role: "Dense glass tint, top stop: panels with body text, muted text, a placeholder or a control-identifying border";
|
|
825
|
+
};
|
|
826
|
+
readonly "tint-dense-bottom": {
|
|
827
|
+
readonly light: "#FFFFFFD6";
|
|
828
|
+
readonly dark: "#121212D1";
|
|
829
|
+
readonly role: "Dense glass tint, bottom stop";
|
|
830
|
+
};
|
|
831
|
+
readonly "hairline-edge": {
|
|
832
|
+
readonly light: "#00000014";
|
|
833
|
+
readonly dark: "#FFFFFF1A";
|
|
834
|
+
readonly role: "Outer 1 px edge of a glass part, ink 8% on light and white 10% on dark. Decorative only: a control border uses color.glass-input";
|
|
835
|
+
};
|
|
836
|
+
readonly "sheen-opacity": {
|
|
837
|
+
readonly light: "1";
|
|
838
|
+
readonly dark: "0.17";
|
|
839
|
+
readonly role: "Opacity of the white sheen drawn over the tint: the specular gradient and the inner highlight. Dark scales the light values by 0.17";
|
|
840
|
+
};
|
|
841
|
+
};
|
|
842
|
+
readonly highlight: {
|
|
843
|
+
readonly top: {
|
|
844
|
+
readonly light: "#FFFFFFCC";
|
|
845
|
+
readonly dark: "#FFFFFF2E";
|
|
846
|
+
readonly role: "Top edge highlight of a glass surface, with alpha";
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
readonly solid: {
|
|
850
|
+
readonly "material.glass.opacity.sm": "1";
|
|
851
|
+
readonly "material.glass.opacity.md": "1";
|
|
852
|
+
readonly "material.glass.opacity.lg": "1";
|
|
853
|
+
readonly "material.glass.opacity.xl": "1";
|
|
854
|
+
readonly "material.glass.tint": "{color.card}";
|
|
855
|
+
readonly "material.glass.highlight": "{color.border}";
|
|
856
|
+
readonly "material.glass.hairline": "{color.border}";
|
|
857
|
+
readonly "material.glass.tint-top": "{color.card}";
|
|
858
|
+
readonly "material.glass.tint-bottom": "{color.card}";
|
|
859
|
+
readonly "material.glass.tint-dense-top": "{color.card}";
|
|
860
|
+
readonly "material.glass.tint-dense-bottom": "{color.card}";
|
|
861
|
+
readonly "material.glass.hairline-edge": "{color.border}";
|
|
862
|
+
readonly "material.glass.sheen-opacity": "0";
|
|
863
|
+
readonly "shadow.glass": "{shadow.raised}";
|
|
864
|
+
readonly "shadow.glass-floating": "{shadow.floating}";
|
|
865
|
+
readonly "blur.glass.sm": "0px";
|
|
866
|
+
readonly "blur.glass.md": "0px";
|
|
867
|
+
readonly "blur.glass.lg": "0px";
|
|
868
|
+
readonly "blur.glass.default": "0px";
|
|
869
|
+
};
|
|
870
|
+
};
|
|
871
|
+
readonly depth: {
|
|
872
|
+
readonly "z-0": {
|
|
873
|
+
readonly border: {
|
|
874
|
+
readonly value: "{color.border}";
|
|
875
|
+
readonly role: "Depth step 0 (base) border: the hairline of the page and static content";
|
|
876
|
+
};
|
|
877
|
+
readonly surface: {
|
|
878
|
+
readonly value: "{color.background}";
|
|
879
|
+
readonly role: "Depth step 0 (base) surface: the page fill";
|
|
880
|
+
};
|
|
881
|
+
readonly offset: {
|
|
882
|
+
readonly value: "0px";
|
|
883
|
+
readonly role: "Depth step 0 (base) offset: flat, on the page";
|
|
884
|
+
};
|
|
885
|
+
readonly shadow: {
|
|
886
|
+
readonly value: "none";
|
|
887
|
+
readonly role: "Depth step 0 (base) shadow: none";
|
|
888
|
+
};
|
|
889
|
+
readonly tint: {
|
|
890
|
+
readonly value: "{material.glass.opacity.default}";
|
|
891
|
+
readonly role: "Depth step 0 (base) glass tint opacity";
|
|
892
|
+
};
|
|
893
|
+
};
|
|
894
|
+
readonly "z-1": {
|
|
895
|
+
readonly border: {
|
|
896
|
+
readonly value: "{color.border}";
|
|
897
|
+
readonly role: "Depth step 1 (raised) border: the hairline of an interactive control at rest (button, input, chip, a card that acts)";
|
|
898
|
+
};
|
|
899
|
+
readonly surface: {
|
|
900
|
+
readonly value: "{color.card}";
|
|
901
|
+
readonly role: "Depth step 1 (raised) surface: the card fill";
|
|
902
|
+
};
|
|
903
|
+
readonly offset: {
|
|
904
|
+
readonly value: "2px";
|
|
905
|
+
readonly role: "Depth step 1 (raised) offset: raised surface";
|
|
906
|
+
};
|
|
907
|
+
readonly shadow: {
|
|
908
|
+
readonly value: "{shadow.raised}";
|
|
909
|
+
readonly role: "Depth step 1 (raised) shadow";
|
|
910
|
+
};
|
|
911
|
+
readonly tint: {
|
|
912
|
+
readonly value: "{material.glass.opacity.default}";
|
|
913
|
+
readonly role: "Depth step 1 (raised) glass tint opacity";
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
readonly "z-2": {
|
|
917
|
+
readonly border: {
|
|
918
|
+
readonly value: "{color.border}";
|
|
919
|
+
readonly role: "Depth step 2 (overlay) border: the hairline of a popover, menu, dropdown, tooltip or dialog";
|
|
920
|
+
};
|
|
921
|
+
readonly surface: {
|
|
922
|
+
readonly value: "{color.popover}";
|
|
923
|
+
readonly role: "Depth step 2 (overlay) surface: the popover fill";
|
|
924
|
+
};
|
|
925
|
+
readonly offset: {
|
|
926
|
+
readonly value: "8px";
|
|
927
|
+
readonly role: "Depth step 2 (overlay) offset: overlay (dialog, popover, menu)";
|
|
928
|
+
};
|
|
929
|
+
readonly shadow: {
|
|
930
|
+
readonly value: "{shadow.overlay}";
|
|
931
|
+
readonly role: "Depth step 2 (overlay) shadow";
|
|
932
|
+
};
|
|
933
|
+
readonly tint: {
|
|
934
|
+
readonly value: "{material.glass.opacity.default}";
|
|
935
|
+
readonly role: "Depth step 2 (overlay) glass tint opacity";
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
readonly "z-3": {
|
|
939
|
+
readonly border: {
|
|
940
|
+
readonly value: "{color.border-strong}";
|
|
941
|
+
readonly role: "Depth step 3 (floating) border: the brighter hairline of a sticky toolbar, dock or toast";
|
|
942
|
+
};
|
|
943
|
+
readonly surface: {
|
|
944
|
+
readonly value: "{color.popover}";
|
|
945
|
+
readonly role: "Depth step 3 (floating) surface: the popover fill";
|
|
946
|
+
};
|
|
947
|
+
readonly offset: {
|
|
948
|
+
readonly value: "16px";
|
|
949
|
+
readonly role: "Depth step 3 (floating) offset: floating surface (dock, floating bar)";
|
|
950
|
+
};
|
|
951
|
+
readonly shadow: {
|
|
952
|
+
readonly value: "{shadow.floating}";
|
|
953
|
+
readonly role: "Depth step 3 (floating) shadow";
|
|
954
|
+
};
|
|
955
|
+
readonly tint: {
|
|
956
|
+
readonly value: "{material.glass.opacity.xl}";
|
|
957
|
+
readonly role: "Depth step 3 (floating) glass tint opacity";
|
|
958
|
+
};
|
|
959
|
+
};
|
|
960
|
+
readonly "z-4": {
|
|
961
|
+
readonly border: {
|
|
962
|
+
readonly value: "{color.border-strong}";
|
|
963
|
+
readonly role: "Depth step 4 (modal) border: the brighter hairline of the topmost surface, above a scrim";
|
|
964
|
+
};
|
|
965
|
+
readonly surface: {
|
|
966
|
+
readonly value: "{color.popover}";
|
|
967
|
+
readonly role: "Depth step 4 (modal) surface: the popover fill";
|
|
968
|
+
};
|
|
969
|
+
readonly offset: {
|
|
970
|
+
readonly value: "32px";
|
|
971
|
+
readonly role: "Depth step 4 (modal) offset: topmost surface";
|
|
972
|
+
};
|
|
973
|
+
readonly shadow: {
|
|
974
|
+
readonly value: "{shadow.floating}";
|
|
975
|
+
readonly role: "Depth step 4 (modal) shadow";
|
|
976
|
+
};
|
|
977
|
+
readonly tint: {
|
|
978
|
+
readonly value: "{material.glass.opacity.xl}";
|
|
979
|
+
readonly role: "Depth step 4 (modal) glass tint opacity";
|
|
980
|
+
};
|
|
981
|
+
};
|
|
982
|
+
};
|
|
983
|
+
readonly motion: {
|
|
984
|
+
readonly duration: {
|
|
985
|
+
readonly fast: "100ms";
|
|
986
|
+
readonly base: "200ms";
|
|
987
|
+
readonly slow: "300ms";
|
|
988
|
+
};
|
|
989
|
+
readonly easing: {
|
|
990
|
+
readonly enter: "ease-out";
|
|
991
|
+
readonly exit: "ease-in";
|
|
992
|
+
readonly layout: "ease-in-out";
|
|
993
|
+
};
|
|
994
|
+
readonly press: {
|
|
995
|
+
readonly duration: "{motion.duration.fast}";
|
|
996
|
+
readonly easing: "{motion.easing.enter}";
|
|
997
|
+
readonly role: "Pressed sink: scale 0.98 and down one depth step, ease-out. Under reduced motion the scale drops";
|
|
998
|
+
};
|
|
999
|
+
readonly raise: {
|
|
1000
|
+
readonly duration: "{motion.duration.base}";
|
|
1001
|
+
readonly easing: "{motion.easing.enter}";
|
|
1002
|
+
readonly role: "Hover or gaze raise and overlay entry, ease-out. An exit that plays it in reverse uses a data-[closed]: class";
|
|
1003
|
+
};
|
|
1004
|
+
readonly reducedMotion: "Collapse durations to 1ms or skip non-essential motion.";
|
|
1005
|
+
};
|
|
1006
|
+
readonly deprecated: {
|
|
1007
|
+
readonly "elevation.none": "Deprecated: no shadow; read depth.z-0.shadow. Stays for every 0.x release";
|
|
1008
|
+
readonly "elevation.sm": "Deprecated: read shadow.raised. Stays for every 0.x release";
|
|
1009
|
+
readonly "elevation.md": "Deprecated: read shadow.overlay. Stays for every 0.x release";
|
|
1010
|
+
readonly "elevation.lg": "Deprecated: read shadow.overlay. Stays for every 0.x release";
|
|
1011
|
+
};
|
|
1012
|
+
readonly iconography: {
|
|
1013
|
+
readonly library: "lucide-react";
|
|
1014
|
+
readonly size: {
|
|
1015
|
+
readonly default: "1rem";
|
|
1016
|
+
readonly compact: "0.875rem";
|
|
1017
|
+
readonly large: "1.25rem";
|
|
1018
|
+
};
|
|
1019
|
+
readonly strokeWidth: 2;
|
|
1020
|
+
readonly color: "currentColor";
|
|
1021
|
+
};
|
|
1022
|
+
readonly themes: {
|
|
1023
|
+
readonly maia: {
|
|
1024
|
+
readonly label: "Maia";
|
|
1025
|
+
readonly description: "Maia product theme. It equals the core default and overrides nothing: the flat monochrome workbench look is the default. The theme is kept so data-theme=\"maia\" stays valid.";
|
|
1026
|
+
};
|
|
1027
|
+
readonly paas: {
|
|
1028
|
+
readonly label: "PaaS";
|
|
1029
|
+
readonly description: "PaaS product theme: core neutral and status colours with JetBrains Mono for every face. Dark is the design default; light stays supported.";
|
|
1030
|
+
readonly defaultMode: "dark";
|
|
1031
|
+
readonly opacity: {
|
|
1032
|
+
readonly grain: "0";
|
|
1033
|
+
readonly contact: "0";
|
|
1034
|
+
};
|
|
1035
|
+
readonly typography: {
|
|
1036
|
+
readonly fontFamily: {
|
|
1037
|
+
readonly sans: "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace";
|
|
1038
|
+
readonly display: "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace";
|
|
1039
|
+
readonly mono: "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace";
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1044
|
+
};
|
|
1045
|
+
declare const componentContracts: {
|
|
1046
|
+
readonly $schema: "./component-contracts.schema.json";
|
|
1047
|
+
readonly version: "0.2.0";
|
|
1048
|
+
readonly components: {
|
|
1049
|
+
readonly badge: {
|
|
1050
|
+
readonly name: "Badge";
|
|
1051
|
+
readonly description: "A short, non-interactive label that tags or counts something, such as a status or a category.";
|
|
1052
|
+
readonly platforms: {
|
|
1053
|
+
readonly web: {
|
|
1054
|
+
readonly inherits: "span element attributes (title, aria-*, and the rest), forwarded to the root span";
|
|
1055
|
+
};
|
|
1056
|
+
readonly native: {};
|
|
1057
|
+
};
|
|
1058
|
+
readonly props: {
|
|
1059
|
+
readonly border: {
|
|
1060
|
+
readonly type: "enum";
|
|
1061
|
+
readonly values: readonly ["none", "strong"];
|
|
1062
|
+
readonly description: "Border weight. Leave it out to keep the border the variant draws. \"none\" removes the border; \"strong\" draws a full-contrast 1px border.";
|
|
1063
|
+
};
|
|
1064
|
+
readonly dot: {
|
|
1065
|
+
readonly type: "boolean";
|
|
1066
|
+
readonly default: false;
|
|
1067
|
+
readonly description: "Show a leading status dot. The dot is decorative and hidden from assistive technology, so the label says the status in words. It takes its colour from tone, and follows the label colour without a tone.";
|
|
1068
|
+
};
|
|
1069
|
+
readonly size: {
|
|
1070
|
+
readonly type: "enum";
|
|
1071
|
+
readonly values: readonly ["default", "header", "inline", "sm"];
|
|
1072
|
+
readonly default: "default";
|
|
1073
|
+
readonly description: "Chip size: \"header\" for page headers, \"sm\" for dense lists and tables, \"inline\" to sit in running text.";
|
|
1074
|
+
};
|
|
1075
|
+
readonly tone: {
|
|
1076
|
+
readonly type: "enum";
|
|
1077
|
+
readonly values: readonly ["neutral", "primary", "info", "success", "warning", "danger", "solid", "danger-tint", "danger-solid"];
|
|
1078
|
+
readonly description: "Meaning of the chip. A status tone (neutral to danger) colours the dot and keeps the label and surface neutral; without a variant it uses the \"secondary\" surface. \"solid\", \"danger-tint\" and \"danger-solid\" set their own surface and replace the variant. Leave it out for the plain variant look.";
|
|
1079
|
+
};
|
|
1080
|
+
readonly variant: {
|
|
1081
|
+
readonly type: "enum";
|
|
1082
|
+
readonly values: readonly ["default", "destructive", "outline", "secondary", "soft"];
|
|
1083
|
+
readonly description: "Surface of the chip. \"destructive\" still works, but new code uses tone \"danger-solid\", or tone \"danger\" with a dot for a calmer chip.";
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
};
|
|
1087
|
+
readonly button: {
|
|
1088
|
+
readonly name: "Button";
|
|
1089
|
+
readonly description: "Triggers an action when pressed. Use it for actions, not for navigation between pages (on web, render a link through asChild instead).";
|
|
1090
|
+
readonly platforms: {
|
|
1091
|
+
readonly web: {
|
|
1092
|
+
readonly inherits: "button element attributes (type, onClick, aria-*, and the rest), forwarded to the <button>";
|
|
1093
|
+
readonly props: {
|
|
1094
|
+
readonly asChild: {
|
|
1095
|
+
readonly type: "boolean";
|
|
1096
|
+
readonly default: false;
|
|
1097
|
+
readonly description: "Render the single child element (for example a router link) with the Button styles instead of a <button>.";
|
|
1098
|
+
};
|
|
1099
|
+
readonly children: {
|
|
1100
|
+
readonly type: "node";
|
|
1101
|
+
readonly description: "The label: text, an icon, or both.";
|
|
1102
|
+
};
|
|
1103
|
+
readonly size: {
|
|
1104
|
+
readonly type: "enum";
|
|
1105
|
+
readonly values: readonly ["default", "icon", "icon-lg", "lg", "sm"];
|
|
1106
|
+
readonly default: "default";
|
|
1107
|
+
readonly description: "Height and padding. \"icon\" and \"icon-lg\" are square icon-only buttons; \"icon-lg\" is the 44 px touch target.";
|
|
1108
|
+
};
|
|
1109
|
+
readonly variant: {
|
|
1110
|
+
readonly type: "enum";
|
|
1111
|
+
readonly values: readonly ["default", "destructive", "ghost", "link", "outline", "secondary", "unstyled"];
|
|
1112
|
+
readonly default: "default";
|
|
1113
|
+
readonly description: "Visual emphasis. \"unstyled\" adds no classes: the button draws only its className, and size has no effect.";
|
|
1114
|
+
};
|
|
1115
|
+
};
|
|
1116
|
+
};
|
|
1117
|
+
readonly native: {
|
|
1118
|
+
readonly inherits: "Pressable props except children (onPress, accessibilityLabel, style, and the rest)";
|
|
1119
|
+
readonly props: {
|
|
1120
|
+
readonly children: {
|
|
1121
|
+
readonly type: "text";
|
|
1122
|
+
readonly required: true;
|
|
1123
|
+
readonly description: "The label text, drawn in the variant's text style.";
|
|
1124
|
+
};
|
|
1125
|
+
readonly textStyle: {
|
|
1126
|
+
readonly type: "style";
|
|
1127
|
+
readonly description: "Style for the label text, applied after the variant's text style.";
|
|
1128
|
+
};
|
|
1129
|
+
};
|
|
1130
|
+
};
|
|
1131
|
+
};
|
|
1132
|
+
readonly props: {
|
|
1133
|
+
readonly disabled: {
|
|
1134
|
+
readonly type: "boolean";
|
|
1135
|
+
readonly default: false;
|
|
1136
|
+
readonly description: "Blocks presses and draws the disabled state.";
|
|
1137
|
+
};
|
|
1138
|
+
readonly size: {
|
|
1139
|
+
readonly type: "enum";
|
|
1140
|
+
readonly values: readonly ["default", "icon", "lg", "sm"];
|
|
1141
|
+
readonly default: "default";
|
|
1142
|
+
readonly description: "Height and padding. \"icon\" is a square icon-only button.";
|
|
1143
|
+
};
|
|
1144
|
+
readonly variant: {
|
|
1145
|
+
readonly type: "enum";
|
|
1146
|
+
readonly values: readonly ["default", "destructive", "ghost", "link", "outline", "secondary"];
|
|
1147
|
+
readonly default: "default";
|
|
1148
|
+
readonly description: "Visual emphasis. Use \"default\" for the main action, \"destructive\" only for irreversible actions, and \"link\" only inside text.";
|
|
1149
|
+
};
|
|
1150
|
+
};
|
|
1151
|
+
readonly states: {
|
|
1152
|
+
readonly disabled: {
|
|
1153
|
+
readonly description: "Not pressable; drawn in the disabled style.";
|
|
1154
|
+
};
|
|
1155
|
+
readonly focus: {
|
|
1156
|
+
readonly description: "Keyboard focus; draws the focus ring.";
|
|
1157
|
+
};
|
|
1158
|
+
readonly hover: {
|
|
1159
|
+
readonly description: "Pointer over the button; the background or text shifts.";
|
|
1160
|
+
};
|
|
1161
|
+
readonly pressed: {
|
|
1162
|
+
readonly description: "Being pressed. Native draws it; web keeps the hover style.";
|
|
1163
|
+
};
|
|
1164
|
+
};
|
|
1165
|
+
readonly accessibility: {
|
|
1166
|
+
readonly role: "button";
|
|
1167
|
+
readonly labels: {
|
|
1168
|
+
readonly name: {
|
|
1169
|
+
readonly required: true;
|
|
1170
|
+
readonly description: "The accessible name. Visible label text provides it; an icon-only button needs aria-label on web or accessibilityLabel on native.";
|
|
1171
|
+
};
|
|
1172
|
+
};
|
|
1173
|
+
};
|
|
1174
|
+
};
|
|
1175
|
+
readonly card: {
|
|
1176
|
+
readonly name: "Card";
|
|
1177
|
+
readonly description: "A surface that groups related content and actions.";
|
|
1178
|
+
readonly platforms: {
|
|
1179
|
+
readonly web: {};
|
|
1180
|
+
readonly native: {};
|
|
1181
|
+
};
|
|
1182
|
+
readonly props: {};
|
|
1183
|
+
readonly parts: {
|
|
1184
|
+
readonly Card: {
|
|
1185
|
+
readonly description: "The surface that holds the other parts.";
|
|
1186
|
+
};
|
|
1187
|
+
readonly CardHeader: {
|
|
1188
|
+
readonly description: "The top area, holding the title and description.";
|
|
1189
|
+
};
|
|
1190
|
+
readonly CardTitle: {
|
|
1191
|
+
readonly description: "The card's heading.";
|
|
1192
|
+
};
|
|
1193
|
+
readonly CardDescription: {
|
|
1194
|
+
readonly description: "Supporting text under the title.";
|
|
1195
|
+
};
|
|
1196
|
+
readonly CardContent: {
|
|
1197
|
+
readonly description: "The main body.";
|
|
1198
|
+
};
|
|
1199
|
+
readonly CardFooter: {
|
|
1200
|
+
readonly description: "The bottom area, usually for actions.";
|
|
1201
|
+
};
|
|
1202
|
+
};
|
|
1203
|
+
};
|
|
1204
|
+
readonly heading: {
|
|
1205
|
+
readonly name: "Heading";
|
|
1206
|
+
readonly description: "A section title, ranked h1 to h6.";
|
|
1207
|
+
readonly platforms: {
|
|
1208
|
+
readonly web: {};
|
|
1209
|
+
readonly native: {};
|
|
1210
|
+
};
|
|
1211
|
+
readonly props: {
|
|
1212
|
+
readonly level: {
|
|
1213
|
+
readonly type: "enum";
|
|
1214
|
+
readonly values: readonly [1, 2, 3, 4, 5, 6];
|
|
1215
|
+
readonly description: "The heading rank, 1 (page title) to 6.";
|
|
1216
|
+
};
|
|
1217
|
+
};
|
|
1218
|
+
readonly accessibility: {
|
|
1219
|
+
readonly role: "heading";
|
|
1220
|
+
};
|
|
1221
|
+
};
|
|
1222
|
+
readonly text: {
|
|
1223
|
+
readonly name: "Text";
|
|
1224
|
+
readonly description: "Body text whose scale, tone and weight come from the theme tokens.";
|
|
1225
|
+
readonly platforms: {
|
|
1226
|
+
readonly web: {};
|
|
1227
|
+
readonly native: {};
|
|
1228
|
+
};
|
|
1229
|
+
readonly props: {
|
|
1230
|
+
readonly size: {
|
|
1231
|
+
readonly type: "enum";
|
|
1232
|
+
readonly values: readonly ["base", "caption", "lead", "small"];
|
|
1233
|
+
readonly description: "The type scale step.";
|
|
1234
|
+
};
|
|
1235
|
+
readonly tone: {
|
|
1236
|
+
readonly type: "enum";
|
|
1237
|
+
readonly values: readonly ["default", "muted"];
|
|
1238
|
+
readonly description: "The text color role. \"muted\" is for secondary text.";
|
|
1239
|
+
};
|
|
1240
|
+
readonly weight: {
|
|
1241
|
+
readonly type: "enum";
|
|
1242
|
+
readonly values: readonly ["medium", "normal", "semibold"];
|
|
1243
|
+
readonly description: "The font weight.";
|
|
1244
|
+
};
|
|
1245
|
+
};
|
|
1246
|
+
};
|
|
1247
|
+
};
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
/** Product themes resolved to native units: sRGB hex, points, primary font faces. */
|
|
1251
|
+
declare const productThemes: {
|
|
1252
|
+
readonly maia: {
|
|
1253
|
+
readonly colors: {
|
|
1254
|
+
readonly dark: {
|
|
1255
|
+
readonly background: "#000000";
|
|
1256
|
+
readonly foreground: "#ffffff";
|
|
1257
|
+
readonly card: "#000000";
|
|
1258
|
+
readonly cardForeground: "#ffffff";
|
|
1259
|
+
readonly popover: "#000000";
|
|
1260
|
+
readonly popoverForeground: "#ededed";
|
|
1261
|
+
readonly primary: "#ffffff";
|
|
1262
|
+
readonly primaryForeground: "#000000";
|
|
1263
|
+
readonly secondary: "#262626";
|
|
1264
|
+
readonly secondaryForeground: "#ededed";
|
|
1265
|
+
readonly muted: "#000000";
|
|
1266
|
+
readonly mutedForeground: "#a3a3a3";
|
|
1267
|
+
readonly accent: "#262626";
|
|
1268
|
+
readonly accentForeground: "#ededed";
|
|
1269
|
+
readonly destructive: "#fa6961";
|
|
1270
|
+
readonly destructiveForeground: "#171717";
|
|
1271
|
+
readonly success: "#4ed589";
|
|
1272
|
+
readonly successForeground: "#171717";
|
|
1273
|
+
readonly warning: "#f0bb3b";
|
|
1274
|
+
readonly warningForeground: "#171717";
|
|
1275
|
+
readonly info: "#65b2f1";
|
|
1276
|
+
readonly infoForeground: "#171717";
|
|
1277
|
+
readonly diffAdded: "#102b17";
|
|
1278
|
+
readonly diffRemoved: "#3b1816";
|
|
1279
|
+
readonly border: "#262626";
|
|
1280
|
+
readonly input: "#696969";
|
|
1281
|
+
readonly ring: "#d4d4d4";
|
|
1282
|
+
readonly sidebar: "#000000";
|
|
1283
|
+
readonly pill: "#000000";
|
|
1284
|
+
readonly pillBorder: "#262626";
|
|
1285
|
+
readonly composerBorder: "#2a2a2a";
|
|
1286
|
+
readonly statusNeedsYou: "#eab305";
|
|
1287
|
+
readonly statusUnread: "#3b82f6";
|
|
1288
|
+
readonly statusFailed: "#ef4444";
|
|
1289
|
+
readonly statusDone: "#00c950";
|
|
1290
|
+
readonly statusRing: "#a3a3a3";
|
|
1291
|
+
};
|
|
1292
|
+
readonly light: {
|
|
1293
|
+
readonly background: "#ffffff";
|
|
1294
|
+
readonly foreground: "#000000";
|
|
1295
|
+
readonly card: "#ffffff";
|
|
1296
|
+
readonly cardForeground: "#000000";
|
|
1297
|
+
readonly popover: "#ffffff";
|
|
1298
|
+
readonly popoverForeground: "#000000";
|
|
1299
|
+
readonly primary: "#000000";
|
|
1300
|
+
readonly primaryForeground: "#ffffff";
|
|
1301
|
+
readonly secondary: "#f5f5f5";
|
|
1302
|
+
readonly secondaryForeground: "#171717";
|
|
1303
|
+
readonly muted: "#f5f5f5";
|
|
1304
|
+
readonly mutedForeground: "#6a6a6a";
|
|
1305
|
+
readonly accent: "#f5f5f5";
|
|
1306
|
+
readonly accentForeground: "#171717";
|
|
1307
|
+
readonly destructive: "#cf1f29";
|
|
1308
|
+
readonly destructiveForeground: "#fafafa";
|
|
1309
|
+
readonly success: "#1e7546";
|
|
1310
|
+
readonly successForeground: "#fafafa";
|
|
1311
|
+
readonly warning: "#825a27";
|
|
1312
|
+
readonly warningForeground: "#fafafa";
|
|
1313
|
+
readonly info: "#1762b6";
|
|
1314
|
+
readonly infoForeground: "#fafafa";
|
|
1315
|
+
readonly diffAdded: "#d9f3dd";
|
|
1316
|
+
readonly diffRemoved: "#ffe4e1";
|
|
1317
|
+
readonly border: "#e5e5e5";
|
|
1318
|
+
readonly input: "#858585";
|
|
1319
|
+
readonly ring: "#0a0a0a";
|
|
1320
|
+
readonly sidebar: "#fafafa";
|
|
1321
|
+
readonly pill: "#f5f5f5";
|
|
1322
|
+
readonly pillBorder: "#e5e5e5";
|
|
1323
|
+
readonly composerBorder: "#d4d4d4";
|
|
1324
|
+
readonly statusNeedsYou: "#a65f00";
|
|
1325
|
+
readonly statusUnread: "#2563eb";
|
|
1326
|
+
readonly statusFailed: "#dc2626";
|
|
1327
|
+
readonly statusDone: "#15803d";
|
|
1328
|
+
readonly statusRing: "#737373";
|
|
1329
|
+
};
|
|
1330
|
+
};
|
|
1331
|
+
readonly defaultMode: null;
|
|
1332
|
+
readonly label: "Maia";
|
|
1333
|
+
readonly radius: {
|
|
1334
|
+
readonly none: 0;
|
|
1335
|
+
readonly sm: 4;
|
|
1336
|
+
readonly md: 8;
|
|
1337
|
+
readonly lg: 12;
|
|
1338
|
+
readonly xl: 16;
|
|
1339
|
+
readonly full: 9999;
|
|
1340
|
+
readonly control: 4;
|
|
1341
|
+
readonly surface: 6;
|
|
1342
|
+
};
|
|
1343
|
+
readonly typography: {
|
|
1344
|
+
readonly fontFamily: {
|
|
1345
|
+
readonly sans: "JetBrains Mono";
|
|
1346
|
+
readonly display: "JetBrains Mono";
|
|
1347
|
+
readonly mono: "JetBrains Mono";
|
|
1348
|
+
};
|
|
1349
|
+
readonly fontWeight: {
|
|
1350
|
+
readonly heading: 500;
|
|
1351
|
+
readonly display: 600;
|
|
1352
|
+
readonly body: 400;
|
|
1353
|
+
readonly caption: 400;
|
|
1354
|
+
readonly label: 500;
|
|
1355
|
+
};
|
|
1356
|
+
readonly scale: {
|
|
1357
|
+
readonly display: {
|
|
1358
|
+
readonly fontSize: 28;
|
|
1359
|
+
readonly lineHeight: 30.8;
|
|
1360
|
+
};
|
|
1361
|
+
readonly h1: {
|
|
1362
|
+
readonly fontSize: 20;
|
|
1363
|
+
readonly lineHeight: 26;
|
|
1364
|
+
};
|
|
1365
|
+
readonly h2: {
|
|
1366
|
+
readonly fontSize: 14;
|
|
1367
|
+
readonly lineHeight: 19.6;
|
|
1368
|
+
};
|
|
1369
|
+
readonly h3: {
|
|
1370
|
+
readonly fontSize: 13;
|
|
1371
|
+
readonly lineHeight: 18.2;
|
|
1372
|
+
};
|
|
1373
|
+
readonly h4: {
|
|
1374
|
+
readonly fontSize: 13;
|
|
1375
|
+
readonly lineHeight: 18.2;
|
|
1376
|
+
};
|
|
1377
|
+
readonly h5: {
|
|
1378
|
+
readonly fontSize: 13;
|
|
1379
|
+
readonly lineHeight: 18.2;
|
|
1380
|
+
};
|
|
1381
|
+
readonly h6: {
|
|
1382
|
+
readonly fontSize: 13;
|
|
1383
|
+
readonly lineHeight: 18.2;
|
|
1384
|
+
};
|
|
1385
|
+
readonly bodyLarge: {
|
|
1386
|
+
readonly fontSize: 15;
|
|
1387
|
+
readonly lineHeight: 24;
|
|
1388
|
+
};
|
|
1389
|
+
readonly body: {
|
|
1390
|
+
readonly fontSize: 14;
|
|
1391
|
+
readonly lineHeight: 21;
|
|
1392
|
+
};
|
|
1393
|
+
readonly bodySmall: {
|
|
1394
|
+
readonly fontSize: 13;
|
|
1395
|
+
readonly lineHeight: 18.85;
|
|
1396
|
+
};
|
|
1397
|
+
readonly caption: {
|
|
1398
|
+
readonly fontSize: 12;
|
|
1399
|
+
readonly lineHeight: 16.8;
|
|
1400
|
+
};
|
|
1401
|
+
readonly label: {
|
|
1402
|
+
readonly fontSize: 11;
|
|
1403
|
+
readonly lineHeight: 15.4;
|
|
1404
|
+
};
|
|
1405
|
+
};
|
|
1406
|
+
};
|
|
1407
|
+
};
|
|
1408
|
+
readonly paas: {
|
|
1409
|
+
readonly colors: {
|
|
1410
|
+
readonly dark: {
|
|
1411
|
+
readonly background: "#000000";
|
|
1412
|
+
readonly foreground: "#ffffff";
|
|
1413
|
+
readonly card: "#000000";
|
|
1414
|
+
readonly cardForeground: "#ffffff";
|
|
1415
|
+
readonly popover: "#000000";
|
|
1416
|
+
readonly popoverForeground: "#ededed";
|
|
1417
|
+
readonly primary: "#ffffff";
|
|
1418
|
+
readonly primaryForeground: "#000000";
|
|
1419
|
+
readonly secondary: "#262626";
|
|
1420
|
+
readonly secondaryForeground: "#ededed";
|
|
1421
|
+
readonly muted: "#000000";
|
|
1422
|
+
readonly mutedForeground: "#a3a3a3";
|
|
1423
|
+
readonly accent: "#262626";
|
|
1424
|
+
readonly accentForeground: "#ededed";
|
|
1425
|
+
readonly destructive: "#fa6961";
|
|
1426
|
+
readonly destructiveForeground: "#171717";
|
|
1427
|
+
readonly success: "#4ed589";
|
|
1428
|
+
readonly successForeground: "#171717";
|
|
1429
|
+
readonly warning: "#f0bb3b";
|
|
1430
|
+
readonly warningForeground: "#171717";
|
|
1431
|
+
readonly info: "#65b2f1";
|
|
1432
|
+
readonly infoForeground: "#171717";
|
|
1433
|
+
readonly diffAdded: "#102b17";
|
|
1434
|
+
readonly diffRemoved: "#3b1816";
|
|
1435
|
+
readonly border: "#262626";
|
|
1436
|
+
readonly input: "#696969";
|
|
1437
|
+
readonly ring: "#d4d4d4";
|
|
1438
|
+
readonly sidebar: "#000000";
|
|
1439
|
+
readonly pill: "#000000";
|
|
1440
|
+
readonly pillBorder: "#262626";
|
|
1441
|
+
readonly composerBorder: "#2a2a2a";
|
|
1442
|
+
readonly statusNeedsYou: "#eab305";
|
|
1443
|
+
readonly statusUnread: "#3b82f6";
|
|
1444
|
+
readonly statusFailed: "#ef4444";
|
|
1445
|
+
readonly statusDone: "#00c950";
|
|
1446
|
+
readonly statusRing: "#a3a3a3";
|
|
1447
|
+
};
|
|
1448
|
+
readonly light: {
|
|
1449
|
+
readonly background: "#ffffff";
|
|
1450
|
+
readonly foreground: "#000000";
|
|
1451
|
+
readonly card: "#ffffff";
|
|
1452
|
+
readonly cardForeground: "#000000";
|
|
1453
|
+
readonly popover: "#ffffff";
|
|
1454
|
+
readonly popoverForeground: "#000000";
|
|
1455
|
+
readonly primary: "#000000";
|
|
1456
|
+
readonly primaryForeground: "#ffffff";
|
|
1457
|
+
readonly secondary: "#f5f5f5";
|
|
1458
|
+
readonly secondaryForeground: "#171717";
|
|
1459
|
+
readonly muted: "#f5f5f5";
|
|
1460
|
+
readonly mutedForeground: "#6a6a6a";
|
|
1461
|
+
readonly accent: "#f5f5f5";
|
|
1462
|
+
readonly accentForeground: "#171717";
|
|
1463
|
+
readonly destructive: "#cf1f29";
|
|
1464
|
+
readonly destructiveForeground: "#fafafa";
|
|
1465
|
+
readonly success: "#1e7546";
|
|
1466
|
+
readonly successForeground: "#fafafa";
|
|
1467
|
+
readonly warning: "#825a27";
|
|
1468
|
+
readonly warningForeground: "#fafafa";
|
|
1469
|
+
readonly info: "#1762b6";
|
|
1470
|
+
readonly infoForeground: "#fafafa";
|
|
1471
|
+
readonly diffAdded: "#d9f3dd";
|
|
1472
|
+
readonly diffRemoved: "#ffe4e1";
|
|
1473
|
+
readonly border: "#e5e5e5";
|
|
1474
|
+
readonly input: "#858585";
|
|
1475
|
+
readonly ring: "#0a0a0a";
|
|
1476
|
+
readonly sidebar: "#fafafa";
|
|
1477
|
+
readonly pill: "#f5f5f5";
|
|
1478
|
+
readonly pillBorder: "#e5e5e5";
|
|
1479
|
+
readonly composerBorder: "#d4d4d4";
|
|
1480
|
+
readonly statusNeedsYou: "#a65f00";
|
|
1481
|
+
readonly statusUnread: "#2563eb";
|
|
1482
|
+
readonly statusFailed: "#dc2626";
|
|
1483
|
+
readonly statusDone: "#15803d";
|
|
1484
|
+
readonly statusRing: "#737373";
|
|
1485
|
+
};
|
|
1486
|
+
};
|
|
1487
|
+
readonly defaultMode: "dark";
|
|
1488
|
+
readonly label: "PaaS";
|
|
1489
|
+
readonly radius: {
|
|
1490
|
+
readonly none: 0;
|
|
1491
|
+
readonly sm: 4;
|
|
1492
|
+
readonly md: 8;
|
|
1493
|
+
readonly lg: 12;
|
|
1494
|
+
readonly xl: 16;
|
|
1495
|
+
readonly full: 9999;
|
|
1496
|
+
readonly control: 4;
|
|
1497
|
+
readonly surface: 6;
|
|
1498
|
+
};
|
|
1499
|
+
readonly typography: {
|
|
1500
|
+
readonly fontFamily: {
|
|
1501
|
+
readonly sans: "JetBrains Mono";
|
|
1502
|
+
readonly display: "JetBrains Mono";
|
|
1503
|
+
readonly mono: "JetBrains Mono";
|
|
1504
|
+
};
|
|
1505
|
+
readonly fontWeight: {
|
|
1506
|
+
readonly heading: 500;
|
|
1507
|
+
readonly display: 600;
|
|
1508
|
+
readonly body: 400;
|
|
1509
|
+
readonly caption: 400;
|
|
1510
|
+
readonly label: 500;
|
|
1511
|
+
};
|
|
1512
|
+
readonly scale: {
|
|
1513
|
+
readonly display: {
|
|
1514
|
+
readonly fontSize: 28;
|
|
1515
|
+
readonly lineHeight: 30.8;
|
|
1516
|
+
};
|
|
1517
|
+
readonly h1: {
|
|
1518
|
+
readonly fontSize: 20;
|
|
1519
|
+
readonly lineHeight: 26;
|
|
1520
|
+
};
|
|
1521
|
+
readonly h2: {
|
|
1522
|
+
readonly fontSize: 14;
|
|
1523
|
+
readonly lineHeight: 19.6;
|
|
1524
|
+
};
|
|
1525
|
+
readonly h3: {
|
|
1526
|
+
readonly fontSize: 13;
|
|
1527
|
+
readonly lineHeight: 18.2;
|
|
1528
|
+
};
|
|
1529
|
+
readonly h4: {
|
|
1530
|
+
readonly fontSize: 13;
|
|
1531
|
+
readonly lineHeight: 18.2;
|
|
1532
|
+
};
|
|
1533
|
+
readonly h5: {
|
|
1534
|
+
readonly fontSize: 13;
|
|
1535
|
+
readonly lineHeight: 18.2;
|
|
1536
|
+
};
|
|
1537
|
+
readonly h6: {
|
|
1538
|
+
readonly fontSize: 13;
|
|
1539
|
+
readonly lineHeight: 18.2;
|
|
1540
|
+
};
|
|
1541
|
+
readonly bodyLarge: {
|
|
1542
|
+
readonly fontSize: 15;
|
|
1543
|
+
readonly lineHeight: 24;
|
|
1544
|
+
};
|
|
1545
|
+
readonly body: {
|
|
1546
|
+
readonly fontSize: 14;
|
|
1547
|
+
readonly lineHeight: 21;
|
|
1548
|
+
};
|
|
1549
|
+
readonly bodySmall: {
|
|
1550
|
+
readonly fontSize: 13;
|
|
1551
|
+
readonly lineHeight: 18.85;
|
|
1552
|
+
};
|
|
1553
|
+
readonly caption: {
|
|
1554
|
+
readonly fontSize: 12;
|
|
1555
|
+
readonly lineHeight: 16.8;
|
|
1556
|
+
};
|
|
1557
|
+
readonly label: {
|
|
1558
|
+
readonly fontSize: 11;
|
|
1559
|
+
readonly lineHeight: 15.4;
|
|
1560
|
+
};
|
|
1561
|
+
};
|
|
1562
|
+
};
|
|
1563
|
+
};
|
|
1564
|
+
};
|
|
1565
|
+
/** Plain object for Tamagui's `createTokens`; this package does not depend on Tamagui. */
|
|
1566
|
+
declare const tamaguiTokens: {
|
|
1567
|
+
readonly color: {
|
|
1568
|
+
readonly backgroundDark: "#050505";
|
|
1569
|
+
readonly foregroundDark: "#ffffff";
|
|
1570
|
+
readonly cardDark: "#0a0a0a";
|
|
1571
|
+
readonly cardForegroundDark: "#ffffff";
|
|
1572
|
+
readonly popoverDark: "#0a0a0a";
|
|
1573
|
+
readonly popoverForegroundDark: "#ededed";
|
|
1574
|
+
readonly primaryDark: "#ffffff";
|
|
1575
|
+
readonly primaryForegroundDark: "#000000";
|
|
1576
|
+
readonly secondaryDark: "#262626";
|
|
1577
|
+
readonly secondaryForegroundDark: "#ededed";
|
|
1578
|
+
readonly mutedDark: "#262626";
|
|
1579
|
+
readonly mutedForegroundDark: "#a3a3a3";
|
|
1580
|
+
readonly accentDark: "#262626";
|
|
1581
|
+
readonly accentForegroundDark: "#ededed";
|
|
1582
|
+
readonly destructiveDark: "#fa6961";
|
|
1583
|
+
readonly destructiveForegroundDark: "#171717";
|
|
1584
|
+
readonly successDark: "#4ed589";
|
|
1585
|
+
readonly successForegroundDark: "#171717";
|
|
1586
|
+
readonly warningDark: "#f0bb3b";
|
|
1587
|
+
readonly warningForegroundDark: "#171717";
|
|
1588
|
+
readonly infoDark: "#65b2f1";
|
|
1589
|
+
readonly infoForegroundDark: "#171717";
|
|
1590
|
+
readonly diffAddedDark: "#102b17";
|
|
1591
|
+
readonly diffRemovedDark: "#3b1816";
|
|
1592
|
+
readonly borderDark: "#262626";
|
|
1593
|
+
readonly inputDark: "#696969";
|
|
1594
|
+
readonly ringDark: "#d4d4d4";
|
|
1595
|
+
readonly sidebarDark: "#000000";
|
|
1596
|
+
readonly pillDark: "#000000";
|
|
1597
|
+
readonly pillBorderDark: "#262626";
|
|
1598
|
+
readonly composerBorderDark: "#2a2a2a";
|
|
1599
|
+
readonly statusNeedsYouDark: "#eab305";
|
|
1600
|
+
readonly statusUnreadDark: "#3b82f6";
|
|
1601
|
+
readonly statusFailedDark: "#ef4444";
|
|
1602
|
+
readonly statusDoneDark: "#00c950";
|
|
1603
|
+
readonly statusRingDark: "#a3a3a3";
|
|
1604
|
+
readonly backgroundLight: "#ffffff";
|
|
1605
|
+
readonly foregroundLight: "#000000";
|
|
1606
|
+
readonly cardLight: "#ffffff";
|
|
1607
|
+
readonly cardForegroundLight: "#000000";
|
|
1608
|
+
readonly popoverLight: "#ffffff";
|
|
1609
|
+
readonly popoverForegroundLight: "#000000";
|
|
1610
|
+
readonly primaryLight: "#000000";
|
|
1611
|
+
readonly primaryForegroundLight: "#ffffff";
|
|
1612
|
+
readonly secondaryLight: "#f5f5f5";
|
|
1613
|
+
readonly secondaryForegroundLight: "#171717";
|
|
1614
|
+
readonly mutedLight: "#f5f5f5";
|
|
1615
|
+
readonly mutedForegroundLight: "#6a6a6a";
|
|
1616
|
+
readonly accentLight: "#f5f5f5";
|
|
1617
|
+
readonly accentForegroundLight: "#171717";
|
|
1618
|
+
readonly destructiveLight: "#cf1f29";
|
|
1619
|
+
readonly destructiveForegroundLight: "#fafafa";
|
|
1620
|
+
readonly successLight: "#1e7546";
|
|
1621
|
+
readonly successForegroundLight: "#fafafa";
|
|
1622
|
+
readonly warningLight: "#825a27";
|
|
1623
|
+
readonly warningForegroundLight: "#fafafa";
|
|
1624
|
+
readonly infoLight: "#1762b6";
|
|
1625
|
+
readonly infoForegroundLight: "#fafafa";
|
|
1626
|
+
readonly diffAddedLight: "#d9f3dd";
|
|
1627
|
+
readonly diffRemovedLight: "#ffe4e1";
|
|
1628
|
+
readonly borderLight: "#e5e5e5";
|
|
1629
|
+
readonly inputLight: "#858585";
|
|
1630
|
+
readonly ringLight: "#0a0a0a";
|
|
1631
|
+
readonly sidebarLight: "#fafafa";
|
|
1632
|
+
readonly pillLight: "#f5f5f5";
|
|
1633
|
+
readonly pillBorderLight: "#e5e5e5";
|
|
1634
|
+
readonly composerBorderLight: "#d4d4d4";
|
|
1635
|
+
readonly statusNeedsYouLight: "#a65f00";
|
|
1636
|
+
readonly statusUnreadLight: "#2563eb";
|
|
1637
|
+
readonly statusFailedLight: "#dc2626";
|
|
1638
|
+
readonly statusDoneLight: "#15803d";
|
|
1639
|
+
readonly statusRingLight: "#737373";
|
|
1640
|
+
};
|
|
1641
|
+
readonly radius: {
|
|
1642
|
+
readonly none: 0;
|
|
1643
|
+
readonly sm: 4;
|
|
1644
|
+
readonly md: 8;
|
|
1645
|
+
readonly lg: 12;
|
|
1646
|
+
readonly xl: 16;
|
|
1647
|
+
readonly full: 9999;
|
|
1648
|
+
readonly control: 4;
|
|
1649
|
+
readonly surface: 6;
|
|
1650
|
+
};
|
|
1651
|
+
readonly size: {
|
|
1652
|
+
readonly "1": 4;
|
|
1653
|
+
readonly "2": 8;
|
|
1654
|
+
readonly "3": 12;
|
|
1655
|
+
readonly "4": 16;
|
|
1656
|
+
readonly "5": 20;
|
|
1657
|
+
readonly "6": 24;
|
|
1658
|
+
readonly "8": 32;
|
|
1659
|
+
readonly "10": 40;
|
|
1660
|
+
readonly "12": 48;
|
|
1661
|
+
readonly "16": 64;
|
|
1662
|
+
readonly "24": 96;
|
|
1663
|
+
};
|
|
1664
|
+
readonly space: {
|
|
1665
|
+
readonly "1": 4;
|
|
1666
|
+
readonly "2": 8;
|
|
1667
|
+
readonly "3": 12;
|
|
1668
|
+
readonly "4": 16;
|
|
1669
|
+
readonly "5": 20;
|
|
1670
|
+
readonly "6": 24;
|
|
1671
|
+
readonly "8": 32;
|
|
1672
|
+
readonly "10": 40;
|
|
1673
|
+
readonly "12": 48;
|
|
1674
|
+
readonly "16": 64;
|
|
1675
|
+
readonly "24": 96;
|
|
1676
|
+
};
|
|
1677
|
+
readonly zIndex: {
|
|
1678
|
+
readonly "0": 0;
|
|
1679
|
+
readonly "1": 100;
|
|
1680
|
+
readonly "2": 200;
|
|
1681
|
+
readonly "3": 300;
|
|
1682
|
+
readonly "4": 400;
|
|
1683
|
+
readonly "5": 500;
|
|
1684
|
+
};
|
|
1685
|
+
};
|
|
1686
|
+
/** Plain object for Tamagui's `createTamagui({ themes })`, keyed `<theme>_<mode>`. */
|
|
1687
|
+
declare const tamaguiThemes: {
|
|
1688
|
+
readonly maia_dark: {
|
|
1689
|
+
readonly background: "#000000";
|
|
1690
|
+
readonly color: "#ffffff";
|
|
1691
|
+
readonly card: "#000000";
|
|
1692
|
+
readonly cardForeground: "#ffffff";
|
|
1693
|
+
readonly popover: "#000000";
|
|
1694
|
+
readonly popoverForeground: "#ededed";
|
|
1695
|
+
readonly primary: "#ffffff";
|
|
1696
|
+
readonly primaryForeground: "#000000";
|
|
1697
|
+
readonly secondary: "#262626";
|
|
1698
|
+
readonly secondaryForeground: "#ededed";
|
|
1699
|
+
readonly muted: "#000000";
|
|
1700
|
+
readonly mutedForeground: "#a3a3a3";
|
|
1701
|
+
readonly accent: "#262626";
|
|
1702
|
+
readonly accentForeground: "#ededed";
|
|
1703
|
+
readonly destructive: "#fa6961";
|
|
1704
|
+
readonly destructiveForeground: "#171717";
|
|
1705
|
+
readonly success: "#4ed589";
|
|
1706
|
+
readonly successForeground: "#171717";
|
|
1707
|
+
readonly warning: "#f0bb3b";
|
|
1708
|
+
readonly warningForeground: "#171717";
|
|
1709
|
+
readonly info: "#65b2f1";
|
|
1710
|
+
readonly infoForeground: "#171717";
|
|
1711
|
+
readonly diffAdded: "#102b17";
|
|
1712
|
+
readonly diffRemoved: "#3b1816";
|
|
1713
|
+
readonly borderColor: "#262626";
|
|
1714
|
+
readonly input: "#696969";
|
|
1715
|
+
readonly ring: "#d4d4d4";
|
|
1716
|
+
readonly sidebar: "#000000";
|
|
1717
|
+
readonly pill: "#000000";
|
|
1718
|
+
readonly pillBorder: "#262626";
|
|
1719
|
+
readonly composerBorder: "#2a2a2a";
|
|
1720
|
+
readonly statusNeedsYou: "#eab305";
|
|
1721
|
+
readonly statusUnread: "#3b82f6";
|
|
1722
|
+
readonly statusFailed: "#ef4444";
|
|
1723
|
+
readonly statusDone: "#00c950";
|
|
1724
|
+
readonly statusRing: "#a3a3a3";
|
|
1725
|
+
readonly placeholderColor: "#a3a3a3";
|
|
1726
|
+
};
|
|
1727
|
+
readonly maia_light: {
|
|
1728
|
+
readonly background: "#ffffff";
|
|
1729
|
+
readonly color: "#000000";
|
|
1730
|
+
readonly card: "#ffffff";
|
|
1731
|
+
readonly cardForeground: "#000000";
|
|
1732
|
+
readonly popover: "#ffffff";
|
|
1733
|
+
readonly popoverForeground: "#000000";
|
|
1734
|
+
readonly primary: "#000000";
|
|
1735
|
+
readonly primaryForeground: "#ffffff";
|
|
1736
|
+
readonly secondary: "#f5f5f5";
|
|
1737
|
+
readonly secondaryForeground: "#171717";
|
|
1738
|
+
readonly muted: "#f5f5f5";
|
|
1739
|
+
readonly mutedForeground: "#6a6a6a";
|
|
1740
|
+
readonly accent: "#f5f5f5";
|
|
1741
|
+
readonly accentForeground: "#171717";
|
|
1742
|
+
readonly destructive: "#cf1f29";
|
|
1743
|
+
readonly destructiveForeground: "#fafafa";
|
|
1744
|
+
readonly success: "#1e7546";
|
|
1745
|
+
readonly successForeground: "#fafafa";
|
|
1746
|
+
readonly warning: "#825a27";
|
|
1747
|
+
readonly warningForeground: "#fafafa";
|
|
1748
|
+
readonly info: "#1762b6";
|
|
1749
|
+
readonly infoForeground: "#fafafa";
|
|
1750
|
+
readonly diffAdded: "#d9f3dd";
|
|
1751
|
+
readonly diffRemoved: "#ffe4e1";
|
|
1752
|
+
readonly borderColor: "#e5e5e5";
|
|
1753
|
+
readonly input: "#858585";
|
|
1754
|
+
readonly ring: "#0a0a0a";
|
|
1755
|
+
readonly sidebar: "#fafafa";
|
|
1756
|
+
readonly pill: "#f5f5f5";
|
|
1757
|
+
readonly pillBorder: "#e5e5e5";
|
|
1758
|
+
readonly composerBorder: "#d4d4d4";
|
|
1759
|
+
readonly statusNeedsYou: "#a65f00";
|
|
1760
|
+
readonly statusUnread: "#2563eb";
|
|
1761
|
+
readonly statusFailed: "#dc2626";
|
|
1762
|
+
readonly statusDone: "#15803d";
|
|
1763
|
+
readonly statusRing: "#737373";
|
|
1764
|
+
readonly placeholderColor: "#6a6a6a";
|
|
1765
|
+
};
|
|
1766
|
+
readonly paas_dark: {
|
|
1767
|
+
readonly background: "#000000";
|
|
1768
|
+
readonly color: "#ffffff";
|
|
1769
|
+
readonly card: "#000000";
|
|
1770
|
+
readonly cardForeground: "#ffffff";
|
|
1771
|
+
readonly popover: "#000000";
|
|
1772
|
+
readonly popoverForeground: "#ededed";
|
|
1773
|
+
readonly primary: "#ffffff";
|
|
1774
|
+
readonly primaryForeground: "#000000";
|
|
1775
|
+
readonly secondary: "#262626";
|
|
1776
|
+
readonly secondaryForeground: "#ededed";
|
|
1777
|
+
readonly muted: "#000000";
|
|
1778
|
+
readonly mutedForeground: "#a3a3a3";
|
|
1779
|
+
readonly accent: "#262626";
|
|
1780
|
+
readonly accentForeground: "#ededed";
|
|
1781
|
+
readonly destructive: "#fa6961";
|
|
1782
|
+
readonly destructiveForeground: "#171717";
|
|
1783
|
+
readonly success: "#4ed589";
|
|
1784
|
+
readonly successForeground: "#171717";
|
|
1785
|
+
readonly warning: "#f0bb3b";
|
|
1786
|
+
readonly warningForeground: "#171717";
|
|
1787
|
+
readonly info: "#65b2f1";
|
|
1788
|
+
readonly infoForeground: "#171717";
|
|
1789
|
+
readonly diffAdded: "#102b17";
|
|
1790
|
+
readonly diffRemoved: "#3b1816";
|
|
1791
|
+
readonly borderColor: "#262626";
|
|
1792
|
+
readonly input: "#696969";
|
|
1793
|
+
readonly ring: "#d4d4d4";
|
|
1794
|
+
readonly sidebar: "#000000";
|
|
1795
|
+
readonly pill: "#000000";
|
|
1796
|
+
readonly pillBorder: "#262626";
|
|
1797
|
+
readonly composerBorder: "#2a2a2a";
|
|
1798
|
+
readonly statusNeedsYou: "#eab305";
|
|
1799
|
+
readonly statusUnread: "#3b82f6";
|
|
1800
|
+
readonly statusFailed: "#ef4444";
|
|
1801
|
+
readonly statusDone: "#00c950";
|
|
1802
|
+
readonly statusRing: "#a3a3a3";
|
|
1803
|
+
readonly placeholderColor: "#a3a3a3";
|
|
1804
|
+
};
|
|
1805
|
+
readonly paas_light: {
|
|
1806
|
+
readonly background: "#ffffff";
|
|
1807
|
+
readonly color: "#000000";
|
|
1808
|
+
readonly card: "#ffffff";
|
|
1809
|
+
readonly cardForeground: "#000000";
|
|
1810
|
+
readonly popover: "#ffffff";
|
|
1811
|
+
readonly popoverForeground: "#000000";
|
|
1812
|
+
readonly primary: "#000000";
|
|
1813
|
+
readonly primaryForeground: "#ffffff";
|
|
1814
|
+
readonly secondary: "#f5f5f5";
|
|
1815
|
+
readonly secondaryForeground: "#171717";
|
|
1816
|
+
readonly muted: "#f5f5f5";
|
|
1817
|
+
readonly mutedForeground: "#6a6a6a";
|
|
1818
|
+
readonly accent: "#f5f5f5";
|
|
1819
|
+
readonly accentForeground: "#171717";
|
|
1820
|
+
readonly destructive: "#cf1f29";
|
|
1821
|
+
readonly destructiveForeground: "#fafafa";
|
|
1822
|
+
readonly success: "#1e7546";
|
|
1823
|
+
readonly successForeground: "#fafafa";
|
|
1824
|
+
readonly warning: "#825a27";
|
|
1825
|
+
readonly warningForeground: "#fafafa";
|
|
1826
|
+
readonly info: "#1762b6";
|
|
1827
|
+
readonly infoForeground: "#fafafa";
|
|
1828
|
+
readonly diffAdded: "#d9f3dd";
|
|
1829
|
+
readonly diffRemoved: "#ffe4e1";
|
|
1830
|
+
readonly borderColor: "#e5e5e5";
|
|
1831
|
+
readonly input: "#858585";
|
|
1832
|
+
readonly ring: "#0a0a0a";
|
|
1833
|
+
readonly sidebar: "#fafafa";
|
|
1834
|
+
readonly pill: "#f5f5f5";
|
|
1835
|
+
readonly pillBorder: "#e5e5e5";
|
|
1836
|
+
readonly composerBorder: "#d4d4d4";
|
|
1837
|
+
readonly statusNeedsYou: "#a65f00";
|
|
1838
|
+
readonly statusUnread: "#2563eb";
|
|
1839
|
+
readonly statusFailed: "#dc2626";
|
|
1840
|
+
readonly statusDone: "#15803d";
|
|
1841
|
+
readonly statusRing: "#737373";
|
|
1842
|
+
readonly placeholderColor: "#6a6a6a";
|
|
1843
|
+
};
|
|
1844
|
+
};
|
|
1845
|
+
type BadgeVariant = (typeof componentContracts.components.badge.props.variant.values)[number];
|
|
1846
|
+
type ButtonSize = (typeof componentContracts.components.button.props.size.values)[number];
|
|
1847
|
+
type ButtonVariant = (typeof componentContracts.components.button.props.variant.values)[number];
|
|
1848
|
+
type CardPart = keyof typeof componentContracts.components.card.parts;
|
|
1849
|
+
type HeadingLevel = (typeof componentContracts.components.heading.props.level.values)[number];
|
|
1850
|
+
type TextSize = (typeof componentContracts.components.text.props.size.values)[number];
|
|
1851
|
+
type TextTone = (typeof componentContracts.components.text.props.tone.values)[number];
|
|
1852
|
+
type TextWeight = (typeof componentContracts.components.text.props.weight.values)[number];
|
|
1853
|
+
type ProductThemeName = keyof typeof productThemes;
|
|
1854
|
+
type TamaguiThemeName = keyof typeof tamaguiThemes;
|
|
1855
|
+
|
|
1856
|
+
export { componentContracts, componentPlatforms, contractPropertyTypes, designTokens, isComponentPlatform, productThemes, tamaguiThemes, tamaguiTokens, validateComponentContracts };
|
|
1857
|
+
export type { BadgeVariant, ButtonSize, ButtonVariant, CardPart, ComponentContract, ComponentContracts, ComponentPlatform, ContractAccessibility, ContractDrift, ContractLabel, ContractPart, ContractPlatform, ContractPlatformValue, ContractProperty, ContractPropertyType, ContractPropertyValue, ContractProps, ContractPropsFor, ContractState, ContractValue, HeadingLevel, ProductThemeName, TamaguiThemeName, TextSize, TextTone, TextWeight };
|