@lets-ship/brand-dna 2.0.0 → 3.0.0
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/catalog/fonts/bricolage-grotesque-latin-700-normal.woff2 +0 -0
- package/catalog/fonts/figtree-latin-400-normal.woff2 +0 -0
- package/catalog/fonts/figtree-latin-600-normal.woff2 +0 -0
- package/catalog/fonts/gabarito-latin-700-normal.woff2 +0 -0
- package/catalog/fonts/gloock-latin-400-normal.woff2 +0 -0
- package/catalog/fonts/hanken-grotesk-latin-400-normal.woff2 +0 -0
- package/catalog/fonts/hanken-grotesk-latin-600-normal.woff2 +0 -0
- package/catalog/fonts/mulish-latin-400-normal.woff2 +0 -0
- package/catalog/fonts/mulish-latin-600-normal.woff2 +0 -0
- package/catalog/fonts/schibsted-grotesk-latin-400-normal.woff2 +0 -0
- package/catalog/fonts/schibsted-grotesk-latin-600-normal.woff2 +0 -0
- package/catalog/fonts/schibsted-grotesk-latin-700-normal.woff2 +0 -0
- package/catalog/fonts/source-sans-3-latin-400-normal.woff2 +0 -0
- package/catalog/fonts/source-sans-3-latin-600-normal.woff2 +0 -0
- package/catalog/fonts/young-serif-latin-400-normal.woff2 +0 -0
- package/catalog/fonts.lock.json +165 -0
- package/dist/core/color/pairs.d.ts.map +1 -1
- package/dist/core/color/pairs.js +5 -0
- package/dist/core/color/pairs.js.map +1 -1
- package/dist/core/compile/design-language.d.ts +10 -0
- package/dist/core/compile/design-language.d.ts.map +1 -0
- package/dist/core/compile/design-language.js +74 -0
- package/dist/core/compile/design-language.js.map +1 -0
- package/dist/core/compile/design-md.d.ts.map +1 -1
- package/dist/core/compile/design-md.js +8 -2
- package/dist/core/compile/design-md.js.map +1 -1
- package/dist/core/compile/patterns.d.ts +8 -0
- package/dist/core/compile/patterns.d.ts.map +1 -1
- package/dist/core/compile/patterns.js +14 -3
- package/dist/core/compile/patterns.js.map +1 -1
- package/dist/core/compile/site-design.d.ts +32 -0
- package/dist/core/compile/site-design.d.ts.map +1 -0
- package/dist/core/compile/site-design.js +243 -0
- package/dist/core/compile/site-design.js.map +1 -0
- package/dist/core/compile/site-emphasis.d.ts +46 -0
- package/dist/core/compile/site-emphasis.d.ts.map +1 -0
- package/dist/core/compile/site-emphasis.js +64 -0
- package/dist/core/compile/site-emphasis.js.map +1 -0
- package/dist/core/compile/site-theme-rules.d.ts +9 -2
- package/dist/core/compile/site-theme-rules.d.ts.map +1 -1
- package/dist/core/compile/site-theme-rules.js +83 -2
- package/dist/core/compile/site-theme-rules.js.map +1 -1
- package/dist/core/compile/site-theme-values.d.ts +11 -1
- package/dist/core/compile/site-theme-values.d.ts.map +1 -1
- package/dist/core/compile/site-theme-values.js +39 -5
- package/dist/core/compile/site-theme-values.js.map +1 -1
- package/dist/core/compile/site-theme.d.ts.map +1 -1
- package/dist/core/compile/site-theme.js +16 -4
- package/dist/core/compile/site-theme.js.map +1 -1
- package/dist/core/compile/skill.d.ts.map +1 -1
- package/dist/core/compile/skill.js +8 -0
- package/dist/core/compile/skill.js.map +1 -1
- package/dist/core/lint/catalog.d.ts +1 -1
- package/dist/core/lint/catalog.d.ts.map +1 -1
- package/dist/core/lint/catalog.js +13 -1
- package/dist/core/lint/catalog.js.map +1 -1
- package/dist/core/lint/rules/design.d.ts +27 -0
- package/dist/core/lint/rules/design.d.ts.map +1 -0
- package/dist/core/lint/rules/design.js +234 -0
- package/dist/core/lint/rules/design.js.map +1 -0
- package/dist/core/lint/rules/refs.d.ts.map +1 -1
- package/dist/core/lint/rules/refs.js +3 -0
- package/dist/core/lint/rules/refs.js.map +1 -1
- package/dist/core/lint/rules/type.js +1 -1
- package/dist/core/lint/rules/type.js.map +1 -1
- package/dist/core/presets/base.dna.json +307 -21
- package/dist/core/presets/design.d.ts +16 -0
- package/dist/core/presets/design.d.ts.map +1 -0
- package/dist/core/presets/design.js +86 -0
- package/dist/core/presets/design.js.map +1 -0
- package/dist/core/presets/presets.d.ts +1 -1
- package/dist/core/presets/presets.d.ts.map +1 -1
- package/dist/core/presets/presets.js +18 -11
- package/dist/core/presets/presets.js.map +1 -1
- package/dist/core/presets/specs.d.ts +330 -16
- package/dist/core/presets/specs.d.ts.map +1 -1
- package/dist/core/presets/specs.js +162 -12
- package/dist/core/presets/specs.js.map +1 -1
- package/dist/core/site/colours.d.ts +3 -3
- package/dist/core/site/colours.d.ts.map +1 -1
- package/dist/core/site/colours.js +13 -5
- package/dist/core/site/colours.js.map +1 -1
- package/dist/schema/channel-spec.d.ts +5 -5
- package/dist/schema/design.d.ts +258 -0
- package/dist/schema/design.d.ts.map +1 -0
- package/dist/schema/design.js +132 -0
- package/dist/schema/design.js.map +1 -0
- package/dist/schema/dna.d.ts +324 -4
- package/dist/schema/dna.d.ts.map +1 -1
- package/dist/schema/dna.js +16 -0
- package/dist/schema/dna.js.map +1 -1
- package/dist/schema/gen.d.ts +6 -1
- package/dist/schema/gen.d.ts.map +1 -1
- package/dist/schema/pattern.d.ts +80 -0
- package/dist/schema/pattern.d.ts.map +1 -1
- package/dist/schema/skeleton.d.ts +81 -8
- package/dist/schema/skeleton.d.ts.map +1 -1
- package/dist/schema/tokens.d.ts +45 -2
- package/dist/schema/tokens.d.ts.map +1 -1
- package/dist/schema/tokens.js +16 -0
- package/dist/schema/tokens.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The design language of a brand: the decisions a design studio makes on top of the tokens.
|
|
3
|
+
* The tokens say which colours, faces and sizes exist; these primitives say how a page uses
|
|
4
|
+
* them: how dense it is, how sections alternate, how content is separated, how a headline
|
|
5
|
+
* marks its key words, how media sits on the page and how controls behave. The site theme
|
|
6
|
+
* compiles each one into theme-contract variables, so a template follows the brand without a
|
|
7
|
+
* brand fact in its code (SHIP Sites D25, D27).
|
|
8
|
+
*/
|
|
9
|
+
import { z } from "zod";
|
|
10
|
+
import { Alias, ColorRole, Dimension } from "./tokens.js";
|
|
11
|
+
const Slider = z.number().int().min(1).max(5);
|
|
12
|
+
/** The background of one section. `base` is the page; the others set a section apart. */
|
|
13
|
+
export const SECTION_TONES = ["base", "tint", "inverse", "brand"];
|
|
14
|
+
export const SectionTone = z.enum(SECTION_TONES);
|
|
15
|
+
/** How bold the brand looks, in the same 1 to 5 form as `voice.tone`. */
|
|
16
|
+
export const VisualTone = z.strictObject({
|
|
17
|
+
/** 1: soft greys and tints; 5: black on white and dark bands. */
|
|
18
|
+
contrast: Slider,
|
|
19
|
+
/** 1: open, one idea per screen; 5: packed. */
|
|
20
|
+
density: Slider,
|
|
21
|
+
/** 1: plain; 5: patterns, markers and decoration. */
|
|
22
|
+
ornament: Slider,
|
|
23
|
+
/** 1: still; 5: animated. */
|
|
24
|
+
motion: Slider,
|
|
25
|
+
});
|
|
26
|
+
/** The point of view of the look, for agents and reviewers to judge a page against. */
|
|
27
|
+
export const Visual = z.strictObject({
|
|
28
|
+
/** One or two sentences: what every page of the brand should feel like. */
|
|
29
|
+
direction: z.string().min(1),
|
|
30
|
+
tone: VisualTone,
|
|
31
|
+
/** Patterns the brand never uses, written so that a reviewer can check a page for them. */
|
|
32
|
+
avoid: z.array(z.string().min(1)).default([]),
|
|
33
|
+
});
|
|
34
|
+
/** Space between sections, by density. A brand's `space.section-*` tokens override a step. */
|
|
35
|
+
export const DENSITIES = ["compact", "regular", "airy"];
|
|
36
|
+
/** The band tones a texture may sit on. The page itself stays plain, so text on it reads first. */
|
|
37
|
+
export const TEXTURE_TONES = ["tint", "inverse", "brand"];
|
|
38
|
+
/**
|
|
39
|
+
* One of the DNA's patterns on some band tones, as a quiet texture under the content. The site
|
|
40
|
+
* draws the pattern's shapes in the band's own text colour, so it suits every band in both modes.
|
|
41
|
+
*/
|
|
42
|
+
export const Texture = z.strictObject({
|
|
43
|
+
/** The id of a pattern in the DNA's `patterns`. */
|
|
44
|
+
pattern: z.string().regex(/^[a-z0-9][a-z0-9_-]*$/, "Lowercase id"),
|
|
45
|
+
tones: z.array(z.enum(TEXTURE_TONES)).min(1),
|
|
46
|
+
});
|
|
47
|
+
/**
|
|
48
|
+
* How much of a page the brand's colours cover, after impeccable's four colour strategies:
|
|
49
|
+
* restrained (accents on a neutral page), committed (one brand colour carries the page), full
|
|
50
|
+
* (several brand colours share it) and drenched (the brand colour is the page).
|
|
51
|
+
*/
|
|
52
|
+
export const COLOUR_STRATEGIES = ["restrained", "committed", "full", "drenched"];
|
|
53
|
+
export const ColourStrategy = z.enum(COLOUR_STRATEGIES);
|
|
54
|
+
/** The most of a page, in percent of `colorPolicy.usage`, the brand roles cover per strategy. */
|
|
55
|
+
export const STRATEGY_MAX_PERCENT = {
|
|
56
|
+
restrained: 15,
|
|
57
|
+
committed: 35,
|
|
58
|
+
full: 60,
|
|
59
|
+
drenched: 100,
|
|
60
|
+
};
|
|
61
|
+
/** The roles whose share of a page a colour strategy counts: the brand's colours, not its neutrals. */
|
|
62
|
+
export const BRAND_COLOUR_ROLES = ["primary", "accent", "surface-brand"];
|
|
63
|
+
export const Composition = z.strictObject({
|
|
64
|
+
/** Where section headings and short text sit: on the start edge or in the centre. */
|
|
65
|
+
align: z.enum(["start", "center"]),
|
|
66
|
+
/** The column weights of a two-column section, wider side first, such as [7, 5]. */
|
|
67
|
+
split: z.tuple([z.number().int().min(1).max(12), z.number().int().min(1).max(12)]),
|
|
68
|
+
/** The longest line, in characters: running text, and the lead under a headline. */
|
|
69
|
+
measure: z.strictObject({
|
|
70
|
+
body: z.number().int().min(30).max(100),
|
|
71
|
+
lead: z.number().int().min(20).max(70),
|
|
72
|
+
}),
|
|
73
|
+
density: z.enum(DENSITIES),
|
|
74
|
+
/** The section tones a page may use, and how many inverse bands one page may hold. */
|
|
75
|
+
tones: z.strictObject({
|
|
76
|
+
allowed: z.array(SectionTone).min(1),
|
|
77
|
+
maxInverse: z.number().int().min(0).max(4),
|
|
78
|
+
}),
|
|
79
|
+
texture: Texture.optional(),
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* How the brand separates things. `card` boxes an item with a fill, a border and a radius;
|
|
83
|
+
* `rule` sets items apart with a line; `plain` uses space alone. Media: `frame` puts a picture
|
|
84
|
+
* in a box, `plain` shows it with the media radius, `bleed` also lets it run to the page edge.
|
|
85
|
+
*/
|
|
86
|
+
export const Containers = z.strictObject({
|
|
87
|
+
list: z.enum(["card", "rule", "plain"]),
|
|
88
|
+
media: z.enum(["frame", "plain", "bleed"]),
|
|
89
|
+
quote: z.enum(["card", "rule", "plain"]),
|
|
90
|
+
});
|
|
91
|
+
/** How a headline marks its key words, and the colour role it marks them with. */
|
|
92
|
+
export const Emphasis = z.strictObject({
|
|
93
|
+
style: z.enum(["colour", "marker", "underline", "italic", "none"]),
|
|
94
|
+
role: ColorRole,
|
|
95
|
+
});
|
|
96
|
+
/** The places the accent colour may appear. Anything else stays in the brand's other roles. */
|
|
97
|
+
export const ACCENT_USES = ["marker", "rule", "numerals", "cta-inverse", "badge"];
|
|
98
|
+
export const AccentPolicy = z.strictObject({
|
|
99
|
+
uses: z.array(z.enum(ACCENT_USES)),
|
|
100
|
+
/** How many accent marks one screen may hold. */
|
|
101
|
+
maxPerScreen: z.number().int().min(0).max(5),
|
|
102
|
+
});
|
|
103
|
+
/** Buttons and other controls: their heights, the focus ring and the hover change. */
|
|
104
|
+
export const Controls = z.strictObject({
|
|
105
|
+
size: z.strictObject({ sm: Dimension, md: Dimension, lg: Dimension }),
|
|
106
|
+
focus: z.strictObject({ role: ColorRole, width: Dimension, offset: Dimension }),
|
|
107
|
+
/** How far a hovered fill moves toward the text colour, from 0 (no change) to 0.5. */
|
|
108
|
+
hover: z.strictObject({ mix: z.number().min(0).max(0.5) }),
|
|
109
|
+
});
|
|
110
|
+
/** Typographic details: the figures and the quote marks. */
|
|
111
|
+
export const Details = z.strictObject({
|
|
112
|
+
/** `tabular` lines up prices, hours and ratings in columns. */
|
|
113
|
+
numerals: z.enum(["tabular", "proportional", "oldstyle"]),
|
|
114
|
+
/** Hang an opening quote mark outside the text edge. */
|
|
115
|
+
hangingPunctuation: z.boolean(),
|
|
116
|
+
});
|
|
117
|
+
/** How media looks on a site: the shapes a picture may take and its colour treatment. */
|
|
118
|
+
export const MediaTreatment = z.strictObject({
|
|
119
|
+
/** Aspect ratios a picture may take, the first being the default, such as "4:5". */
|
|
120
|
+
aspects: z
|
|
121
|
+
.array(z.string().regex(/^[1-9]\d?:[1-9]\d?$/, "A ratio like 4:5 or 16:9"))
|
|
122
|
+
.min(1)
|
|
123
|
+
.max(4),
|
|
124
|
+
/** A two-colour treatment: the darkest tone of a photo becomes `shadow`, the lightest `highlight`. */
|
|
125
|
+
duotone: z.strictObject({ shadow: Alias, highlight: Alias }).optional(),
|
|
126
|
+
/** The corner radius of a picture, an alias into `radius`. */
|
|
127
|
+
radius: Alias,
|
|
128
|
+
});
|
|
129
|
+
/** The reveal of the opening section when a page loads. `none` keeps every page still. */
|
|
130
|
+
export const PAGE_REVEALS = ["none", "fade", "rise"];
|
|
131
|
+
export const PageReveal = z.enum(PAGE_REVEALS);
|
|
132
|
+
//# sourceMappingURL=design.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design.js","sourceRoot":"","sources":["../../src/schema/design.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE1D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAE9C,yFAAyF;AACzF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,CAAU,CAAC;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AAGjD,yEAAyE;A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EAAE,KAAK;CACb,CAAC,CAAC;AAEH,0FAA0F;AAC1F,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC"}
|
package/dist/schema/dna.d.ts
CHANGED
|
@@ -51,6 +51,11 @@ export declare const ContrastPair: z.ZodObject<{
|
|
|
51
51
|
surface: "surface";
|
|
52
52
|
"surface-alt": "surface-alt";
|
|
53
53
|
"on-surface": "on-surface";
|
|
54
|
+
"surface-tint": "surface-tint";
|
|
55
|
+
"surface-inverse": "surface-inverse";
|
|
56
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
57
|
+
"surface-brand": "surface-brand";
|
|
58
|
+
"on-surface-brand": "on-surface-brand";
|
|
54
59
|
muted: "muted";
|
|
55
60
|
border: "border";
|
|
56
61
|
warning: "warning";
|
|
@@ -67,6 +72,11 @@ export declare const ContrastPair: z.ZodObject<{
|
|
|
67
72
|
surface: "surface";
|
|
68
73
|
"surface-alt": "surface-alt";
|
|
69
74
|
"on-surface": "on-surface";
|
|
75
|
+
"surface-tint": "surface-tint";
|
|
76
|
+
"surface-inverse": "surface-inverse";
|
|
77
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
78
|
+
"surface-brand": "surface-brand";
|
|
79
|
+
"on-surface-brand": "on-surface-brand";
|
|
70
80
|
muted: "muted";
|
|
71
81
|
border: "border";
|
|
72
82
|
warning: "warning";
|
|
@@ -158,6 +168,11 @@ export declare const LogoVariant: z.ZodObject<{
|
|
|
158
168
|
surface: "surface";
|
|
159
169
|
"surface-alt": "surface-alt";
|
|
160
170
|
"on-surface": "on-surface";
|
|
171
|
+
"surface-tint": "surface-tint";
|
|
172
|
+
"surface-inverse": "surface-inverse";
|
|
173
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
174
|
+
"surface-brand": "surface-brand";
|
|
175
|
+
"on-surface-brand": "on-surface-brand";
|
|
161
176
|
muted: "muted";
|
|
162
177
|
border: "border";
|
|
163
178
|
warning: "warning";
|
|
@@ -196,6 +211,11 @@ export declare const Logo: z.ZodObject<{
|
|
|
196
211
|
surface: "surface";
|
|
197
212
|
"surface-alt": "surface-alt";
|
|
198
213
|
"on-surface": "on-surface";
|
|
214
|
+
"surface-tint": "surface-tint";
|
|
215
|
+
"surface-inverse": "surface-inverse";
|
|
216
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
217
|
+
"surface-brand": "surface-brand";
|
|
218
|
+
"on-surface-brand": "on-surface-brand";
|
|
199
219
|
muted: "muted";
|
|
200
220
|
border: "border";
|
|
201
221
|
warning: "warning";
|
|
@@ -227,9 +247,9 @@ export declare const Imagery: z.ZodObject<{
|
|
|
227
247
|
illustration: z.ZodOptional<z.ZodString>;
|
|
228
248
|
icons: z.ZodOptional<z.ZodObject<{
|
|
229
249
|
style: z.ZodEnum<{
|
|
250
|
+
duotone: "duotone";
|
|
230
251
|
outline: "outline";
|
|
231
252
|
filled: "filled";
|
|
232
|
-
duotone: "duotone";
|
|
233
253
|
}>;
|
|
234
254
|
strokePx: z.ZodOptional<z.ZodNumber>;
|
|
235
255
|
corner: z.ZodEnum<{
|
|
@@ -256,6 +276,11 @@ export declare const Imagery: z.ZodObject<{
|
|
|
256
276
|
surface: "surface";
|
|
257
277
|
"surface-alt": "surface-alt";
|
|
258
278
|
"on-surface": "on-surface";
|
|
279
|
+
"surface-tint": "surface-tint";
|
|
280
|
+
"surface-inverse": "surface-inverse";
|
|
281
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
282
|
+
"surface-brand": "surface-brand";
|
|
283
|
+
"on-surface-brand": "on-surface-brand";
|
|
259
284
|
muted: "muted";
|
|
260
285
|
border: "border";
|
|
261
286
|
warning: "warning";
|
|
@@ -263,6 +288,14 @@ export declare const Imagery: z.ZodObject<{
|
|
|
263
288
|
}>;
|
|
264
289
|
opacity: z.ZodNumber;
|
|
265
290
|
}, z.core.$strict>>;
|
|
291
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
292
|
+
aspects: z.ZodArray<z.ZodString>;
|
|
293
|
+
duotone: z.ZodOptional<z.ZodObject<{
|
|
294
|
+
shadow: z.ZodString;
|
|
295
|
+
highlight: z.ZodString;
|
|
296
|
+
}, z.core.$strict>>;
|
|
297
|
+
radius: z.ZodString;
|
|
298
|
+
}, z.core.$strict>>;
|
|
266
299
|
gradeStrength: z.ZodDefault<z.ZodNumber>;
|
|
267
300
|
library: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
268
301
|
provenance: z.ZodOptional<z.ZodObject<{
|
|
@@ -438,6 +471,11 @@ export declare const Motion: z.ZodObject<{
|
|
|
438
471
|
durationMs: z.ZodNumber;
|
|
439
472
|
ease: z.ZodOptional<z.ZodString>;
|
|
440
473
|
}, z.core.$strict>>;
|
|
474
|
+
pageReveal: z.ZodOptional<z.ZodEnum<{
|
|
475
|
+
none: "none";
|
|
476
|
+
fade: "fade";
|
|
477
|
+
rise: "rise";
|
|
478
|
+
}>>;
|
|
441
479
|
}, z.core.$strict>;
|
|
442
480
|
/** How much of a composition each role covers, and whether gradients are allowed. */
|
|
443
481
|
export declare const ColorPolicy: z.ZodObject<{
|
|
@@ -453,6 +491,11 @@ export declare const ColorPolicy: z.ZodObject<{
|
|
|
453
491
|
surface: "surface";
|
|
454
492
|
"surface-alt": "surface-alt";
|
|
455
493
|
"on-surface": "on-surface";
|
|
494
|
+
"surface-tint": "surface-tint";
|
|
495
|
+
"surface-inverse": "surface-inverse";
|
|
496
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
497
|
+
"surface-brand": "surface-brand";
|
|
498
|
+
"on-surface-brand": "on-surface-brand";
|
|
456
499
|
muted: "muted";
|
|
457
500
|
border: "border";
|
|
458
501
|
warning: "warning";
|
|
@@ -462,9 +505,25 @@ export declare const ColorPolicy: z.ZodObject<{
|
|
|
462
505
|
}, z.core.$strict>>;
|
|
463
506
|
gradients: z.ZodEnum<{
|
|
464
507
|
none: "none";
|
|
465
|
-
subtle: "subtle";
|
|
466
508
|
brand: "brand";
|
|
509
|
+
subtle: "subtle";
|
|
467
510
|
}>;
|
|
511
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
512
|
+
restrained: "restrained";
|
|
513
|
+
committed: "committed";
|
|
514
|
+
full: "full";
|
|
515
|
+
drenched: "drenched";
|
|
516
|
+
}>>;
|
|
517
|
+
accent: z.ZodOptional<z.ZodObject<{
|
|
518
|
+
uses: z.ZodArray<z.ZodEnum<{
|
|
519
|
+
rule: "rule";
|
|
520
|
+
marker: "marker";
|
|
521
|
+
numerals: "numerals";
|
|
522
|
+
"cta-inverse": "cta-inverse";
|
|
523
|
+
badge: "badge";
|
|
524
|
+
}>>;
|
|
525
|
+
maxPerScreen: z.ZodNumber;
|
|
526
|
+
}, z.core.$strict>>;
|
|
468
527
|
}, z.core.$strict>;
|
|
469
528
|
/** The modular scale typography roles were derived from. */
|
|
470
529
|
export declare const TypeScale: z.ZodObject<{
|
|
@@ -573,6 +632,11 @@ export declare const Dna: z.ZodObject<{
|
|
|
573
632
|
surface: "surface";
|
|
574
633
|
"surface-alt": "surface-alt";
|
|
575
634
|
"on-surface": "on-surface";
|
|
635
|
+
"surface-tint": "surface-tint";
|
|
636
|
+
"surface-inverse": "surface-inverse";
|
|
637
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
638
|
+
"surface-brand": "surface-brand";
|
|
639
|
+
"on-surface-brand": "on-surface-brand";
|
|
576
640
|
muted: "muted";
|
|
577
641
|
border: "border";
|
|
578
642
|
warning: "warning";
|
|
@@ -625,6 +689,11 @@ export declare const Dna: z.ZodObject<{
|
|
|
625
689
|
surface: "surface";
|
|
626
690
|
"surface-alt": "surface-alt";
|
|
627
691
|
"on-surface": "on-surface";
|
|
692
|
+
"surface-tint": "surface-tint";
|
|
693
|
+
"surface-inverse": "surface-inverse";
|
|
694
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
695
|
+
"surface-brand": "surface-brand";
|
|
696
|
+
"on-surface-brand": "on-surface-brand";
|
|
628
697
|
muted: "muted";
|
|
629
698
|
border: "border";
|
|
630
699
|
warning: "warning";
|
|
@@ -798,6 +867,7 @@ export declare const Dna: z.ZodObject<{
|
|
|
798
867
|
}, z.core.$strict>>;
|
|
799
868
|
}, z.core.$strict>;
|
|
800
869
|
typography: z.ZodRecord<z.ZodEnum<{
|
|
870
|
+
"display-xl": "display-xl";
|
|
801
871
|
display: "display";
|
|
802
872
|
h1: "h1";
|
|
803
873
|
h2: "h2";
|
|
@@ -847,6 +917,13 @@ export declare const Dna: z.ZodObject<{
|
|
|
847
917
|
rem: "rem";
|
|
848
918
|
}>;
|
|
849
919
|
}, z.core.$strict>, z.ZodString]>;
|
|
920
|
+
fontSizeMin: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
921
|
+
value: z.ZodNumber;
|
|
922
|
+
unit: z.ZodEnum<{
|
|
923
|
+
px: "px";
|
|
924
|
+
rem: "rem";
|
|
925
|
+
}>;
|
|
926
|
+
}, z.core.$strict>, z.ZodString]>>;
|
|
850
927
|
fontWeight: z.ZodNumber;
|
|
851
928
|
lineHeight: z.ZodNumber;
|
|
852
929
|
letterSpacing: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -862,6 +939,7 @@ export declare const Dna: z.ZodObject<{
|
|
|
862
939
|
lowercase: "lowercase";
|
|
863
940
|
capitalize: "capitalize";
|
|
864
941
|
}>>;
|
|
942
|
+
fontFeatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
865
943
|
}, z.core.$strict>;
|
|
866
944
|
}, z.core.$strict>>;
|
|
867
945
|
space: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1168,6 +1246,11 @@ export declare const Dna: z.ZodObject<{
|
|
|
1168
1246
|
surface: "surface";
|
|
1169
1247
|
"surface-alt": "surface-alt";
|
|
1170
1248
|
"on-surface": "on-surface";
|
|
1249
|
+
"surface-tint": "surface-tint";
|
|
1250
|
+
"surface-inverse": "surface-inverse";
|
|
1251
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
1252
|
+
"surface-brand": "surface-brand";
|
|
1253
|
+
"on-surface-brand": "on-surface-brand";
|
|
1171
1254
|
muted: "muted";
|
|
1172
1255
|
border: "border";
|
|
1173
1256
|
warning: "warning";
|
|
@@ -1184,6 +1267,11 @@ export declare const Dna: z.ZodObject<{
|
|
|
1184
1267
|
surface: "surface";
|
|
1185
1268
|
"surface-alt": "surface-alt";
|
|
1186
1269
|
"on-surface": "on-surface";
|
|
1270
|
+
"surface-tint": "surface-tint";
|
|
1271
|
+
"surface-inverse": "surface-inverse";
|
|
1272
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
1273
|
+
"surface-brand": "surface-brand";
|
|
1274
|
+
"on-surface-brand": "on-surface-brand";
|
|
1187
1275
|
muted: "muted";
|
|
1188
1276
|
border: "border";
|
|
1189
1277
|
warning: "warning";
|
|
@@ -1261,6 +1349,11 @@ export declare const Dna: z.ZodObject<{
|
|
|
1261
1349
|
surface: "surface";
|
|
1262
1350
|
"surface-alt": "surface-alt";
|
|
1263
1351
|
"on-surface": "on-surface";
|
|
1352
|
+
"surface-tint": "surface-tint";
|
|
1353
|
+
"surface-inverse": "surface-inverse";
|
|
1354
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
1355
|
+
"surface-brand": "surface-brand";
|
|
1356
|
+
"on-surface-brand": "on-surface-brand";
|
|
1264
1357
|
muted: "muted";
|
|
1265
1358
|
border: "border";
|
|
1266
1359
|
warning: "warning";
|
|
@@ -1292,9 +1385,9 @@ export declare const Dna: z.ZodObject<{
|
|
|
1292
1385
|
illustration: z.ZodOptional<z.ZodString>;
|
|
1293
1386
|
icons: z.ZodOptional<z.ZodObject<{
|
|
1294
1387
|
style: z.ZodEnum<{
|
|
1388
|
+
duotone: "duotone";
|
|
1295
1389
|
outline: "outline";
|
|
1296
1390
|
filled: "filled";
|
|
1297
|
-
duotone: "duotone";
|
|
1298
1391
|
}>;
|
|
1299
1392
|
strokePx: z.ZodOptional<z.ZodNumber>;
|
|
1300
1393
|
corner: z.ZodEnum<{
|
|
@@ -1321,6 +1414,11 @@ export declare const Dna: z.ZodObject<{
|
|
|
1321
1414
|
surface: "surface";
|
|
1322
1415
|
"surface-alt": "surface-alt";
|
|
1323
1416
|
"on-surface": "on-surface";
|
|
1417
|
+
"surface-tint": "surface-tint";
|
|
1418
|
+
"surface-inverse": "surface-inverse";
|
|
1419
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
1420
|
+
"surface-brand": "surface-brand";
|
|
1421
|
+
"on-surface-brand": "on-surface-brand";
|
|
1324
1422
|
muted: "muted";
|
|
1325
1423
|
border: "border";
|
|
1326
1424
|
warning: "warning";
|
|
@@ -1328,6 +1426,14 @@ export declare const Dna: z.ZodObject<{
|
|
|
1328
1426
|
}>;
|
|
1329
1427
|
opacity: z.ZodNumber;
|
|
1330
1428
|
}, z.core.$strict>>;
|
|
1429
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
1430
|
+
aspects: z.ZodArray<z.ZodString>;
|
|
1431
|
+
duotone: z.ZodOptional<z.ZodObject<{
|
|
1432
|
+
shadow: z.ZodString;
|
|
1433
|
+
highlight: z.ZodString;
|
|
1434
|
+
}, z.core.$strict>>;
|
|
1435
|
+
radius: z.ZodString;
|
|
1436
|
+
}, z.core.$strict>>;
|
|
1331
1437
|
gradeStrength: z.ZodDefault<z.ZodNumber>;
|
|
1332
1438
|
library: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1333
1439
|
provenance: z.ZodOptional<z.ZodObject<{
|
|
@@ -1494,6 +1600,11 @@ export declare const Dna: z.ZodObject<{
|
|
|
1494
1600
|
surface: "surface";
|
|
1495
1601
|
"surface-alt": "surface-alt";
|
|
1496
1602
|
"on-surface": "on-surface";
|
|
1603
|
+
"surface-tint": "surface-tint";
|
|
1604
|
+
"surface-inverse": "surface-inverse";
|
|
1605
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
1606
|
+
"surface-brand": "surface-brand";
|
|
1607
|
+
"on-surface-brand": "on-surface-brand";
|
|
1497
1608
|
muted: "muted";
|
|
1498
1609
|
border: "border";
|
|
1499
1610
|
warning: "warning";
|
|
@@ -1503,9 +1614,25 @@ export declare const Dna: z.ZodObject<{
|
|
|
1503
1614
|
}, z.core.$strict>>;
|
|
1504
1615
|
gradients: z.ZodEnum<{
|
|
1505
1616
|
none: "none";
|
|
1506
|
-
subtle: "subtle";
|
|
1507
1617
|
brand: "brand";
|
|
1618
|
+
subtle: "subtle";
|
|
1508
1619
|
}>;
|
|
1620
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
1621
|
+
restrained: "restrained";
|
|
1622
|
+
committed: "committed";
|
|
1623
|
+
full: "full";
|
|
1624
|
+
drenched: "drenched";
|
|
1625
|
+
}>>;
|
|
1626
|
+
accent: z.ZodOptional<z.ZodObject<{
|
|
1627
|
+
uses: z.ZodArray<z.ZodEnum<{
|
|
1628
|
+
rule: "rule";
|
|
1629
|
+
marker: "marker";
|
|
1630
|
+
numerals: "numerals";
|
|
1631
|
+
"cta-inverse": "cta-inverse";
|
|
1632
|
+
badge: "badge";
|
|
1633
|
+
}>>;
|
|
1634
|
+
maxPerScreen: z.ZodNumber;
|
|
1635
|
+
}, z.core.$strict>>;
|
|
1509
1636
|
}, z.core.$strict>>;
|
|
1510
1637
|
typeScale: z.ZodOptional<z.ZodObject<{
|
|
1511
1638
|
basePx: z.ZodNumber;
|
|
@@ -1555,6 +1682,11 @@ export declare const Dna: z.ZodObject<{
|
|
|
1555
1682
|
durationMs: z.ZodNumber;
|
|
1556
1683
|
ease: z.ZodOptional<z.ZodString>;
|
|
1557
1684
|
}, z.core.$strict>>;
|
|
1685
|
+
pageReveal: z.ZodOptional<z.ZodEnum<{
|
|
1686
|
+
none: "none";
|
|
1687
|
+
fade: "fade";
|
|
1688
|
+
rise: "rise";
|
|
1689
|
+
}>>;
|
|
1558
1690
|
}, z.core.$strict>>;
|
|
1559
1691
|
patterns: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1560
1692
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1571,6 +1703,11 @@ export declare const Dna: z.ZodObject<{
|
|
|
1571
1703
|
surface: "surface";
|
|
1572
1704
|
"surface-alt": "surface-alt";
|
|
1573
1705
|
"on-surface": "on-surface";
|
|
1706
|
+
"surface-tint": "surface-tint";
|
|
1707
|
+
"surface-inverse": "surface-inverse";
|
|
1708
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
1709
|
+
"surface-brand": "surface-brand";
|
|
1710
|
+
"on-surface-brand": "on-surface-brand";
|
|
1574
1711
|
muted: "muted";
|
|
1575
1712
|
border: "border";
|
|
1576
1713
|
warning: "warning";
|
|
@@ -1592,6 +1729,11 @@ export declare const Dna: z.ZodObject<{
|
|
|
1592
1729
|
surface: "surface";
|
|
1593
1730
|
"surface-alt": "surface-alt";
|
|
1594
1731
|
"on-surface": "on-surface";
|
|
1732
|
+
"surface-tint": "surface-tint";
|
|
1733
|
+
"surface-inverse": "surface-inverse";
|
|
1734
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
1735
|
+
"surface-brand": "surface-brand";
|
|
1736
|
+
"on-surface-brand": "on-surface-brand";
|
|
1595
1737
|
muted: "muted";
|
|
1596
1738
|
border: "border";
|
|
1597
1739
|
warning: "warning";
|
|
@@ -1613,6 +1755,11 @@ export declare const Dna: z.ZodObject<{
|
|
|
1613
1755
|
surface: "surface";
|
|
1614
1756
|
"surface-alt": "surface-alt";
|
|
1615
1757
|
"on-surface": "on-surface";
|
|
1758
|
+
"surface-tint": "surface-tint";
|
|
1759
|
+
"surface-inverse": "surface-inverse";
|
|
1760
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
1761
|
+
"surface-brand": "surface-brand";
|
|
1762
|
+
"on-surface-brand": "on-surface-brand";
|
|
1616
1763
|
muted: "muted";
|
|
1617
1764
|
border: "border";
|
|
1618
1765
|
warning: "warning";
|
|
@@ -1636,6 +1783,11 @@ export declare const Dna: z.ZodObject<{
|
|
|
1636
1783
|
surface: "surface";
|
|
1637
1784
|
"surface-alt": "surface-alt";
|
|
1638
1785
|
"on-surface": "on-surface";
|
|
1786
|
+
"surface-tint": "surface-tint";
|
|
1787
|
+
"surface-inverse": "surface-inverse";
|
|
1788
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
1789
|
+
"surface-brand": "surface-brand";
|
|
1790
|
+
"on-surface-brand": "on-surface-brand";
|
|
1639
1791
|
muted: "muted";
|
|
1640
1792
|
border: "border";
|
|
1641
1793
|
warning: "warning";
|
|
@@ -1657,6 +1809,11 @@ export declare const Dna: z.ZodObject<{
|
|
|
1657
1809
|
surface: "surface";
|
|
1658
1810
|
"surface-alt": "surface-alt";
|
|
1659
1811
|
"on-surface": "on-surface";
|
|
1812
|
+
"surface-tint": "surface-tint";
|
|
1813
|
+
"surface-inverse": "surface-inverse";
|
|
1814
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
1815
|
+
"surface-brand": "surface-brand";
|
|
1816
|
+
"on-surface-brand": "on-surface-brand";
|
|
1660
1817
|
muted: "muted";
|
|
1661
1818
|
border: "border";
|
|
1662
1819
|
warning: "warning";
|
|
@@ -1701,6 +1858,169 @@ export declare const Dna: z.ZodObject<{
|
|
|
1701
1858
|
note: z.ZodOptional<z.ZodString>;
|
|
1702
1859
|
}, z.core.$strict>>;
|
|
1703
1860
|
}, z.core.$strict>>>;
|
|
1861
|
+
visual: z.ZodOptional<z.ZodObject<{
|
|
1862
|
+
direction: z.ZodString;
|
|
1863
|
+
tone: z.ZodObject<{
|
|
1864
|
+
contrast: z.ZodNumber;
|
|
1865
|
+
density: z.ZodNumber;
|
|
1866
|
+
ornament: z.ZodNumber;
|
|
1867
|
+
motion: z.ZodNumber;
|
|
1868
|
+
}, z.core.$strict>;
|
|
1869
|
+
avoid: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1870
|
+
}, z.core.$strict>>;
|
|
1871
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
1872
|
+
align: z.ZodEnum<{
|
|
1873
|
+
start: "start";
|
|
1874
|
+
center: "center";
|
|
1875
|
+
}>;
|
|
1876
|
+
split: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
1877
|
+
measure: z.ZodObject<{
|
|
1878
|
+
body: z.ZodNumber;
|
|
1879
|
+
lead: z.ZodNumber;
|
|
1880
|
+
}, z.core.$strict>;
|
|
1881
|
+
density: z.ZodEnum<{
|
|
1882
|
+
compact: "compact";
|
|
1883
|
+
regular: "regular";
|
|
1884
|
+
airy: "airy";
|
|
1885
|
+
}>;
|
|
1886
|
+
tones: z.ZodObject<{
|
|
1887
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
1888
|
+
base: "base";
|
|
1889
|
+
tint: "tint";
|
|
1890
|
+
inverse: "inverse";
|
|
1891
|
+
brand: "brand";
|
|
1892
|
+
}>>;
|
|
1893
|
+
maxInverse: z.ZodNumber;
|
|
1894
|
+
}, z.core.$strict>;
|
|
1895
|
+
texture: z.ZodOptional<z.ZodObject<{
|
|
1896
|
+
pattern: z.ZodString;
|
|
1897
|
+
tones: z.ZodArray<z.ZodEnum<{
|
|
1898
|
+
tint: "tint";
|
|
1899
|
+
inverse: "inverse";
|
|
1900
|
+
brand: "brand";
|
|
1901
|
+
}>>;
|
|
1902
|
+
}, z.core.$strict>>;
|
|
1903
|
+
}, z.core.$strict>>;
|
|
1904
|
+
containers: z.ZodOptional<z.ZodObject<{
|
|
1905
|
+
list: z.ZodEnum<{
|
|
1906
|
+
card: "card";
|
|
1907
|
+
rule: "rule";
|
|
1908
|
+
plain: "plain";
|
|
1909
|
+
}>;
|
|
1910
|
+
media: z.ZodEnum<{
|
|
1911
|
+
plain: "plain";
|
|
1912
|
+
frame: "frame";
|
|
1913
|
+
bleed: "bleed";
|
|
1914
|
+
}>;
|
|
1915
|
+
quote: z.ZodEnum<{
|
|
1916
|
+
card: "card";
|
|
1917
|
+
rule: "rule";
|
|
1918
|
+
plain: "plain";
|
|
1919
|
+
}>;
|
|
1920
|
+
}, z.core.$strict>>;
|
|
1921
|
+
emphasis: z.ZodOptional<z.ZodObject<{
|
|
1922
|
+
style: z.ZodEnum<{
|
|
1923
|
+
italic: "italic";
|
|
1924
|
+
none: "none";
|
|
1925
|
+
colour: "colour";
|
|
1926
|
+
marker: "marker";
|
|
1927
|
+
underline: "underline";
|
|
1928
|
+
}>;
|
|
1929
|
+
role: z.ZodEnum<{
|
|
1930
|
+
success: "success";
|
|
1931
|
+
primary: "primary";
|
|
1932
|
+
"on-primary": "on-primary";
|
|
1933
|
+
secondary: "secondary";
|
|
1934
|
+
"on-secondary": "on-secondary";
|
|
1935
|
+
accent: "accent";
|
|
1936
|
+
"on-accent": "on-accent";
|
|
1937
|
+
surface: "surface";
|
|
1938
|
+
"surface-alt": "surface-alt";
|
|
1939
|
+
"on-surface": "on-surface";
|
|
1940
|
+
"surface-tint": "surface-tint";
|
|
1941
|
+
"surface-inverse": "surface-inverse";
|
|
1942
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
1943
|
+
"surface-brand": "surface-brand";
|
|
1944
|
+
"on-surface-brand": "on-surface-brand";
|
|
1945
|
+
muted: "muted";
|
|
1946
|
+
border: "border";
|
|
1947
|
+
warning: "warning";
|
|
1948
|
+
danger: "danger";
|
|
1949
|
+
}>;
|
|
1950
|
+
}, z.core.$strict>>;
|
|
1951
|
+
controls: z.ZodOptional<z.ZodObject<{
|
|
1952
|
+
size: z.ZodObject<{
|
|
1953
|
+
sm: z.ZodObject<{
|
|
1954
|
+
value: z.ZodNumber;
|
|
1955
|
+
unit: z.ZodEnum<{
|
|
1956
|
+
px: "px";
|
|
1957
|
+
rem: "rem";
|
|
1958
|
+
}>;
|
|
1959
|
+
}, z.core.$strict>;
|
|
1960
|
+
md: z.ZodObject<{
|
|
1961
|
+
value: z.ZodNumber;
|
|
1962
|
+
unit: z.ZodEnum<{
|
|
1963
|
+
px: "px";
|
|
1964
|
+
rem: "rem";
|
|
1965
|
+
}>;
|
|
1966
|
+
}, z.core.$strict>;
|
|
1967
|
+
lg: z.ZodObject<{
|
|
1968
|
+
value: z.ZodNumber;
|
|
1969
|
+
unit: z.ZodEnum<{
|
|
1970
|
+
px: "px";
|
|
1971
|
+
rem: "rem";
|
|
1972
|
+
}>;
|
|
1973
|
+
}, z.core.$strict>;
|
|
1974
|
+
}, z.core.$strict>;
|
|
1975
|
+
focus: z.ZodObject<{
|
|
1976
|
+
role: z.ZodEnum<{
|
|
1977
|
+
success: "success";
|
|
1978
|
+
primary: "primary";
|
|
1979
|
+
"on-primary": "on-primary";
|
|
1980
|
+
secondary: "secondary";
|
|
1981
|
+
"on-secondary": "on-secondary";
|
|
1982
|
+
accent: "accent";
|
|
1983
|
+
"on-accent": "on-accent";
|
|
1984
|
+
surface: "surface";
|
|
1985
|
+
"surface-alt": "surface-alt";
|
|
1986
|
+
"on-surface": "on-surface";
|
|
1987
|
+
"surface-tint": "surface-tint";
|
|
1988
|
+
"surface-inverse": "surface-inverse";
|
|
1989
|
+
"on-surface-inverse": "on-surface-inverse";
|
|
1990
|
+
"surface-brand": "surface-brand";
|
|
1991
|
+
"on-surface-brand": "on-surface-brand";
|
|
1992
|
+
muted: "muted";
|
|
1993
|
+
border: "border";
|
|
1994
|
+
warning: "warning";
|
|
1995
|
+
danger: "danger";
|
|
1996
|
+
}>;
|
|
1997
|
+
width: z.ZodObject<{
|
|
1998
|
+
value: z.ZodNumber;
|
|
1999
|
+
unit: z.ZodEnum<{
|
|
2000
|
+
px: "px";
|
|
2001
|
+
rem: "rem";
|
|
2002
|
+
}>;
|
|
2003
|
+
}, z.core.$strict>;
|
|
2004
|
+
offset: z.ZodObject<{
|
|
2005
|
+
value: z.ZodNumber;
|
|
2006
|
+
unit: z.ZodEnum<{
|
|
2007
|
+
px: "px";
|
|
2008
|
+
rem: "rem";
|
|
2009
|
+
}>;
|
|
2010
|
+
}, z.core.$strict>;
|
|
2011
|
+
}, z.core.$strict>;
|
|
2012
|
+
hover: z.ZodObject<{
|
|
2013
|
+
mix: z.ZodNumber;
|
|
2014
|
+
}, z.core.$strict>;
|
|
2015
|
+
}, z.core.$strict>>;
|
|
2016
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
2017
|
+
numerals: z.ZodEnum<{
|
|
2018
|
+
tabular: "tabular";
|
|
2019
|
+
proportional: "proportional";
|
|
2020
|
+
oldstyle: "oldstyle";
|
|
2021
|
+
}>;
|
|
2022
|
+
hangingPunctuation: z.ZodBoolean;
|
|
2023
|
+
}, z.core.$strict>>;
|
|
1704
2024
|
}, z.core.$strict>;
|
|
1705
2025
|
export type Dna = z.infer<typeof Dna>;
|
|
1706
2026
|
export type DnaInput = z.input<typeof Dna>;
|