@meetreeve/ui 0.22.0 → 0.24.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/README.md +61 -0
- package/dist/index.d.mts +14 -13
- package/dist/index.d.ts +14 -13
- package/dist/index.js +106 -11
- package/dist/index.mjs +106 -11
- package/dist/theme/index.d.mts +190 -0
- package/dist/theme/index.d.ts +190 -0
- package/dist/theme/index.js +351 -0
- package/dist/theme/index.mjs +309 -0
- package/dist/tokens.css +19 -17
- package/package.json +7 -2
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brandTheme (DEV-17886): one brand's inputs → light and dark semantic tokens.
|
|
3
|
+
*
|
|
4
|
+
* The DEV-17839 visual system, built once. Reeve's own look is
|
|
5
|
+
* `brandTheme(reevePreset)`; a store or tenant site passes its brand's accent.
|
|
6
|
+
* Every foreground and every text/ring shade is derived by contrast (./contrast),
|
|
7
|
+
* so any accent gets AA pairings: 4.5 for text, 3 for indicators.
|
|
8
|
+
*
|
|
9
|
+
* What comes from where:
|
|
10
|
+
* - neutral surfaces, text and chart steps: a fixed ramp per
|
|
11
|
+
* `neutralTemperature` ("cool" is Reeve's navy/slate);
|
|
12
|
+
* - `ink`: the neutral primary button (light) and the border tint;
|
|
13
|
+
* - `accent`: the brand mark (`--brand-accent`), the dominant action
|
|
14
|
+
* (`--action`), and the link / ring / chart-1 shade derived from it;
|
|
15
|
+
* - status (destructive, success, warning): fixed semantic hues per mode,
|
|
16
|
+
* never the accent ("status only, never decoration").
|
|
17
|
+
* Sidebar tokens are deliberately absent: the sidebar is Reeve chrome and never
|
|
18
|
+
* takes a brand's theme (reeve-frontend globals.css).
|
|
19
|
+
*
|
|
20
|
+
* Pure and deterministic, no DOM: safe in server components and build scripts.
|
|
21
|
+
*/
|
|
22
|
+
type NeutralTemperature = "cool" | "neutral" | "warm";
|
|
23
|
+
interface BrandThemeInput {
|
|
24
|
+
/** The brand colour. null / missing / not a hex → Reeve's dot. */
|
|
25
|
+
accent?: string | null;
|
|
26
|
+
/** Neutral primary button colour in light mode. Defaults to the ramp's ink. */
|
|
27
|
+
ink?: string | null;
|
|
28
|
+
/** Which neutral ramp the surfaces use. Default "cool". */
|
|
29
|
+
neutralTemperature?: NeutralTemperature;
|
|
30
|
+
/** `--radius`, a CSS length. Omitted unless valid. */
|
|
31
|
+
radius?: string | null;
|
|
32
|
+
/** `--font-sans` / `--font-display` / `--font-mono`. Omitted unless valid. */
|
|
33
|
+
fonts?: {
|
|
34
|
+
sans?: string | null;
|
|
35
|
+
display?: string | null;
|
|
36
|
+
mono?: string | null;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Hand-tuned shades that replace a derived one, used only when they clear the
|
|
40
|
+
* same contrast bar the derivation enforces (otherwise ignored).
|
|
41
|
+
*/
|
|
42
|
+
tuned?: {
|
|
43
|
+
/** Link / ring / chart-1 text shade per mode (≥ 4.5 on every surface). */
|
|
44
|
+
link?: {
|
|
45
|
+
light?: string;
|
|
46
|
+
dark?: string;
|
|
47
|
+
};
|
|
48
|
+
/** Chart series 7, a light tint of the accent (decorative). */
|
|
49
|
+
chartTint?: string;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/** The semantic tokens brandTheme emits for one mode. */
|
|
53
|
+
interface ThemeTokens {
|
|
54
|
+
"--background": string;
|
|
55
|
+
"--foreground": string;
|
|
56
|
+
"--card": string;
|
|
57
|
+
"--card-foreground": string;
|
|
58
|
+
"--popover": string;
|
|
59
|
+
"--popover-foreground": string;
|
|
60
|
+
"--primary": string;
|
|
61
|
+
"--primary-foreground": string;
|
|
62
|
+
"--secondary": string;
|
|
63
|
+
"--secondary-foreground": string;
|
|
64
|
+
"--muted": string;
|
|
65
|
+
"--muted-foreground": string;
|
|
66
|
+
/** shadcn's quiet hover surface, NOT the brand colour (that is --brand-accent). */
|
|
67
|
+
"--accent": string;
|
|
68
|
+
"--accent-foreground": string;
|
|
69
|
+
"--destructive": string;
|
|
70
|
+
"--destructive-foreground": string;
|
|
71
|
+
"--destructive-subtle": string;
|
|
72
|
+
"--destructive-subtle-foreground": string;
|
|
73
|
+
"--success": string;
|
|
74
|
+
"--success-foreground": string;
|
|
75
|
+
"--success-subtle": string;
|
|
76
|
+
"--success-subtle-foreground": string;
|
|
77
|
+
"--warning": string;
|
|
78
|
+
"--warning-foreground": string;
|
|
79
|
+
"--warning-subtle": string;
|
|
80
|
+
"--warning-subtle-foreground": string;
|
|
81
|
+
"--border": string;
|
|
82
|
+
"--input": string;
|
|
83
|
+
"--ring": string;
|
|
84
|
+
"--link": string;
|
|
85
|
+
/** The one dominant action per task region. */
|
|
86
|
+
"--action": string;
|
|
87
|
+
"--action-foreground": string;
|
|
88
|
+
/** The brand mark itself (the dot). Never text on a light surface. */
|
|
89
|
+
"--brand-accent": string;
|
|
90
|
+
"--shadow-sm": string;
|
|
91
|
+
"--shadow-md": string;
|
|
92
|
+
"--shadow-lg": string;
|
|
93
|
+
"--chart-1": string;
|
|
94
|
+
"--chart-2": string;
|
|
95
|
+
"--chart-3": string;
|
|
96
|
+
"--chart-4": string;
|
|
97
|
+
"--chart-5": string;
|
|
98
|
+
"--chart-6": string;
|
|
99
|
+
"--chart-7": string;
|
|
100
|
+
"--chart-8": string;
|
|
101
|
+
"--radius"?: string;
|
|
102
|
+
"--font-sans"?: string;
|
|
103
|
+
"--font-display"?: string;
|
|
104
|
+
"--font-mono"?: string;
|
|
105
|
+
}
|
|
106
|
+
interface BrandTheme {
|
|
107
|
+
light: ThemeTokens;
|
|
108
|
+
dark: ThemeTokens;
|
|
109
|
+
}
|
|
110
|
+
/** Reeve's inputs: the dot and navy ink, plus the two shades Matt approved by eye. */
|
|
111
|
+
declare const reevePreset: {
|
|
112
|
+
readonly accent: "#FF6B2B";
|
|
113
|
+
readonly ink: "#1D3557";
|
|
114
|
+
readonly tuned: {
|
|
115
|
+
readonly link: {
|
|
116
|
+
readonly light: "#C2410C";
|
|
117
|
+
readonly dark: "#FF8A57";
|
|
118
|
+
};
|
|
119
|
+
readonly chartTint: "#FF9B5C";
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* A brand's light and dark semantic tokens. No input (or null) → Reeve's base.
|
|
124
|
+
* Never throws: every brand value is validated, and anything invalid falls back.
|
|
125
|
+
*/
|
|
126
|
+
declare function brandTheme(theme?: BrandThemeInput | null): BrandTheme;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The one contrast helper (DEV-17886). WCAG 2.x relative luminance and
|
|
130
|
+
* contrast ratio, plus deterministic fixes that step OKLCH lightness until a
|
|
131
|
+
* pairing passes. Pure: no DOM, no randomness, same input → same hex.
|
|
132
|
+
*
|
|
133
|
+
* Meant to replace two copies that grew independently: reeve-frontend's
|
|
134
|
+
* src/lib/brand-contrast.ts (HSL steps, used by build-store's 4.5 / 3.5 picks;
|
|
135
|
+
* moves here in DEV-17912) and reeve-tenant-frontend's brand-theme.ts
|
|
136
|
+
* (DEV-17890). Unlike the old readableOn, this one throws on a non-hex colour
|
|
137
|
+
* and defaults to 4.5, not 4.0. OKLCH keeps hue and perceived chroma while
|
|
138
|
+
* lightness moves, so a darkened orange stays an orange.
|
|
139
|
+
*/
|
|
140
|
+
type Rgb = [number, number, number];
|
|
141
|
+
/** WCAG 2.x thresholds: normal text, and large text / UI indicators. */
|
|
142
|
+
declare const CONTRAST: {
|
|
143
|
+
readonly text: 4.5;
|
|
144
|
+
readonly indicator: 3;
|
|
145
|
+
};
|
|
146
|
+
/** `#rgb` / `#rrggbb` (hash optional) → 0-255 channels, or null. */
|
|
147
|
+
declare function parseHex(hex: string | null | undefined): Rgb | null;
|
|
148
|
+
/** 0-255 channels → lowercase `#rrggbb`, clamped and rounded. */
|
|
149
|
+
declare function toHex([r, g, b]: Rgb): string;
|
|
150
|
+
/** Valid colour → lowercase `#rrggbb`; anything else → null. */
|
|
151
|
+
declare function normalizeHex(hex: string | null | undefined): string | null;
|
|
152
|
+
/** WCAG 2.x relative luminance, 0 (black) to 1 (white). Unparseable → 0. */
|
|
153
|
+
declare function relativeLuminance(hex: string): number;
|
|
154
|
+
/** WCAG 2.x contrast ratio, 1 to 21. An unparseable colour scores 1. */
|
|
155
|
+
declare function contrastRatio(a: string, b: string): number;
|
|
156
|
+
/**
|
|
157
|
+
* Perceptual distance (ΔE in OKLab, 0 = identical, ~1 = black vs white). WCAG
|
|
158
|
+
* contrast is luminance-only, so it calls a saturated yellow on white (1.3:1)
|
|
159
|
+
* as close as a near-white grey; this tells them apart. Unparseable → 0.
|
|
160
|
+
*/
|
|
161
|
+
declare function deltaE(a: string, b: string): number;
|
|
162
|
+
/**
|
|
163
|
+
* The colour nearest `color` (same OKLCH hue and chroma, lightness moved in
|
|
164
|
+
* 0.005 steps) that reaches `min` against every background. Unchanged
|
|
165
|
+
* (normalised) when it already passes; the smaller move wins, darker on a tie.
|
|
166
|
+
* If no lightness works (backgrounds on both ends), returns whichever of black
|
|
167
|
+
* or white scores the higher worst-case contrast.
|
|
168
|
+
*/
|
|
169
|
+
declare function readableOn(color: string, backgrounds: string | readonly string[], min?: number): string;
|
|
170
|
+
/** The candidate with the most contrast on `background` (first wins a tie). */
|
|
171
|
+
declare function pickForeground(background: string, candidates: readonly string[]): string;
|
|
172
|
+
/**
|
|
173
|
+
* A filled surface (button, badge) and its text. Keeps `fill` when one of the
|
|
174
|
+
* candidate foregrounds reaches `min` on it; otherwise moves the FILL's
|
|
175
|
+
* lightness (text colours stay the theme's own) until one does.
|
|
176
|
+
*/
|
|
177
|
+
declare function solidPair(fill: string, candidates: readonly string[], min?: number): {
|
|
178
|
+
background: string;
|
|
179
|
+
foreground: string;
|
|
180
|
+
};
|
|
181
|
+
/** `weight` of `a` over `b`, in gamma sRGB (what `color-mix(in srgb, …)` does). */
|
|
182
|
+
declare function mix(a: string, b: string, weight: number): string;
|
|
183
|
+
/** `rgba(r, g, b, alpha)` for a hex colour (borders, shadows). */
|
|
184
|
+
declare function rgba(hex: string, alpha: number): string;
|
|
185
|
+
/** Lighten (positive) or darken (negative) in OKLCH lightness, hue kept. */
|
|
186
|
+
declare function shiftLightness(hex: string, delta: number): string;
|
|
187
|
+
|
|
188
|
+
declare const REEVE_ACCENT = "#FF6B2B";
|
|
189
|
+
|
|
190
|
+
export { type BrandTheme, type BrandThemeInput, CONTRAST, type NeutralTemperature, REEVE_ACCENT, type Rgb, type ThemeTokens, brandTheme, contrastRatio, deltaE, mix, normalizeHex, parseHex, pickForeground, readableOn, reevePreset, relativeLuminance, rgba, shiftLightness, solidPair, toHex };
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brandTheme (DEV-17886): one brand's inputs → light and dark semantic tokens.
|
|
3
|
+
*
|
|
4
|
+
* The DEV-17839 visual system, built once. Reeve's own look is
|
|
5
|
+
* `brandTheme(reevePreset)`; a store or tenant site passes its brand's accent.
|
|
6
|
+
* Every foreground and every text/ring shade is derived by contrast (./contrast),
|
|
7
|
+
* so any accent gets AA pairings: 4.5 for text, 3 for indicators.
|
|
8
|
+
*
|
|
9
|
+
* What comes from where:
|
|
10
|
+
* - neutral surfaces, text and chart steps: a fixed ramp per
|
|
11
|
+
* `neutralTemperature` ("cool" is Reeve's navy/slate);
|
|
12
|
+
* - `ink`: the neutral primary button (light) and the border tint;
|
|
13
|
+
* - `accent`: the brand mark (`--brand-accent`), the dominant action
|
|
14
|
+
* (`--action`), and the link / ring / chart-1 shade derived from it;
|
|
15
|
+
* - status (destructive, success, warning): fixed semantic hues per mode,
|
|
16
|
+
* never the accent ("status only, never decoration").
|
|
17
|
+
* Sidebar tokens are deliberately absent: the sidebar is Reeve chrome and never
|
|
18
|
+
* takes a brand's theme (reeve-frontend globals.css).
|
|
19
|
+
*
|
|
20
|
+
* Pure and deterministic, no DOM: safe in server components and build scripts.
|
|
21
|
+
*/
|
|
22
|
+
type NeutralTemperature = "cool" | "neutral" | "warm";
|
|
23
|
+
interface BrandThemeInput {
|
|
24
|
+
/** The brand colour. null / missing / not a hex → Reeve's dot. */
|
|
25
|
+
accent?: string | null;
|
|
26
|
+
/** Neutral primary button colour in light mode. Defaults to the ramp's ink. */
|
|
27
|
+
ink?: string | null;
|
|
28
|
+
/** Which neutral ramp the surfaces use. Default "cool". */
|
|
29
|
+
neutralTemperature?: NeutralTemperature;
|
|
30
|
+
/** `--radius`, a CSS length. Omitted unless valid. */
|
|
31
|
+
radius?: string | null;
|
|
32
|
+
/** `--font-sans` / `--font-display` / `--font-mono`. Omitted unless valid. */
|
|
33
|
+
fonts?: {
|
|
34
|
+
sans?: string | null;
|
|
35
|
+
display?: string | null;
|
|
36
|
+
mono?: string | null;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Hand-tuned shades that replace a derived one, used only when they clear the
|
|
40
|
+
* same contrast bar the derivation enforces (otherwise ignored).
|
|
41
|
+
*/
|
|
42
|
+
tuned?: {
|
|
43
|
+
/** Link / ring / chart-1 text shade per mode (≥ 4.5 on every surface). */
|
|
44
|
+
link?: {
|
|
45
|
+
light?: string;
|
|
46
|
+
dark?: string;
|
|
47
|
+
};
|
|
48
|
+
/** Chart series 7, a light tint of the accent (decorative). */
|
|
49
|
+
chartTint?: string;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/** The semantic tokens brandTheme emits for one mode. */
|
|
53
|
+
interface ThemeTokens {
|
|
54
|
+
"--background": string;
|
|
55
|
+
"--foreground": string;
|
|
56
|
+
"--card": string;
|
|
57
|
+
"--card-foreground": string;
|
|
58
|
+
"--popover": string;
|
|
59
|
+
"--popover-foreground": string;
|
|
60
|
+
"--primary": string;
|
|
61
|
+
"--primary-foreground": string;
|
|
62
|
+
"--secondary": string;
|
|
63
|
+
"--secondary-foreground": string;
|
|
64
|
+
"--muted": string;
|
|
65
|
+
"--muted-foreground": string;
|
|
66
|
+
/** shadcn's quiet hover surface, NOT the brand colour (that is --brand-accent). */
|
|
67
|
+
"--accent": string;
|
|
68
|
+
"--accent-foreground": string;
|
|
69
|
+
"--destructive": string;
|
|
70
|
+
"--destructive-foreground": string;
|
|
71
|
+
"--destructive-subtle": string;
|
|
72
|
+
"--destructive-subtle-foreground": string;
|
|
73
|
+
"--success": string;
|
|
74
|
+
"--success-foreground": string;
|
|
75
|
+
"--success-subtle": string;
|
|
76
|
+
"--success-subtle-foreground": string;
|
|
77
|
+
"--warning": string;
|
|
78
|
+
"--warning-foreground": string;
|
|
79
|
+
"--warning-subtle": string;
|
|
80
|
+
"--warning-subtle-foreground": string;
|
|
81
|
+
"--border": string;
|
|
82
|
+
"--input": string;
|
|
83
|
+
"--ring": string;
|
|
84
|
+
"--link": string;
|
|
85
|
+
/** The one dominant action per task region. */
|
|
86
|
+
"--action": string;
|
|
87
|
+
"--action-foreground": string;
|
|
88
|
+
/** The brand mark itself (the dot). Never text on a light surface. */
|
|
89
|
+
"--brand-accent": string;
|
|
90
|
+
"--shadow-sm": string;
|
|
91
|
+
"--shadow-md": string;
|
|
92
|
+
"--shadow-lg": string;
|
|
93
|
+
"--chart-1": string;
|
|
94
|
+
"--chart-2": string;
|
|
95
|
+
"--chart-3": string;
|
|
96
|
+
"--chart-4": string;
|
|
97
|
+
"--chart-5": string;
|
|
98
|
+
"--chart-6": string;
|
|
99
|
+
"--chart-7": string;
|
|
100
|
+
"--chart-8": string;
|
|
101
|
+
"--radius"?: string;
|
|
102
|
+
"--font-sans"?: string;
|
|
103
|
+
"--font-display"?: string;
|
|
104
|
+
"--font-mono"?: string;
|
|
105
|
+
}
|
|
106
|
+
interface BrandTheme {
|
|
107
|
+
light: ThemeTokens;
|
|
108
|
+
dark: ThemeTokens;
|
|
109
|
+
}
|
|
110
|
+
/** Reeve's inputs: the dot and navy ink, plus the two shades Matt approved by eye. */
|
|
111
|
+
declare const reevePreset: {
|
|
112
|
+
readonly accent: "#FF6B2B";
|
|
113
|
+
readonly ink: "#1D3557";
|
|
114
|
+
readonly tuned: {
|
|
115
|
+
readonly link: {
|
|
116
|
+
readonly light: "#C2410C";
|
|
117
|
+
readonly dark: "#FF8A57";
|
|
118
|
+
};
|
|
119
|
+
readonly chartTint: "#FF9B5C";
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* A brand's light and dark semantic tokens. No input (or null) → Reeve's base.
|
|
124
|
+
* Never throws: every brand value is validated, and anything invalid falls back.
|
|
125
|
+
*/
|
|
126
|
+
declare function brandTheme(theme?: BrandThemeInput | null): BrandTheme;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The one contrast helper (DEV-17886). WCAG 2.x relative luminance and
|
|
130
|
+
* contrast ratio, plus deterministic fixes that step OKLCH lightness until a
|
|
131
|
+
* pairing passes. Pure: no DOM, no randomness, same input → same hex.
|
|
132
|
+
*
|
|
133
|
+
* Meant to replace two copies that grew independently: reeve-frontend's
|
|
134
|
+
* src/lib/brand-contrast.ts (HSL steps, used by build-store's 4.5 / 3.5 picks;
|
|
135
|
+
* moves here in DEV-17912) and reeve-tenant-frontend's brand-theme.ts
|
|
136
|
+
* (DEV-17890). Unlike the old readableOn, this one throws on a non-hex colour
|
|
137
|
+
* and defaults to 4.5, not 4.0. OKLCH keeps hue and perceived chroma while
|
|
138
|
+
* lightness moves, so a darkened orange stays an orange.
|
|
139
|
+
*/
|
|
140
|
+
type Rgb = [number, number, number];
|
|
141
|
+
/** WCAG 2.x thresholds: normal text, and large text / UI indicators. */
|
|
142
|
+
declare const CONTRAST: {
|
|
143
|
+
readonly text: 4.5;
|
|
144
|
+
readonly indicator: 3;
|
|
145
|
+
};
|
|
146
|
+
/** `#rgb` / `#rrggbb` (hash optional) → 0-255 channels, or null. */
|
|
147
|
+
declare function parseHex(hex: string | null | undefined): Rgb | null;
|
|
148
|
+
/** 0-255 channels → lowercase `#rrggbb`, clamped and rounded. */
|
|
149
|
+
declare function toHex([r, g, b]: Rgb): string;
|
|
150
|
+
/** Valid colour → lowercase `#rrggbb`; anything else → null. */
|
|
151
|
+
declare function normalizeHex(hex: string | null | undefined): string | null;
|
|
152
|
+
/** WCAG 2.x relative luminance, 0 (black) to 1 (white). Unparseable → 0. */
|
|
153
|
+
declare function relativeLuminance(hex: string): number;
|
|
154
|
+
/** WCAG 2.x contrast ratio, 1 to 21. An unparseable colour scores 1. */
|
|
155
|
+
declare function contrastRatio(a: string, b: string): number;
|
|
156
|
+
/**
|
|
157
|
+
* Perceptual distance (ΔE in OKLab, 0 = identical, ~1 = black vs white). WCAG
|
|
158
|
+
* contrast is luminance-only, so it calls a saturated yellow on white (1.3:1)
|
|
159
|
+
* as close as a near-white grey; this tells them apart. Unparseable → 0.
|
|
160
|
+
*/
|
|
161
|
+
declare function deltaE(a: string, b: string): number;
|
|
162
|
+
/**
|
|
163
|
+
* The colour nearest `color` (same OKLCH hue and chroma, lightness moved in
|
|
164
|
+
* 0.005 steps) that reaches `min` against every background. Unchanged
|
|
165
|
+
* (normalised) when it already passes; the smaller move wins, darker on a tie.
|
|
166
|
+
* If no lightness works (backgrounds on both ends), returns whichever of black
|
|
167
|
+
* or white scores the higher worst-case contrast.
|
|
168
|
+
*/
|
|
169
|
+
declare function readableOn(color: string, backgrounds: string | readonly string[], min?: number): string;
|
|
170
|
+
/** The candidate with the most contrast on `background` (first wins a tie). */
|
|
171
|
+
declare function pickForeground(background: string, candidates: readonly string[]): string;
|
|
172
|
+
/**
|
|
173
|
+
* A filled surface (button, badge) and its text. Keeps `fill` when one of the
|
|
174
|
+
* candidate foregrounds reaches `min` on it; otherwise moves the FILL's
|
|
175
|
+
* lightness (text colours stay the theme's own) until one does.
|
|
176
|
+
*/
|
|
177
|
+
declare function solidPair(fill: string, candidates: readonly string[], min?: number): {
|
|
178
|
+
background: string;
|
|
179
|
+
foreground: string;
|
|
180
|
+
};
|
|
181
|
+
/** `weight` of `a` over `b`, in gamma sRGB (what `color-mix(in srgb, …)` does). */
|
|
182
|
+
declare function mix(a: string, b: string, weight: number): string;
|
|
183
|
+
/** `rgba(r, g, b, alpha)` for a hex colour (borders, shadows). */
|
|
184
|
+
declare function rgba(hex: string, alpha: number): string;
|
|
185
|
+
/** Lighten (positive) or darken (negative) in OKLCH lightness, hue kept. */
|
|
186
|
+
declare function shiftLightness(hex: string, delta: number): string;
|
|
187
|
+
|
|
188
|
+
declare const REEVE_ACCENT = "#FF6B2B";
|
|
189
|
+
|
|
190
|
+
export { type BrandTheme, type BrandThemeInput, CONTRAST, type NeutralTemperature, REEVE_ACCENT, type Rgb, type ThemeTokens, brandTheme, contrastRatio, deltaE, mix, normalizeHex, parseHex, pickForeground, readableOn, reevePreset, relativeLuminance, rgba, shiftLightness, solidPair, toHex };
|