@a4ui/core 0.3.0 → 0.4.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 +58 -7
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1002 -712
- package/dist/layout/ThemedScenery.d.ts +20 -0
- package/dist/styles.css +399 -91
- package/dist/themes/index.d.ts +34 -0
- package/dist/themes/palettes.d.ts +42 -0
- package/package.json +18 -3
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** The 15 recolorable tokens, each an "H S% L%" channel string. */
|
|
2
|
+
export interface Palette {
|
|
3
|
+
background: string;
|
|
4
|
+
foreground: string;
|
|
5
|
+
card: string;
|
|
6
|
+
'card-foreground': string;
|
|
7
|
+
muted: string;
|
|
8
|
+
'muted-foreground': string;
|
|
9
|
+
border: string;
|
|
10
|
+
input: string;
|
|
11
|
+
primary: string;
|
|
12
|
+
'primary-foreground': string;
|
|
13
|
+
accent: string;
|
|
14
|
+
'accent-foreground': string;
|
|
15
|
+
ring: string;
|
|
16
|
+
destructive: string;
|
|
17
|
+
'destructive-foreground': string;
|
|
18
|
+
}
|
|
19
|
+
/** A named theme: a label plus a dark and a light palette. */
|
|
20
|
+
export interface ThemeDefinition {
|
|
21
|
+
/** URL/storage-safe slug, e.g. `space`. */
|
|
22
|
+
name: string;
|
|
23
|
+
/** Human label for the picker, e.g. `Space`. */
|
|
24
|
+
label: string;
|
|
25
|
+
/** One-line flavour text. */
|
|
26
|
+
description: string;
|
|
27
|
+
/** Emoji shown in the theme picker. */
|
|
28
|
+
icon: string;
|
|
29
|
+
dark: Palette;
|
|
30
|
+
light: Palette;
|
|
31
|
+
/** Motif glyphs for the generic `ThemedScenery` backdrop. Omit for themes that
|
|
32
|
+
ship their own bespoke scenery (e.g. `space` uses `SpaceBackground`). */
|
|
33
|
+
motifs?: string[];
|
|
34
|
+
}
|
|
35
|
+
export declare const TOKEN_ORDER: (keyof Palette)[];
|
|
36
|
+
export declare const space: ThemeDefinition;
|
|
37
|
+
export declare const dino: ThemeDefinition;
|
|
38
|
+
export declare const doctor: ThemeDefinition;
|
|
39
|
+
export declare const scientist: ThemeDefinition;
|
|
40
|
+
export declare const soccer: ThemeDefinition;
|
|
41
|
+
/** All built-in themes, in picker order. Space is the default. */
|
|
42
|
+
export declare const themes: ThemeDefinition[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a4ui/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "A4ui — Spatial Glass design system & component library for SolidJS (Kobalte behavior + Tailwind glass tokens + motion).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,9 +52,13 @@
|
|
|
52
52
|
"preview:build": "node scripts/gen-llms.mjs && vite build --config vite.preview.config.ts",
|
|
53
53
|
"gen:llms": "node scripts/gen-llms.mjs",
|
|
54
54
|
"typecheck": "tsc --noEmit",
|
|
55
|
-
"lint": "eslint
|
|
55
|
+
"lint": "eslint .",
|
|
56
|
+
"format": "prettier --write .",
|
|
57
|
+
"format:check": "prettier --check .",
|
|
58
|
+
"test:unit": "vitest run",
|
|
56
59
|
"test": "playwright test",
|
|
57
60
|
"test:ui": "playwright test --ui",
|
|
61
|
+
"test:a11y": "playwright test a11y --project=desktop",
|
|
58
62
|
"test:report": "playwright show-report",
|
|
59
63
|
"prepublishOnly": "npm run build"
|
|
60
64
|
},
|
|
@@ -71,13 +75,24 @@
|
|
|
71
75
|
"tailwind-merge": "^3.6.0"
|
|
72
76
|
},
|
|
73
77
|
"devDependencies": {
|
|
78
|
+
"@axe-core/playwright": "^4.12.1",
|
|
79
|
+
"@eslint/js": "^9.39.5",
|
|
74
80
|
"@playwright/test": "^1.61.1",
|
|
81
|
+
"@solidjs/testing-library": "^0.8.10",
|
|
82
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
83
|
+
"axe-core": "^4.12.1",
|
|
84
|
+
"eslint": "^9.39.5",
|
|
85
|
+
"eslint-config-prettier": "^10.1.8",
|
|
75
86
|
"eslint-plugin-solid": "^0.14.5",
|
|
87
|
+
"jsdom": "^29.1.1",
|
|
76
88
|
"playwright-core": "^1.61.1",
|
|
89
|
+
"prettier": "^3.9.5",
|
|
77
90
|
"tailwindcss": "^3.4.19",
|
|
78
91
|
"typescript": "^5.6.0",
|
|
92
|
+
"typescript-eslint": "^8.64.0",
|
|
79
93
|
"vite": "^6.0.0",
|
|
80
94
|
"vite-plugin-dts": "^4.3.0",
|
|
81
|
-
"vite-plugin-solid": "^2.11.12"
|
|
95
|
+
"vite-plugin-solid": "^2.11.12",
|
|
96
|
+
"vitest": "^4.1.10"
|
|
82
97
|
}
|
|
83
98
|
}
|