@voxel51/voodo 1.4.0-dev.0 → 2.1.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/bin/voodo.mjs +127 -0
- package/dist/cli/reference.d.ts +79 -0
- package/dist/cli/reference.d.ts.map +1 -0
- package/dist/cli.cjs +11 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +167 -0
- package/dist/cli.js.map +1 -0
- package/dist/components/ActivityToast/ActivityToast.d.ts +1 -1
- package/dist/components/ActivityToast/ActivityToast.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +5 -3
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +3 -3
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/RichCard.d.ts +3 -1
- package/dist/components/Card/RichCard.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Clickable/Clickable.d.ts +1 -1
- package/dist/components/Combobox/Combobox.d.ts +3 -3
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/components/Datepicker/DatePicker.d.ts +1 -1
- package/dist/components/Datepicker/DatepickerIconButton.d.ts.map +1 -1
- package/dist/components/Datepicker/DatepickerInput.d.ts.map +1 -1
- package/dist/components/Divider/Divider.d.ts +21 -14
- package/dist/components/Divider/Divider.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +37 -0
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +3 -3
- package/dist/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownTrigger.d.ts +2 -2
- package/dist/components/Dropzone/Dropzone.d.ts +34 -0
- package/dist/components/Dropzone/Dropzone.d.ts.map +1 -0
- package/dist/components/Dropzone/index.d.ts +2 -0
- package/dist/components/Dropzone/index.d.ts.map +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +11 -4
- package/dist/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/components/FormField/FormField.d.ts +4 -2
- package/dist/components/FormField/FormField.d.ts.map +1 -1
- package/dist/components/FormFieldGroup/FormFieldGroup.d.ts +4 -19
- package/dist/components/FormFieldGroup/FormFieldGroup.d.ts.map +1 -1
- package/dist/components/Heading/Heading.d.ts +1 -1
- package/dist/components/Heading/Heading.d.ts.map +1 -1
- package/dist/components/IconAction/IconAction.d.ts +26 -0
- package/dist/components/IconAction/IconAction.d.ts.map +1 -0
- package/dist/components/IconAction/index.d.ts +2 -0
- package/dist/components/IconAction/index.d.ts.map +1 -0
- package/dist/components/Icons/Icon.d.ts +4 -3
- package/dist/components/Icons/Icon.d.ts.map +1 -1
- package/dist/components/Icons/IconBase.d.ts +2 -0
- package/dist/components/Icons/IconBase.d.ts.map +1 -1
- package/dist/components/Icons/IconWrapper.d.ts +3 -1
- package/dist/components/Icons/IconWrapper.d.ts.map +1 -1
- package/dist/components/Icons/Spinner.d.ts.map +1 -1
- package/dist/components/Icons/icons.d.ts +9 -1
- package/dist/components/Icons/icons.d.ts.map +1 -1
- package/dist/components/ImageList/ImageList.d.ts +4 -4
- package/dist/components/ImageList/ImageList.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts +14 -19
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/InputIcon.d.ts +1 -1
- package/dist/components/Input/InputIcon.d.ts.map +1 -1
- package/dist/components/Input/styles.d.ts +11 -12
- package/dist/components/Input/styles.d.ts.map +1 -1
- package/dist/components/ListItem/ListItem.d.ts +2 -2
- package/dist/components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/components/LoadingDots/LoadingDots.d.ts +1 -1
- package/dist/components/Menu/MenuCheckItem.d.ts.map +1 -1
- package/dist/components/Menu/MenuIconTextItem.d.ts +4 -4
- package/dist/components/Menu/MenuIconTextItem.d.ts.map +1 -1
- package/dist/components/Menu/MenuSectionTitle.d.ts.map +1 -1
- package/dist/components/Menu/MenuTextItem.d.ts +3 -3
- package/dist/components/Menu/MenuTextItem.d.ts.map +1 -1
- package/dist/components/Menu/styles.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts +17 -9
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Pill/Pill.d.ts +5 -4
- package/dist/components/Pill/Pill.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts +5 -5
- package/dist/components/Popover/styles.d.ts.map +1 -1
- package/dist/components/Progress/Progress.d.ts +8 -11
- package/dist/components/Progress/Progress.d.ts.map +1 -1
- package/dist/components/Radio/Radio.d.ts +15 -3
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/Radio/RadioGroup.d.ts +4 -4
- package/dist/components/Radio/RadioGroup.d.ts.map +1 -1
- package/dist/components/RichButton/RichButton.d.ts +2 -0
- package/dist/components/RichButton/RichButton.d.ts.map +1 -1
- package/dist/components/RichList/RichList.d.ts +14 -13
- package/dist/components/RichList/RichList.d.ts.map +1 -1
- package/dist/components/Select/Option.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +17 -7
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Sheet/Sheet.d.ts +9 -4
- package/dist/components/Sheet/Sheet.d.ts.map +1 -1
- package/dist/components/Slider/Slider.d.ts +15 -1
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Slider/SliderBar.d.ts +1 -1
- package/dist/components/Slider/SliderKnob.d.ts +1 -1
- package/dist/components/Slider/SliderLabels.d.ts +1 -1
- package/dist/components/Spinner/Spinner.d.ts +1 -1
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Stack/Stack.d.ts +3 -3
- package/dist/components/StepRail/StepRail.d.ts +36 -0
- package/dist/components/StepRail/StepRail.d.ts.map +1 -0
- package/dist/components/StepRail/index.d.ts +2 -0
- package/dist/components/StepRail/index.d.ts.map +1 -0
- package/dist/components/Table/Table.d.ts +82 -0
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Tabs/Tab.d.ts +3 -0
- package/dist/components/Tabs/Tab.d.ts.map +1 -1
- package/dist/components/Text/Text.d.ts +7 -3
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/TextAction/TextAction.d.ts +29 -0
- package/dist/components/TextAction/TextAction.d.ts.map +1 -0
- package/dist/components/TextAction/index.d.ts +2 -0
- package/dist/components/TextAction/index.d.ts.map +1 -0
- package/dist/components/TextArea/TextArea.d.ts +7 -3
- package/dist/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/TextBadge/TextBadge.d.ts +3 -3
- package/dist/components/TextBadge/TextBadge.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +7 -5
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/ToastContainer/ToastContainer.d.ts +9 -1
- package/dist/components/ToastContainer/ToastContainer.d.ts.map +1 -1
- package/dist/components/Toggle/Toggle.d.ts +2 -2
- package/dist/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +12 -11
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/dist/components/Toolbar/Toolbar.d.ts +14 -14
- package/dist/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tree/TreeSelect.d.ts +1 -1
- package/dist/components/Tree/types.d.ts +2 -0
- package/dist/components/Tree/types.d.ts.map +1 -1
- package/dist/components/UnsetHint/UnsetHint.d.ts +2 -1
- package/dist/components/UnsetHint/UnsetHint.d.ts.map +1 -1
- package/dist/components/UploadList/UploadList.d.ts +36 -0
- package/dist/components/UploadList/UploadList.d.ts.map +1 -0
- package/dist/components/UploadList/index.d.ts +2 -0
- package/dist/components/UploadList/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +5 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4915 -4257
- package/dist/index.js.map +1 -1
- package/dist/palette-Boxwxq4V.js +723 -0
- package/dist/palette-Boxwxq4V.js.map +1 -0
- package/dist/palette-DV12yAPS.cjs +2 -0
- package/dist/palette-DV12yAPS.cjs.map +1 -0
- package/dist/styles/color-classes.d.ts +1 -1
- package/dist/styles/color-classes.d.ts.map +1 -1
- package/dist/styles/text.d.ts +6 -0
- package/dist/styles/text.d.ts.map +1 -1
- package/dist/theme/cssVar.d.ts +128 -105
- package/dist/theme/cssVar.d.ts.map +1 -1
- package/dist/theme/mui.d.ts +15 -15
- package/dist/theme/mui.d.ts.map +1 -1
- package/dist/theme/tokens/colors.d.ts +297 -227
- package/dist/theme/tokens/colors.d.ts.map +1 -1
- package/dist/theme/tokens/gradients.d.ts +6 -0
- package/dist/theme/tokens/gradients.d.ts.map +1 -0
- package/dist/theme/tokens/index.d.ts +350 -220
- package/dist/theme/tokens/index.d.ts.map +1 -1
- package/dist/theme/tokens/palette.d.ts +64 -5
- package/dist/theme/tokens/palette.d.ts.map +1 -1
- package/dist/theme/tokens/spacing.d.ts +48 -0
- package/dist/theme/tokens/spacing.d.ts.map +1 -1
- package/dist/theme/tokens/typography.d.ts +203 -5
- package/dist/theme/tokens/typography.d.ts.map +1 -1
- package/dist/theme/useColorPalette.d.ts +16 -10
- package/dist/theme/useColorPalette.d.ts.map +1 -1
- package/dist/tokens.cjs +1 -1
- package/dist/tokens.cjs.map +1 -1
- package/dist/tokens.js +23 -38
- package/dist/tokens.js.map +1 -1
- package/dist/types/color.d.ts +272 -237
- package/dist/types/color.d.ts.map +1 -1
- package/dist/types/text.d.ts +43 -4
- package/dist/types/text.d.ts.map +1 -1
- package/dist/types/variant.d.ts +2 -0
- package/dist/types/variant.d.ts.map +1 -1
- package/dist/util/classes.d.ts.map +1 -1
- package/dist/util/formatBytes.d.ts +14 -0
- package/dist/util/formatBytes.d.ts.map +1 -0
- package/dist/voodo.css +1 -1
- package/package.json +13 -2
- package/dist/components/CodeBlock/CodeBlock.d.ts +0 -32
- package/dist/components/CodeBlock/CodeBlock.d.ts.map +0 -1
- package/dist/components/CodeBlock/index.d.ts +0 -2
- package/dist/components/CodeBlock/index.d.ts.map +0 -1
- package/dist/components/LoadingScreen/LoadingScreen.d.ts +0 -28
- package/dist/components/LoadingScreen/LoadingScreen.d.ts.map +0 -1
- package/dist/components/LoadingScreen/index.d.ts +0 -2
- package/dist/components/LoadingScreen/index.d.ts.map +0 -1
- package/dist/palette-B91vdbSd.js +0 -479
- package/dist/palette-B91vdbSd.js.map +0 -1
- package/dist/palette-dgN5vIc-.cjs +0 -2
- package/dist/palette-dgN5vIc-.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,WAAW,EAAE,CAAC;AAGvB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,YAAY,EACZ,KAAK,MAAM,GACZ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExC,wBAOE"}
|
|
@@ -1,9 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* The visualization palettes — the colors handed out when something needs a
|
|
3
|
+
* series of distinguishable colors.
|
|
4
|
+
*
|
|
5
|
+
* Figma splits these into two groups, and the distinction matters:
|
|
6
|
+
*
|
|
7
|
+
* - `viz-overlay` is **mode-independent** (identical in both themes). These
|
|
8
|
+
* are marks drawn *on media* — looker's detection boxes, masks, keypoints.
|
|
9
|
+
* The image behind them does not get lighter when the UI does, so neither
|
|
10
|
+
* may they, or a label that read well over a dark photo stops reading.
|
|
11
|
+
* - `viz-chart` **varies by mode**. These are marks drawn *on the UI* —
|
|
12
|
+
* histograms, plots, legends — and must hold contrast against a surface
|
|
13
|
+
* that does change.
|
|
14
|
+
*
|
|
15
|
+
* Pick by what the color is drawn onto, not by which list is nearer to hand.
|
|
16
|
+
*
|
|
17
|
+
* This module is pure data with no React or CSS dependency, so it is safe to
|
|
18
|
+
* import from workers and other non-UI contexts via `@voxel51/voodo/tokens`.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Pool order. **Code-side, not a Figma token.**
|
|
22
|
+
*
|
|
23
|
+
* Figma's `palette/1-brand … 18-mint` numbered the slots, so the order was the
|
|
24
|
+
* design's to state and code just read the numbers off. `viz-chart` and
|
|
25
|
+
* `viz-overlay` are keyed by hue with no ordering, so the sequence has to live
|
|
26
|
+
* here until Figma expresses it again.
|
|
27
|
+
*
|
|
28
|
+
* Ordered for separation between *adjacent* slots, since a pool is consumed by
|
|
29
|
+
* index and neighbours are what land side by side. `neutral` sorts last: it
|
|
30
|
+
* reads as "no category" and should be the last color a dataset reaches for.
|
|
31
|
+
* Brand orange is deliberately absent — Figma dropped it from both viz groups,
|
|
32
|
+
* and a data series colored like the primary action is a real ambiguity.
|
|
33
|
+
*/
|
|
34
|
+
declare const POOL_ORDER: readonly ["blue", "green", "purple", "pink", "yellow", "teal", "red", "lime", "magenta", "neutral"];
|
|
35
|
+
export type VizHue = (typeof POOL_ORDER)[number];
|
|
36
|
+
/**
|
|
37
|
+
* Hue names in pool order. The slot list, for anything that labels slots.
|
|
38
|
+
*
|
|
39
|
+
* @deprecated This used to be `{ dark, light }` lists of Figma's numbered
|
|
40
|
+
* `palette/*` slot keys. The viz groups are keyed by hue and carry no mode
|
|
41
|
+
* split, so it is now a single flat list; callers indexing `.dark` / `.light`
|
|
42
|
+
* need updating. Prefer {@link overlayPool} / {@link chartPool} with
|
|
43
|
+
* {@link VizHue}.
|
|
44
|
+
*/
|
|
45
|
+
export declare const paletteSlots: readonly VizHue[];
|
|
46
|
+
/**
|
|
47
|
+
* Mode-independent overlay colors, in pool order. The right pool for anything
|
|
48
|
+
* drawn over media.
|
|
49
|
+
*/
|
|
50
|
+
export declare const overlayPool: readonly string[];
|
|
51
|
+
/** Chart colors in pool order, per mode. */
|
|
52
|
+
export declare const chartPool: {
|
|
53
|
+
readonly dark: readonly string[];
|
|
54
|
+
readonly light: readonly string[];
|
|
4
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated Figma's `palette/*` group was replaced by `viz-chart` and
|
|
58
|
+
* `viz-overlay` in the 2026-09-05 token release. This alias keeps the old
|
|
59
|
+
* import working and resolves to the **chart** pool; if the colors are drawn
|
|
60
|
+
* over media, move to `overlayPool` instead — that is a behaviour change, not
|
|
61
|
+
* a rename, and it is the one this split exists to make visible.
|
|
62
|
+
*/
|
|
5
63
|
export declare const palettePool: {
|
|
6
|
-
readonly dark: string[];
|
|
7
|
-
readonly light: string[];
|
|
64
|
+
readonly dark: readonly string[];
|
|
65
|
+
readonly light: readonly string[];
|
|
8
66
|
};
|
|
67
|
+
export {};
|
|
9
68
|
//# sourceMappingURL=palette.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens/palette.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens/palette.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,UAAU,qGAWN,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAOjD;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,SAAS,MAAM,EAAe,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,SAAS,MAAM,EAExC,CAAC;AAEF,4CAA4C;AAC5C,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AAEX;;;;;;GAMG;AACH,eAAO,MAAM,WAAW;;;CAAY,CAAC"}
|
|
@@ -1,4 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spacing.
|
|
3
|
+
*
|
|
4
|
+
* Two tiers, because Figma's names are values and Tailwind's are too.
|
|
5
|
+
*
|
|
6
|
+
* `spacing` mirrors the Figma `spacing/*` scale verbatim — Figma re-keyed it
|
|
7
|
+
* from steps to raw pixels, so `spacing/16` means 16px and not the 64px that
|
|
8
|
+
* the identically-named step used to mean.
|
|
9
|
+
*
|
|
10
|
+
* `spacingRole` is the tier Figma's Primitives collection does not have yet,
|
|
11
|
+
* and is what consumers bind to. Only these reach CSS: see the note below.
|
|
12
|
+
*/
|
|
13
|
+
/** The Figma `spacing/*` scale. Keys are pixel values, not steps. */
|
|
1
14
|
export declare const spacing: {
|
|
15
|
+
readonly 2: "2px";
|
|
16
|
+
readonly 4: "4px";
|
|
17
|
+
readonly 6: "6px";
|
|
18
|
+
readonly 8: "8px";
|
|
19
|
+
readonly 10: "10px";
|
|
20
|
+
readonly 12: "12px";
|
|
21
|
+
readonly 16: "16px";
|
|
22
|
+
readonly 20: "20px";
|
|
23
|
+
readonly 24: "24px";
|
|
24
|
+
readonly 32: "32px";
|
|
25
|
+
readonly 40: "40px";
|
|
26
|
+
readonly 48: "48px";
|
|
27
|
+
readonly 64: "64px";
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Named spacing roles — the public surface.
|
|
31
|
+
*
|
|
32
|
+
* **These, and only these, are emitted as `--spacing-*` custom properties.**
|
|
33
|
+
* Tailwind v4 derives every numeric spacing utility from a single multiplier
|
|
34
|
+
* (`--spacing: 0.25rem`), so `py-2` is `calc(var(--spacing) * 2)` = 8px — but
|
|
35
|
+
* only while `--spacing-2` is undefined. Emitting the numeric scale above
|
|
36
|
+
* would define it, silently redefining `py-2` as 2px and doing the same to 71
|
|
37
|
+
* other numeric utilities, with no error from tsc, eslint or the suite.
|
|
38
|
+
*
|
|
39
|
+
* Values are unchanged from the previous t-shirt scale, so this tier is a
|
|
40
|
+
* rename of nothing.
|
|
41
|
+
*
|
|
42
|
+
* Kept in `rem`, not the `px` of the Figma scale above. These are the values
|
|
43
|
+
* that reach the browser, and `rem` scales with the user's root font size --
|
|
44
|
+
* emitting `4px` where `0.25rem` used to be would quietly opt every spacing
|
|
45
|
+
* utility out of browser text-size settings. Converting the scale to `rem` is
|
|
46
|
+
* a real decision about whether Figma's pixels are pixels or ratios, and it
|
|
47
|
+
* belongs with the spacing audit, not here.
|
|
48
|
+
*/
|
|
49
|
+
export declare const spacingRole: {
|
|
2
50
|
readonly xs: "0.25rem";
|
|
3
51
|
readonly sm: "0.5rem";
|
|
4
52
|
readonly md: "1rem";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens/spacing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;
|
|
1
|
+
{"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens/spacing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,qEAAqE;AACrE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;CAcV,CAAC;AAEX;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC"}
|
|
@@ -1,8 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typography.
|
|
3
|
+
*
|
|
4
|
+
* Same two-tier split as spacing, and for the same reason: Figma re-keyed
|
|
5
|
+
* `font-size` and `line-height` from t-shirt names to pixel values, and the
|
|
6
|
+
* role names Tailwind emits (`text-sm`, `text-lg`) have to keep meaning what
|
|
7
|
+
* they mean today.
|
|
8
|
+
*/
|
|
9
|
+
/** The Figma `font-size/*` scale. Keys are pixel values. */
|
|
10
|
+
export declare const fontSize: {
|
|
11
|
+
readonly 9: "9px";
|
|
12
|
+
readonly 11: "11px";
|
|
13
|
+
readonly 12: "12px";
|
|
14
|
+
readonly 13: "13px";
|
|
15
|
+
readonly 14: "14px";
|
|
16
|
+
readonly 15: "15px";
|
|
17
|
+
readonly 16: "16px";
|
|
18
|
+
readonly 18: "18px";
|
|
19
|
+
readonly 23: "23px";
|
|
20
|
+
};
|
|
21
|
+
/** The Figma `line-height/*` scale. Keys are pixel values. */
|
|
22
|
+
export declare const lineHeight: {
|
|
23
|
+
readonly 12: "12px";
|
|
24
|
+
readonly 16: "16px";
|
|
25
|
+
readonly 20: "20px";
|
|
26
|
+
readonly 24: "24px";
|
|
27
|
+
readonly 28: "28px";
|
|
28
|
+
readonly 36: "36px";
|
|
29
|
+
readonly 44: "44px";
|
|
30
|
+
readonly 52: "52px";
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* The Figma `type/*` tier — the twelve text roles every text layer in the
|
|
34
|
+
* design file binds to. Each role pairs a size with its leading and weight,
|
|
35
|
+
* which is the thing the size-only scale below could never express.
|
|
36
|
+
*
|
|
37
|
+
* Read live from the design file on 2026-09-30. `code-secondary` is 11px
|
|
38
|
+
* there, not the 12px an earlier hand-off table recorded.
|
|
39
|
+
*/
|
|
40
|
+
export declare const textRole: {
|
|
41
|
+
readonly "heading-xl": {
|
|
42
|
+
readonly fontSize: "23px";
|
|
43
|
+
readonly lineHeight: "28px";
|
|
44
|
+
readonly fontWeight: 400;
|
|
45
|
+
};
|
|
46
|
+
readonly "heading-lg": {
|
|
47
|
+
readonly fontSize: "18px";
|
|
48
|
+
readonly lineHeight: "24px";
|
|
49
|
+
readonly fontWeight: 500;
|
|
50
|
+
};
|
|
51
|
+
readonly "heading-md": {
|
|
52
|
+
readonly fontSize: "16px";
|
|
53
|
+
readonly lineHeight: "20px";
|
|
54
|
+
readonly fontWeight: 500;
|
|
55
|
+
};
|
|
56
|
+
readonly "heading-sm": {
|
|
57
|
+
readonly fontSize: "14px";
|
|
58
|
+
readonly lineHeight: "20px";
|
|
59
|
+
readonly fontWeight: 500;
|
|
60
|
+
};
|
|
61
|
+
readonly "heading-xs": {
|
|
62
|
+
readonly fontSize: "12px";
|
|
63
|
+
readonly lineHeight: "16px";
|
|
64
|
+
readonly fontWeight: 500;
|
|
65
|
+
};
|
|
66
|
+
readonly "body-primary": {
|
|
67
|
+
readonly fontSize: "15px";
|
|
68
|
+
readonly lineHeight: "20px";
|
|
69
|
+
readonly fontWeight: 400;
|
|
70
|
+
};
|
|
71
|
+
readonly "body-secondary": {
|
|
72
|
+
readonly fontSize: "14px";
|
|
73
|
+
readonly lineHeight: "20px";
|
|
74
|
+
readonly fontWeight: 400;
|
|
75
|
+
};
|
|
76
|
+
readonly "body-tertiary": {
|
|
77
|
+
readonly fontSize: "12px";
|
|
78
|
+
readonly lineHeight: "16px";
|
|
79
|
+
readonly fontWeight: 400;
|
|
80
|
+
};
|
|
81
|
+
readonly label: {
|
|
82
|
+
readonly fontSize: "12px";
|
|
83
|
+
readonly lineHeight: "16px";
|
|
84
|
+
readonly fontWeight: 600;
|
|
85
|
+
};
|
|
86
|
+
readonly caption: {
|
|
87
|
+
readonly fontSize: "11px";
|
|
88
|
+
readonly lineHeight: "16px";
|
|
89
|
+
readonly fontWeight: 400;
|
|
90
|
+
};
|
|
91
|
+
readonly "code-primary": {
|
|
92
|
+
readonly fontSize: "12px";
|
|
93
|
+
readonly lineHeight: "16px";
|
|
94
|
+
readonly fontWeight: 400;
|
|
95
|
+
};
|
|
96
|
+
readonly "code-secondary": {
|
|
97
|
+
readonly fontSize: "11px";
|
|
98
|
+
readonly lineHeight: "16px";
|
|
99
|
+
readonly fontWeight: 400;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
export type TextRole = keyof typeof textRole;
|
|
1
103
|
export declare const typography: {
|
|
2
104
|
readonly fontFamily: {
|
|
3
105
|
readonly sans: readonly ["Palanquin", "sans-serif"];
|
|
4
|
-
readonly mono: readonly ["monospace"];
|
|
106
|
+
readonly mono: readonly ["Roboto Mono", "monospace"];
|
|
5
107
|
};
|
|
108
|
+
/**
|
|
109
|
+
* Named size roles — the public surface, and the only tier emitted as
|
|
110
|
+
* `--text-*`.
|
|
111
|
+
*
|
|
112
|
+
* Emitting the numeric scale instead would leave `--text-sm` and `--text-lg`
|
|
113
|
+
* undefined, and Tailwind would quietly fall back to its own built-in scale
|
|
114
|
+
* across 41 call sites.
|
|
115
|
+
*
|
|
116
|
+
* Values are deliberately unchanged from the previous scale, so this tier is
|
|
117
|
+
* a rename of nothing.
|
|
118
|
+
*
|
|
119
|
+
* Figma added `font-size/14` and `/16` and nothing consumes them yet. They
|
|
120
|
+
* are almost certainly the new body and heading sizes, but re-pointing `md`
|
|
121
|
+
* and `lg` at them in isolation makes type look worse, not better: the
|
|
122
|
+
* line-heights these sizes are paired with are raw Tailwind numbers
|
|
123
|
+
* (`text-md/5`), not tokens, so the size moves and the leading does not.
|
|
124
|
+
* Size and leading have to be tokenised together, against Figma's 12 text
|
|
125
|
+
* styles. Until then this tier holds still.
|
|
126
|
+
*/
|
|
6
127
|
readonly fontSize: {
|
|
7
128
|
readonly xxs: "9px";
|
|
8
129
|
readonly xs: "11px";
|
|
@@ -12,11 +133,88 @@ export declare const typography: {
|
|
|
12
133
|
readonly xl: "18px";
|
|
13
134
|
readonly xxl: "23px";
|
|
14
135
|
};
|
|
136
|
+
/**
|
|
137
|
+
* The role tier, emitted as `--text-<role>` plus the `--line-height` and
|
|
138
|
+
* `--font-weight` sub-properties Tailwind reads for the `text-<role>`
|
|
139
|
+
* utility. This is what components bind to; the size-only tier above stays
|
|
140
|
+
* for consumers that have not migrated.
|
|
141
|
+
*/
|
|
142
|
+
readonly textRole: {
|
|
143
|
+
readonly "heading-xl": {
|
|
144
|
+
readonly fontSize: "23px";
|
|
145
|
+
readonly lineHeight: "28px";
|
|
146
|
+
readonly fontWeight: 400;
|
|
147
|
+
};
|
|
148
|
+
readonly "heading-lg": {
|
|
149
|
+
readonly fontSize: "18px";
|
|
150
|
+
readonly lineHeight: "24px";
|
|
151
|
+
readonly fontWeight: 500;
|
|
152
|
+
};
|
|
153
|
+
readonly "heading-md": {
|
|
154
|
+
readonly fontSize: "16px";
|
|
155
|
+
readonly lineHeight: "20px";
|
|
156
|
+
readonly fontWeight: 500;
|
|
157
|
+
};
|
|
158
|
+
readonly "heading-sm": {
|
|
159
|
+
readonly fontSize: "14px";
|
|
160
|
+
readonly lineHeight: "20px";
|
|
161
|
+
readonly fontWeight: 500;
|
|
162
|
+
};
|
|
163
|
+
readonly "heading-xs": {
|
|
164
|
+
readonly fontSize: "12px";
|
|
165
|
+
readonly lineHeight: "16px";
|
|
166
|
+
readonly fontWeight: 500;
|
|
167
|
+
};
|
|
168
|
+
readonly "body-primary": {
|
|
169
|
+
readonly fontSize: "15px";
|
|
170
|
+
readonly lineHeight: "20px";
|
|
171
|
+
readonly fontWeight: 400;
|
|
172
|
+
};
|
|
173
|
+
readonly "body-secondary": {
|
|
174
|
+
readonly fontSize: "14px";
|
|
175
|
+
readonly lineHeight: "20px";
|
|
176
|
+
readonly fontWeight: 400;
|
|
177
|
+
};
|
|
178
|
+
readonly "body-tertiary": {
|
|
179
|
+
readonly fontSize: "12px";
|
|
180
|
+
readonly lineHeight: "16px";
|
|
181
|
+
readonly fontWeight: 400;
|
|
182
|
+
};
|
|
183
|
+
readonly label: {
|
|
184
|
+
readonly fontSize: "12px";
|
|
185
|
+
readonly lineHeight: "16px";
|
|
186
|
+
readonly fontWeight: 600;
|
|
187
|
+
};
|
|
188
|
+
readonly caption: {
|
|
189
|
+
readonly fontSize: "11px";
|
|
190
|
+
readonly lineHeight: "16px";
|
|
191
|
+
readonly fontWeight: 400;
|
|
192
|
+
};
|
|
193
|
+
readonly "code-primary": {
|
|
194
|
+
readonly fontSize: "12px";
|
|
195
|
+
readonly lineHeight: "16px";
|
|
196
|
+
readonly fontWeight: 400;
|
|
197
|
+
};
|
|
198
|
+
readonly "code-secondary": {
|
|
199
|
+
readonly fontSize: "11px";
|
|
200
|
+
readonly lineHeight: "16px";
|
|
201
|
+
readonly fontWeight: 400;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* Figma's `font-weight/*` scale, verbatim.
|
|
206
|
+
*
|
|
207
|
+
* The previous map (light 300, normal 400, semibold 500, bold 600) matched
|
|
208
|
+
* no Figma variable — `semibold` was a step light of Figma's, and `light`
|
|
209
|
+
* had no counterpart at all. Nothing reads these: they are not emitted as
|
|
210
|
+
* custom properties and the `font-*` utilities in use come from Tailwind's
|
|
211
|
+
* own scale, so this corrects the data without moving any pixels.
|
|
212
|
+
*/
|
|
15
213
|
readonly fontWeight: {
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly semibold:
|
|
19
|
-
readonly bold:
|
|
214
|
+
readonly regular: 400;
|
|
215
|
+
readonly medium: 500;
|
|
216
|
+
readonly semibold: 600;
|
|
217
|
+
readonly bold: 700;
|
|
20
218
|
};
|
|
21
219
|
};
|
|
22
220
|
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens/typography.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens/typography.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,4DAA4D;AAC5D,eAAO,MAAM,QAAQ;;;;;;;;;;CAUX,CAAC;AAEX,8DAA8D;AAC9D,eAAO,MAAM,UAAU;;;;;;;;;CASb,CAAC;AAEX;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DX,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,QAAQ,CAAC;AAE7C,eAAO,MAAM,UAAU;;;;;IASrB;;;;;;;;;;;;;;;;;;OAkBG;;;;;;;;;;IAWH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGH;;;;;;;;OAQG;;;;;;;CAOK,CAAC"}
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VizHue } from './tokens/palette';
|
|
2
2
|
/** Resolved color mode. Mirrors the `.dark` class contract in `tailwind.css`. */
|
|
3
3
|
export type ColorMode = "dark" | "light";
|
|
4
4
|
/**
|
|
5
|
-
* The
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* The chart group's token shape. Keyed by `VizHue` rather than by
|
|
6
|
+
* `typeof colors.dark…` so both modes satisfy it — the per-mode types are
|
|
7
|
+
* disjoint unions of hex literals, and only the key set is common to them.
|
|
8
8
|
*/
|
|
9
|
-
type
|
|
10
|
-
export interface ColorPalette extends
|
|
9
|
+
type ChartColors = Record<VizHue, string>;
|
|
10
|
+
export interface ColorPalette extends ChartColors {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* Chart hues in pool order — for anything that assigns colors by index and
|
|
13
|
+
* draws onto the UI (chart series, legends, histograms).
|
|
14
14
|
*/
|
|
15
15
|
pool: readonly string[];
|
|
16
|
+
/**
|
|
17
|
+
* Overlay hues in pool order — for marks drawn *over media* (looker's boxes,
|
|
18
|
+
* masks, keypoints). Identical in both modes on purpose: the image behind
|
|
19
|
+
* them does not change with the theme.
|
|
20
|
+
*/
|
|
21
|
+
overlay: readonly string[];
|
|
16
22
|
}
|
|
17
23
|
/**
|
|
18
24
|
* The currently active color mode, tracked by observing the `.dark` class on
|
|
@@ -33,7 +39,7 @@ export declare const useColorMode: () => ColorMode;
|
|
|
33
39
|
/**
|
|
34
40
|
* Resolved palette colors as literal hex strings for the active color mode.
|
|
35
41
|
*
|
|
36
|
-
* Prefer `cssVar.color
|
|
42
|
+
* Prefer `cssVar.color["viz-chart"].*` for anything that styles the DOM — CSS
|
|
37
43
|
* variables react to the theme without re-rendering React. Reach for this hook
|
|
38
44
|
* only where a literal value is required and a `var(--…)` cannot be used:
|
|
39
45
|
* canvas and WebGL (the looker overlays), charting libraries that parse colors
|
|
@@ -42,7 +48,7 @@ export declare const useColorMode: () => ColorMode;
|
|
|
42
48
|
* @example
|
|
43
49
|
* ```tsx
|
|
44
50
|
* const palette = useColorPalette();
|
|
45
|
-
* ctx.strokeStyle = palette.
|
|
51
|
+
* ctx.strokeStyle = palette.overlay[index % palette.overlay.length];
|
|
46
52
|
* ctx.fillStyle = palette.teal;
|
|
47
53
|
* ```
|
|
48
54
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useColorPalette.d.ts","sourceRoot":"","sources":["../../src/theme/useColorPalette.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useColorPalette.d.ts","sourceRoot":"","sources":["../../src/theme/useColorPalette.ts"],"names":[],"mappings":"AAGA,OAAO,EAA0B,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEvE,iFAAiF;AACjF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzC;;;;GAIG;AACH,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE1C,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C;;;OAGG;IACH,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB;;;;OAIG;IACH,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B;AAwBD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,QAAO,SACiC,CAAC;AAElE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,QAAO,YAWlC,CAAC"}
|
package/dist/tokens.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./palette-DV12yAPS.cjs"),i={action:{expressive:`linear-gradient(105deg, ${e.primitives.expressive["orange-default"]}, ${e.primitives.expressive["pink-default"]} 55%, ${e.primitives.expressive["purple-default"]})`}},t={colors:e.colors,gradients:i,spacing:e.spacing,spacingRole:e.spacingRole,transitions:e.transitions,typography:e.typography};exports.chartPool=e.chartPool;exports.colors=e.colors;exports.fontSize=e.fontSize;exports.lineHeight=e.lineHeight;exports.overlayPool=e.overlayPool;exports.palettePool=e.palettePool;exports.paletteSlots=e.paletteSlots;exports.primitives=e.primitives;exports.spacingRole=e.spacingRole;exports.transitions=e.transitions;exports.default=t;
|
|
2
2
|
//# sourceMappingURL=tokens.cjs.map
|
package/dist/tokens.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.cjs","sources":["../src/theme/tokens/
|
|
1
|
+
{"version":3,"file":"tokens.cjs","sources":["../src/theme/tokens/gradients.ts","../src/theme/tokens/index.ts"],"sourcesContent":["import { primitives } from \"./colors\";\n\n// The expressive gradient's stops are Figma's `expressive/*-default`\n// primitives (the same values the `interactive/expressive-default-*` tokens\n// resolve to), so the gradient re-tones with the brand ramp.\nexport const gradients = {\n action: {\n expressive: `linear-gradient(105deg, ${primitives.expressive[\"orange-default\"]}, ${primitives.expressive[\"pink-default\"]} 55%, ${primitives.expressive[\"purple-default\"]})`,\n },\n} as const;\n","import { colors } from \"./colors\";\nimport { gradients } from \"./gradients\";\nimport { spacing, spacingRole } from \"./spacing\";\nimport { transitions } from \"./transitions\";\nimport { typography } from \"./typography\";\n\nexport { transitions };\n// Named explicitly: `export *` does not forward the default export, so without\n// this line `colors` and `primitives` are unreachable from the package root.\nexport { colors, primitives } from \"./colors\";\nexport {\n chartPool,\n overlayPool,\n palettePool,\n paletteSlots,\n type VizHue,\n} from \"./palette\";\nexport { fontSize, lineHeight } from \"./typography\";\nexport { spacingRole } from \"./spacing\";\n\nexport default {\n colors,\n gradients,\n spacing,\n spacingRole,\n transitions,\n typography,\n};\n"],"names":["gradients","primitives","index","colors","spacing","spacingRole","transitions","typography"],"mappings":"sJAKaA,EAAY,CACvB,OAAQ,CACN,WAAY,2BAA2BC,EAAAA,WAAW,WAAW,gBAAgB,CAAC,KAAKA,EAAAA,WAAW,WAAW,cAAc,CAAC,SAASA,EAAAA,WAAW,WAAW,gBAAgB,CAAC,GAAA,CAE5K,ECWAC,EAAe,CAAA,OACbC,EAAAA,OACA,UAAAH,EAAA,QACAI,EAAAA,QAAA,YACAC,EAAAA,YAAA,YACAC,EAAAA,YAAA,WACAC,EAAAA,UACF"}
|
package/dist/tokens.js
CHANGED
|
@@ -1,43 +1,28 @@
|
|
|
1
|
-
import { t as s,
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
md: "1rem",
|
|
7
|
-
lg: "1.5rem",
|
|
8
|
-
xl: "2rem"
|
|
9
|
-
}, a = {
|
|
10
|
-
fontFamily: {
|
|
11
|
-
sans: ["Palanquin", "sans-serif"],
|
|
12
|
-
mono: ["monospace"]
|
|
13
|
-
},
|
|
14
|
-
fontSize: {
|
|
15
|
-
xxs: "9px",
|
|
16
|
-
xs: "11px",
|
|
17
|
-
sm: "12px",
|
|
18
|
-
md: "13px",
|
|
19
|
-
lg: "15px",
|
|
20
|
-
xl: "18px",
|
|
21
|
-
xxl: "23px"
|
|
22
|
-
},
|
|
23
|
-
fontWeight: {
|
|
24
|
-
light: 300,
|
|
25
|
-
normal: 400,
|
|
26
|
-
semibold: 500,
|
|
27
|
-
bold: 600
|
|
1
|
+
import { d as e, t as s, e as a, s as t, g as o, a as i } from "./palette-Boxwxq4V.js";
|
|
2
|
+
import { c as g, f as c, l as f, o as x, p as v, b as u } from "./palette-Boxwxq4V.js";
|
|
3
|
+
const r = {
|
|
4
|
+
action: {
|
|
5
|
+
expressive: `linear-gradient(105deg, ${e.expressive["orange-default"]}, ${e.expressive["pink-default"]} 55%, ${e.expressive["purple-default"]})`
|
|
28
6
|
}
|
|
29
|
-
},
|
|
30
|
-
colors:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
7
|
+
}, l = {
|
|
8
|
+
colors: i,
|
|
9
|
+
gradients: r,
|
|
10
|
+
spacing: o,
|
|
11
|
+
spacingRole: t,
|
|
12
|
+
transitions: a,
|
|
13
|
+
typography: s
|
|
34
14
|
};
|
|
35
15
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
l as
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
16
|
+
g as chartPool,
|
|
17
|
+
i as colors,
|
|
18
|
+
l as default,
|
|
19
|
+
c as fontSize,
|
|
20
|
+
f as lineHeight,
|
|
21
|
+
x as overlayPool,
|
|
22
|
+
v as palettePool,
|
|
23
|
+
u as paletteSlots,
|
|
24
|
+
e as primitives,
|
|
25
|
+
t as spacingRole,
|
|
26
|
+
a as transitions
|
|
42
27
|
};
|
|
43
28
|
//# sourceMappingURL=tokens.js.map
|
package/dist/tokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sources":["../src/theme/tokens/
|
|
1
|
+
{"version":3,"file":"tokens.js","sources":["../src/theme/tokens/gradients.ts","../src/theme/tokens/index.ts"],"sourcesContent":["import { primitives } from \"./colors\";\n\n// The expressive gradient's stops are Figma's `expressive/*-default`\n// primitives (the same values the `interactive/expressive-default-*` tokens\n// resolve to), so the gradient re-tones with the brand ramp.\nexport const gradients = {\n action: {\n expressive: `linear-gradient(105deg, ${primitives.expressive[\"orange-default\"]}, ${primitives.expressive[\"pink-default\"]} 55%, ${primitives.expressive[\"purple-default\"]})`,\n },\n} as const;\n","import { colors } from \"./colors\";\nimport { gradients } from \"./gradients\";\nimport { spacing, spacingRole } from \"./spacing\";\nimport { transitions } from \"./transitions\";\nimport { typography } from \"./typography\";\n\nexport { transitions };\n// Named explicitly: `export *` does not forward the default export, so without\n// this line `colors` and `primitives` are unreachable from the package root.\nexport { colors, primitives } from \"./colors\";\nexport {\n chartPool,\n overlayPool,\n palettePool,\n paletteSlots,\n type VizHue,\n} from \"./palette\";\nexport { fontSize, lineHeight } from \"./typography\";\nexport { spacingRole } from \"./spacing\";\n\nexport default {\n colors,\n gradients,\n spacing,\n spacingRole,\n transitions,\n typography,\n};\n"],"names":["gradients","primitives","index","colors","spacing","spacingRole","transitions","typography"],"mappings":";;AAKO,MAAMA,IAAY;AAAA,EACvB,QAAQ;AAAA,IACN,YAAY,2BAA2BC,EAAW,WAAW,gBAAgB,CAAC,KAAKA,EAAW,WAAW,cAAc,CAAC,SAASA,EAAW,WAAW,gBAAgB,CAAC;AAAA,EAAA;AAE5K,GCWAC,IAAe;AAAA,EACb,QAAAC;AAAA,EACA,WAAAH;AAAA,EACA,SAAAI;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC;AAAA,EACA,YAAAC;AACF;"}
|