hextimator 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -2
- package/README.md +83 -32
- package/dist/{HextimatePaletteBuilder-BOuHKcVE.d.ts → HextimatePaletteBuilder-xqJwP_G2.d.ts} +42 -26
- package/dist/{chunk-MBVLFPTG.js → chunk-2OMHLWID.js} +183 -88
- package/dist/cli.js +220 -120
- package/dist/index.d.ts +23 -26
- package/dist/index.js +1 -1
- package/dist/react.d.ts +33 -19
- package/dist/react.js +93 -46
- package/fallback.css +68 -80
- package/llms.txt +113 -21
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,45 @@
|
|
|
1
|
+
## Not Released (0.3.0)
|
|
2
|
+
|
|
3
|
+
- [#99](https://github.com/fgrgic/hextimator/pull/99): Adds option to chain presets. Presets are merged, last added wins if both touch the same tokens.
|
|
4
|
+
- For example: `hextimate("#ff6677").preset(shadcn).preset(muted);`
|
|
5
|
+
- It also works with cli: `npx hextimate "#ff6677" -p shadcn -p vibrant`
|
|
6
|
+
|
|
7
|
+
- [#100](https://github.com/fgrgic/hextimator/pull/100): Adds `excludeRoles` and `excludeVariants` to `HextimateFormatOptions`, allowing presets and `.format()` calls to suppress auto-generated roles or variants they don't need. Also available in the CLI as `--exclude-role` and `--exclude-variant` (both repeatable). Applied to the `shadcn` and `mui` built-in presets to clean up their default output.
|
|
8
|
+
|
|
9
|
+
- [#101](https://github.com/fgrgic/hextimator/pull/101): **Breaking.** Palette tuning moves to `.style(partial)` on the builder instead of extra arguments on `hextimate` or `fork`. Presets and types use `style` instead of `generation`. In React the hook and provider follow that; `HextimatorScope` takes `wrapperStyle` for the wrapper div so `style` stays palette options.
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
hextimate(c, o) → hextimate(c).style(o)
|
|
13
|
+
base.fork(c2, o) → base.fork(c2).style(o)
|
|
14
|
+
base.fork(o) → base.fork().style(o)
|
|
15
|
+
preset.generation → preset.style
|
|
16
|
+
HextimateGenerationOptions → HextimateStyleOptions
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
<HextimatorProvider generation={o} /> → <HextimatorProvider style={o} />
|
|
21
|
+
useHextimatorTheme().setGeneration → useHextimatorTheme().setStyle
|
|
22
|
+
<HextimatorScope style={s} /> → <HextimatorScope wrapperStyle={s} />
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Migration checklist: [migrating-from-0.2.md](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/migrating-from-0.2.md).
|
|
26
|
+
|
|
1
27
|
## 0.2.0
|
|
28
|
+
|
|
2
29
|
- [#94](https://github.com/fgrgic/hextimator/pull/94): Adds scoped themes to React implementation. See [react.md](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/react.md) for more details:
|
|
3
30
|
- **`HextimatorStyle`**: renders theme CSS as a `<style>` in the tree (no `document.head` / `useEffect`); same options as the hook; optional `selector` for cascade scoping.
|
|
4
|
-
- **`HextimatorScope`**: `data-hextimator-scope` wrapper: Inherits palette shape from parent via **`builder.fork(color
|
|
31
|
+
- **`HextimatorScope`**: `data-hextimator-scope` wrapper: Inherits palette shape from parent via **`builder.fork(color)`** (scope `style` merges with `.style()`); optional scope `configure` runs on top.
|
|
5
32
|
- [#95](https://github.com/fgrgic/hextimator/pull/95): Adds a `fallback.css` file that can be imported to have a theme before the JS loads. You could always manually do this, but this import provides an easier way to do so.
|
|
6
33
|
|
|
7
|
-
|
|
8
34
|
## 0.1.2
|
|
35
|
+
|
|
9
36
|
- Add more context to `llms.txt`
|
|
10
37
|
- Add `brand-exact` and `brand-exact-foreground` to `tailwind.css` file
|
|
11
38
|
|
|
12
39
|
## 0.1.1
|
|
40
|
+
|
|
13
41
|
- Add `./cli` export for programmatic CLI access and `npx hextimate` shim
|
|
14
42
|
|
|
15
43
|
## 0.1.0
|
|
44
|
+
|
|
16
45
|
- initial release
|
package/README.md
CHANGED
|
@@ -10,8 +10,8 @@ One color in, whole theme out.
|
|
|
10
10
|
|
|
11
11
|
Your customers pick a brand color. Your app looks good. Every time. No manual tuning, no edge cases where "that shade of yellow" breaks your UI.
|
|
12
12
|
|
|
13
|
-
- **Ship
|
|
14
|
-
- **Every color just works** — perceptually uniform
|
|
13
|
+
- **Ship multi-tenant apps without the design overhead** — generate per-tenant branded themes at runtime from a single input color. No design review per customer.
|
|
14
|
+
- **Every color just works** — perceptually uniform colors with OKLCH means that electric blue looks as balanced as muted olive.
|
|
15
15
|
- **Accessible by default** — every foreground meets AAA contrast against its background, light and dark mode included.
|
|
16
16
|
|
|
17
17
|
**[hextimator.com](https://hextimator.com)** — try it in the playground.
|
|
@@ -27,7 +27,7 @@ npm i hextimator
|
|
|
27
27
|
Or quickly get a one-off theme:
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
-
npx hextimator "#
|
|
30
|
+
npx hextimator "#C0FFEE"
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
## Quick start
|
|
@@ -35,41 +35,94 @@ npx hextimator "#ff6677"
|
|
|
35
35
|
```typescript
|
|
36
36
|
import { hextimate } from "hextimator";
|
|
37
37
|
|
|
38
|
-
const theme = hextimate("#
|
|
38
|
+
const theme = hextimate("#C0FFEE").format();
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
### With
|
|
41
|
+
### With presets
|
|
42
42
|
|
|
43
|
-
Presets
|
|
43
|
+
Presets are partial or full themes. You can chain them together, [extend them](#extending-presets), or not use them at all. They provide a starting point: whether for a specific framework or a particular style:
|
|
44
44
|
|
|
45
45
|
```typescript
|
|
46
46
|
import { hextimate, presets } from "hextimator";
|
|
47
47
|
|
|
48
|
-
// shadcn/ui
|
|
49
|
-
const theme = hextimate("#
|
|
48
|
+
// shadcn/ui tokens
|
|
49
|
+
const theme = hextimate("#0FF1CE").preset(presets.shadcn).format();
|
|
50
|
+
|
|
51
|
+
// muted palette
|
|
52
|
+
const theme = hextimate("#0FF1CE").preset(presets.muted).format();
|
|
53
|
+
|
|
54
|
+
// muted shadcn theme
|
|
55
|
+
const theme = hextimate("#0FF1CE")
|
|
50
56
|
.preset(presets.shadcn)
|
|
57
|
+
.preset(presets.muted)
|
|
51
58
|
.format();
|
|
52
59
|
```
|
|
53
60
|
|
|
54
|
-
Presets
|
|
61
|
+
Presets are applied sequentially (last wins for conflicts) and you can override anything in `.format()`:
|
|
55
62
|
|
|
56
63
|
```typescript
|
|
57
|
-
const theme = hextimate("#
|
|
64
|
+
const theme = hextimate("#BADA55")
|
|
65
|
+
.preset(presets.muted)
|
|
58
66
|
.preset(presets.shadcn)
|
|
59
|
-
.format({ colors: "hsl-raw" }); //
|
|
67
|
+
.format({ colors: "hsl-raw" }); // override preset's oklch default
|
|
60
68
|
```
|
|
61
69
|
|
|
62
|
-
|
|
70
|
+
### Extending presets
|
|
71
|
+
|
|
72
|
+
Presets can bring their own **`style`** (contrast, chroma, and other generation options). **`.style(partial)`** after **`.preset()`** layers your tweaks on top—options merge along the chain, so you can refine a preset’s look for your product without forking the preset object:
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
const theme = hextimate("#DEC0DE")
|
|
76
|
+
.preset(presets.tinted) // e.g. sets a looser baseMaxChroma
|
|
77
|
+
.style({ baseMaxChroma: 0.01 }) // tighten further for this app
|
|
78
|
+
.preset(presets.shadcn)
|
|
79
|
+
.format();
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
See [Presets](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/presets.md) for the full list, chaining details, and how to create your own.
|
|
63
83
|
|
|
64
84
|
## Two-step API: generate, then format
|
|
65
85
|
|
|
66
86
|
hextimator separates **palette generation** (color math) from **formatting** (output shape). This lets you extend the palette before choosing how to serialize it.
|
|
67
87
|
|
|
68
88
|
```typescript
|
|
69
|
-
const theme = hextimate("#
|
|
70
|
-
.format({ as: "css", colors: "oklch" });
|
|
89
|
+
const theme = hextimate("#0FF5E7").format({ as: "css", colors: "oklch" });
|
|
71
90
|
```
|
|
72
91
|
|
|
92
|
+
### Palette options with `.style()`
|
|
93
|
+
|
|
94
|
+
**`hextimate` only takes the color.** Everything that steers generation—contrast rules, chroma caps, hue tweaks, light/dark tweaks, and the rest—goes on **`.style(partial)`**. Call it once or stack several calls; each merges into the current options (later wins on the same keys).
|
|
95
|
+
|
|
96
|
+
```typescript
|
|
97
|
+
hextimate("#FACADE")
|
|
98
|
+
.style({ minContrastRatio: "AA", baseMaxChroma: 0.02 })
|
|
99
|
+
.format();
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Preset **`style`** plus **`.style()`** on the builder is covered in [Extending presets](#extending-presets) above. For every option you can pass, see [Customization](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/customization.md). To reuse the same chain with another accent or options, see [Multiple themes](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/multiple-themes.md) (`.fork()` + `.style()`).
|
|
103
|
+
|
|
104
|
+
### Filtering output
|
|
105
|
+
|
|
106
|
+
Use `excludeRoles` and `excludeVariants` in `.format()` (or in a preset's `format` field) to drop tokens you don't need:
|
|
107
|
+
|
|
108
|
+
```typescript
|
|
109
|
+
// Drop the warning role and the strong/weak variants entirely
|
|
110
|
+
hextimate("#F11732").format({
|
|
111
|
+
excludeRoles: ["warning"],
|
|
112
|
+
excludeVariants: ["strong", "weak"],
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
// Useful in custom presets to keep output tight
|
|
116
|
+
const myPreset: HextimatePreset = {
|
|
117
|
+
format: {
|
|
118
|
+
excludeRoles: ["warning"],
|
|
119
|
+
excludeVariants: ["strong", "weak"],
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Both options use internal names (before any `roleNames`/`variantNames` remapping).
|
|
125
|
+
|
|
73
126
|
### Output formats
|
|
74
127
|
|
|
75
128
|
All formats return `{ light: { ... }, dark: { ... } }`.
|
|
@@ -83,29 +136,26 @@ All formats return `{ light: { ... }, dark: { ... } }`.
|
|
|
83
136
|
|
|
84
137
|
### Color value formats
|
|
85
138
|
|
|
86
|
-
| `colors`
|
|
87
|
-
|
|
88
|
-
| `"hex"` (default) | `"#6a5acd"`
|
|
89
|
-
| `"oklch"`
|
|
90
|
-
| `"oklch-raw"`
|
|
91
|
-
| `"rgb"`
|
|
92
|
-
| `"rgb-raw"`
|
|
93
|
-
| `"hsl"`
|
|
94
|
-
| `"hsl-raw"`
|
|
95
|
-
| `"p3"`
|
|
96
|
-
| `"p3-raw"`
|
|
139
|
+
| `colors` | Example output |
|
|
140
|
+
| ----------------- | ------------------------------------ |
|
|
141
|
+
| `"hex"` (default) | `"#6a5acd"` |
|
|
142
|
+
| `"oklch"` | `"oklch(0.54 0.18 276)"` |
|
|
143
|
+
| `"oklch-raw"` | `"0.54 0.18 276"` |
|
|
144
|
+
| `"rgb"` | `"rgb(106, 90, 205)"` |
|
|
145
|
+
| `"rgb-raw"` | `"106 90 205"` |
|
|
146
|
+
| `"hsl"` | `"hsl(248, 53%, 58%)"` |
|
|
147
|
+
| `"hsl-raw"` | `"248 53% 58%"` |
|
|
148
|
+
| `"p3"` | `"color(display-p3 0.39 0.34 0.79)"` |
|
|
149
|
+
| `"p3-raw"` | `"0.39 0.34 0.79"` |
|
|
97
150
|
|
|
98
151
|
### Flexible input
|
|
99
152
|
|
|
100
|
-
|
|
101
|
-
hextimate("#FF6666"); // hex string
|
|
102
|
-
hextimate("rgb(255, 102, 102)"); // CSS function
|
|
103
|
-
hextimate([255, 102, 102]); // RGB tuple
|
|
104
|
-
hextimate(0xff6666); // numeric hex
|
|
105
|
-
```
|
|
153
|
+
Besides hex, **`hextimate`** accepts CSS color strings, RGB tuples, and numeric `0xRRGGBB`—anything **`parseColor`** understands.
|
|
106
154
|
|
|
107
155
|
> **Note on alpha**: Alpha values are intentionally ignored — `rgba(255, 0, 0, 0.5)` is treated as fully opaque `rgb(255, 0, 0)`. Alpha tokens undermine accessibility guarantees because contrast ratios depend on the background, which hextimator does not control.
|
|
108
156
|
|
|
157
|
+
Before `.format()` you can still chain **`addRole` / `addVariant` / `addToken`**, **`.preset()`**, **`.fork()`**, **`.simulate()` / `.adaptFor()`**, and anything else in [Extending the palette](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/extending-the-palette.md) or [Presets](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/presets.md).
|
|
158
|
+
|
|
109
159
|
## How it works
|
|
110
160
|
|
|
111
161
|
1. **Parse** any color input into a normalized `Color` object.
|
|
@@ -148,10 +198,11 @@ Does not match **preset-only** token names (e.g. shadcn); use the CLI to generat
|
|
|
148
198
|
|
|
149
199
|
## Documentation
|
|
150
200
|
|
|
201
|
+
- [Migrating from 0.2.x](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/migrating-from-0.2.md) — breaking changes for 0.3.0
|
|
151
202
|
- [Extending the palette](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/extending-the-palette.md) — `addRole`, `addVariant`, `addToken`
|
|
152
203
|
- [Presets](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/presets.md) — drop-in configs for shadcn/ui, or create your own
|
|
153
204
|
- [Multiple themes](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/multiple-themes.md) — dynamic theming and `.fork()`
|
|
154
|
-
- [Customization](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/customization.md) —
|
|
205
|
+
- [Customization](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/customization.md) — style and format options reference
|
|
155
206
|
- [Color vision deficiency](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/color-vision-deficiency.md) — simulate and adapt for CVD
|
|
156
207
|
- [React](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/react.md) — hook, `HextimatorStyle`, provider, scoped themes, dark mode
|
|
157
208
|
- [Tailwind CSS v4](https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/tailwind.md) — setup and usage with Tailwind
|
package/dist/{HextimatePaletteBuilder-BOuHKcVE.d.ts → HextimatePaletteBuilder-xqJwP_G2.d.ts}
RENAMED
|
@@ -106,9 +106,9 @@ interface ThemeAdjustments {
|
|
|
106
106
|
foregroundMaxChroma?: number;
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* Options that
|
|
109
|
+
* Options that control how the palette is generated from the input color.
|
|
110
110
|
*/
|
|
111
|
-
interface
|
|
111
|
+
interface HextimateStyleOptions {
|
|
112
112
|
/**
|
|
113
113
|
* Preferred base color for dark and light mode.
|
|
114
114
|
* It will be used as a baseline to generate the rest of base colors (strong, weak).
|
|
@@ -272,12 +272,26 @@ interface HextimateFormatOptions {
|
|
|
272
272
|
* - "rgb-raw" → "242 238 232"
|
|
273
273
|
*/
|
|
274
274
|
colors?: ColorFormat;
|
|
275
|
+
/**
|
|
276
|
+
* Role keys to omit from the output entirely.
|
|
277
|
+
* Uses the internal role name (before any `roleNames` remapping).
|
|
278
|
+
*
|
|
279
|
+
* Example: `['warning']` removes the warning scale from the output.
|
|
280
|
+
*/
|
|
281
|
+
excludeRoles?: string[];
|
|
282
|
+
/**
|
|
283
|
+
* Variant keys to omit from every role's output.
|
|
284
|
+
* Uses the internal variant name (before any `variantNames` remapping).
|
|
285
|
+
*
|
|
286
|
+
* Example: `['strong', 'weak']` removes those variants from all roles.
|
|
287
|
+
*/
|
|
288
|
+
excludeVariants?: string[];
|
|
275
289
|
}
|
|
276
290
|
/**
|
|
277
291
|
* Combined options for the convenience API.
|
|
278
|
-
* Allows passing both
|
|
292
|
+
* Allows passing both style and format options in one call.
|
|
279
293
|
*/
|
|
280
|
-
type HextimateOptions =
|
|
294
|
+
type HextimateOptions = HextimateStyleOptions & HextimateFormatOptions;
|
|
281
295
|
/** How color values are serialized in the output (e.g. "hex", "rgb", "oklch", "hsl", "p3", and their "-raw" variants). */
|
|
282
296
|
type ColorFormat = 'hex' | 'hsl' | 'hsl-raw' | 'oklch' | 'oklch-raw' | 'p3' | 'p3-raw' | 'rgb' | 'rgb-raw';
|
|
283
297
|
|
|
@@ -301,8 +315,8 @@ type FormatResult = FlatTokenMap | NestedTokenMap | string;
|
|
|
301
315
|
* .format();
|
|
302
316
|
*/
|
|
303
317
|
interface HextimatePreset {
|
|
304
|
-
/**
|
|
305
|
-
|
|
318
|
+
/** Style options (contrast, hue shifts, lightness, chroma). Applied before roles/variants/tokens. */
|
|
319
|
+
style?: HextimateStyleOptions;
|
|
306
320
|
/** Extra roles to add to the palette (each generates DEFAULT, strong, weak, foreground variants). */
|
|
307
321
|
roles?: Array<{
|
|
308
322
|
name: string;
|
|
@@ -374,25 +388,26 @@ type TokenValue = ColorInput | DerivedToken | {
|
|
|
374
388
|
light: DerivedToken | ColorInput;
|
|
375
389
|
dark: DerivedToken | ColorInput;
|
|
376
390
|
};
|
|
377
|
-
/**
|
|
378
|
-
* Palette builder.
|
|
379
|
-
*
|
|
380
|
-
* Supports adding roles, variants, and standalone tokens, as well as simulating and adapting for CVD.
|
|
381
|
-
* All operations are recorded and replayed in order on fork, ensuring consistent results.
|
|
382
|
-
* The internal palette is stored in a raw form with OKLCH color objects, allowing for precise adjustments and transformations.
|
|
383
|
-
*/
|
|
384
391
|
declare class HextimatePaletteBuilder {
|
|
385
392
|
private lightPalette;
|
|
386
393
|
private darkPalette;
|
|
387
394
|
private readonly inputColor;
|
|
388
|
-
private
|
|
395
|
+
private options;
|
|
389
396
|
private readonly operations;
|
|
390
397
|
private readonly standaloneTokens;
|
|
391
398
|
private readonly weakSideVariants;
|
|
392
399
|
private readonly strongSideVariants;
|
|
393
400
|
private readonly betweenVariants;
|
|
394
401
|
private presetFormatDefaults?;
|
|
395
|
-
constructor(color: Color
|
|
402
|
+
constructor(color: Color);
|
|
403
|
+
/**
|
|
404
|
+
* Merges style options into the builder and regenerates the base palettes,
|
|
405
|
+
* then replays recorded operations so roles and variants reflect the new style.
|
|
406
|
+
*/
|
|
407
|
+
style(partial: Partial<HextimateStyleOptions>): this;
|
|
408
|
+
private seedOptionsForFork;
|
|
409
|
+
private rebuildFromOperations;
|
|
410
|
+
private replayOperationInPlace;
|
|
396
411
|
/**
|
|
397
412
|
* Adds a custom role with given name and color.
|
|
398
413
|
* The color is expanded into a full scale and added to both light and dark palettes.
|
|
@@ -450,6 +465,13 @@ declare class HextimatePaletteBuilder {
|
|
|
450
465
|
* .format({ colors: 'hsl-raw' });
|
|
451
466
|
*/
|
|
452
467
|
preset(preset: HextimatePreset): this;
|
|
468
|
+
/**
|
|
469
|
+
* Records a preset in the operation log and applies roles, variants, tokens, and format.
|
|
470
|
+
* Does not merge `preset.style` — used when replaying onto a builder whose `this.options` already reflect merged style.
|
|
471
|
+
*/
|
|
472
|
+
private recordPresetWithoutStyleMerge;
|
|
473
|
+
/** Roles, variants, tokens, and format only — `this.options` and base palettes are already correct. */
|
|
474
|
+
private applyPresetRolesTokensFormat;
|
|
453
475
|
/**
|
|
454
476
|
*
|
|
455
477
|
* Simulates how the palette would look for a given type and severity of CVD.
|
|
@@ -483,18 +505,12 @@ declare class HextimatePaletteBuilder {
|
|
|
483
505
|
*/
|
|
484
506
|
adaptFor(type: CVDType, severity?: number): this;
|
|
485
507
|
/**
|
|
486
|
-
* Creates a new builder instance with the same operations history,
|
|
487
|
-
*
|
|
488
|
-
* e.g. `fork('#ff6677')` creates a new builder with the same
|
|
489
|
-
* roles, variants, tokens, and adjustments, but based on a different input color.
|
|
490
|
-
*
|
|
491
|
-
* `fork({ light: { lightness: 0.8 } })` creates a new builder with the same color but different light theme adjustments.
|
|
508
|
+
* Creates a new builder instance with the same operations history, optionally from a different base color.
|
|
509
|
+
* To change style options on the fork, chain `.style()` after `.fork()`.
|
|
492
510
|
*
|
|
493
|
-
* @param
|
|
494
|
-
* @param maybeOptions If the first argument is a color, this can be an optional second argument with generation options to override.
|
|
495
|
-
* @returns A new builder instance with the same operations history but different base color and/or options.
|
|
511
|
+
* @param color Optional new accent/brand color. If omitted, the fork uses the same color as this builder.
|
|
496
512
|
*/
|
|
497
|
-
fork(
|
|
513
|
+
fork(color?: ColorInput): HextimatePaletteBuilder;
|
|
498
514
|
/**
|
|
499
515
|
* Serializes the palette into the chosen output format.
|
|
500
516
|
*
|
|
@@ -537,4 +553,4 @@ declare class HextimatePaletteBuilder {
|
|
|
537
553
|
private resolvedOptions;
|
|
538
554
|
}
|
|
539
555
|
|
|
540
|
-
export { type Color as C, type DerivedToken as D, type FlatTokenMap as F, type HextimatePreset as H, type NestedTokenMap as N, type OKLCH as O, type ThemeAdjustments as T, type VariantPlacement as V, type CVDType as a, type ColorSpace as b, type ColorInSpace as c, type ColorInput as d,
|
|
556
|
+
export { type Color as C, type DerivedToken as D, type FlatTokenMap as F, type HextimatePreset as H, type NestedTokenMap as N, type OKLCH as O, type ThemeAdjustments as T, type VariantPlacement as V, type CVDType as a, type ColorSpace as b, type ColorInSpace as c, type ColorInput as d, HextimatePaletteBuilder as e, type FormatResult as f, type HextimateFormatOptions as g, type HextimateOptions as h, type HextimateResult as i, type HextimateStyleOptions as j, type TokenValue as k };
|