@wow-two-beta/ui 0.0.64 → 0.0.65
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/dist/{chunk-NIFL35PJ.js → chunk-3BNEDKMS.js} +3 -3
- package/dist/{chunk-NIFL35PJ.js.map → chunk-3BNEDKMS.js.map} +1 -1
- package/dist/chunk-LS4EGKUK.js +1656 -0
- package/dist/chunk-LS4EGKUK.js.map +1 -0
- package/dist/forms/index.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -4
- package/dist/layout/index.js +3 -3
- package/dist/themes/Oklch.d.ts +42 -0
- package/dist/themes/Theme.d.ts +76 -0
- package/dist/themes/Tokens.d.ts +40 -0
- package/dist/themes/css.d.ts +20 -0
- package/dist/themes/generate.d.ts +6 -0
- package/dist/themes/index.d.ts +11 -0
- package/dist/themes/index.js +4 -0
- package/dist/themes/index.js.map +1 -0
- package/dist/themes/pool.d.ts +3 -0
- package/dist/themes/registry.d.ts +16 -0
- package/dist/themes/validate.d.ts +25 -0
- package/dist/themes/validated.d.ts +3 -0
- package/dist/themes.css +15374 -0
- package/dist/themes.json +2898 -0
- package/package.json +9 -2
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { AA_TEXT, AA_UI, Oklch, SEMANTIC_TOKENS, SURFACE_TOKENS, THEMES, THEME_IDS, THEME_SEEDS, TONE_FAMILIES, ThemeStatus, applyToneSlots, candidateThemes, clampChromaToGamut, contrastPairs, contrastRatio, contrastRatioCss, emitAllThemesCss, emitThemesManifest, generateTheme, getTheme, isInSrgbGamut, normalizeHue, oklchToCss, oklchToHex, parseColor, relativeLuminance, themeToCss, validateTheme, validatedThemes } from '../chunk-LS4EGKUK.js';
|
|
2
|
+
import '../chunk-DCHYNTHI.js';
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Theme, ThemeSeed } from './Theme';
|
|
2
|
+
/** The authoring seeds. Order here = order in `THEMES` and the emitted stylesheet. */
|
|
3
|
+
export declare const THEME_SEEDS: ThemeSeed[];
|
|
4
|
+
/**
|
|
5
|
+
* The full registry: validated (real-app-proven) themes FIRST, then the curated
|
|
6
|
+
* candidate presets. Order here = order in the emitted stylesheet / manifest.
|
|
7
|
+
*/
|
|
8
|
+
export declare const THEMES: Theme[];
|
|
9
|
+
/** Look up a theme by id. Returns `undefined` when absent. */
|
|
10
|
+
export declare function getTheme(id: string): Theme | undefined;
|
|
11
|
+
/** Themes proven against a real app surface (`status === "validated"`). */
|
|
12
|
+
export declare function validatedThemes(): Theme[];
|
|
13
|
+
/** Engine-proven curated presets not yet app-validated (`status === "candidate"`). */
|
|
14
|
+
export declare function candidateThemes(): Theme[];
|
|
15
|
+
/** Ids of all curated themes, in registry order. */
|
|
16
|
+
export declare const THEME_IDS: string[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Theme, ThemeMeta } from './Theme';
|
|
2
|
+
import { type SemanticToken } from './Tokens';
|
|
3
|
+
/** WCAG AA thresholds. Text = normal-size body text; UI = non-text affordances. */
|
|
4
|
+
export declare const AA_TEXT = 4.5;
|
|
5
|
+
export declare const AA_UI = 3;
|
|
6
|
+
/** One foreground↔background pair to verify, with its required ratio. */
|
|
7
|
+
interface ContrastPair {
|
|
8
|
+
/** Foreground token (text/icon/affordance color). */
|
|
9
|
+
fg: SemanticToken;
|
|
10
|
+
/** Background token the fg sits on. */
|
|
11
|
+
bg: SemanticToken;
|
|
12
|
+
/** Required minimum ratio (AA_TEXT or AA_UI). */
|
|
13
|
+
min: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The canonical set of pairs every theme must satisfy.
|
|
17
|
+
* Surface text pairs + each tone family's solid/soft foreground pairs + ring.
|
|
18
|
+
*/
|
|
19
|
+
export declare function contrastPairs(): ContrastPair[];
|
|
20
|
+
/**
|
|
21
|
+
* Validate a theme's light AND dark token sets.
|
|
22
|
+
* `contrastAA` is true only when both modes pass every pair.
|
|
23
|
+
*/
|
|
24
|
+
export declare function validateTheme(theme: Pick<Theme, 'light' | 'dark'>): ThemeMeta;
|
|
25
|
+
export {};
|