@gerege-systems/ui 0.12.1 → 0.12.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gerege-systems/ui",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "description": "Refined-minimal Tailwind v4 + React design system — 50+ accessible, themeable primitives.",
5
5
  "license": "MIT",
6
6
  "author": "Gerege Systems",
@@ -1,9 +0,0 @@
1
- /** Test-only colour maths: CSS `hsl()` / `oklch()` / hex → sRGB, WCAG 2.x contrast. */
2
- export type RGB = [number, number, number];
3
- export declare function parseColor(input: string): RGB;
4
- export declare function hslToRgb(h: number, s: number, l: number): RGB;
5
- /** OKLCH → OKLab → linear sRGB → gamma sRGB (clipped to gamut). */
6
- export declare function oklchToRgb(L: number, C: number, hDeg: number): RGB;
7
- export declare function luminance([r, g, b]: RGB): number;
8
- export declare function contrast(a: RGB, b: RGB): number;
9
- export declare function toHex([r, g, b]: RGB): string;
@@ -1,18 +0,0 @@
1
- export declare const THEME_PATH: any;
2
- export type TokenMap = Record<string, string>;
3
- export interface ParsedTheme {
4
- /** `:root { … }` semantic block. */
5
- light: TokenMap;
6
- /** `.dark { … }` semantic block. */
7
- dark: TokenMap;
8
- /** `@theme { … }` raw primitives (fonts, text scale, radius, shadow, z, motion, palette). */
9
- raw: TokenMap;
10
- /** `[data-accent='x']` presets: light (`:root[...]`) and dark (`.dark[...]`) overrides. */
11
- accents: Record<string, {
12
- shared: TokenMap;
13
- light: TokenMap;
14
- dark: TokenMap;
15
- }>;
16
- }
17
- export declare function parseDeclarations(body: string): TokenMap;
18
- export declare function parseTheme(css?: any): ParsedTheme;