@qilin-agent/client-ui-theme-brand 3.1.5 → 3.1.7

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.
@@ -1,10 +1,12 @@
1
- /** QiLin brand color layer for the Web client theme. */
1
+ /** Color packs for the Web client theme: every shipped pack registers as one selectable skin. */
2
2
  import type { Context as ClientContext } from '@qilin-agent/kylin';
3
- /** Required service: the theme registry and override stack. */
3
+ /** Required service: the theme registry and its skin registry. */
4
4
  export declare const inject: string[];
5
5
  /**
6
- * Stack the QiLin brand layer over whatever palette the user selected. The
7
- * layer is an effect, so unloading the plugin restores the covered tokens.
6
+ * Register every shipped color pack as a selectable skin. Light/dark selection
7
+ * stays the user's; a skin only replaces the alias tokens it names. Registration
8
+ * is an effect, so unloading the plugin removes every skin and restores the
9
+ * platform palette while the durable selection survives for a later load.
8
10
  * @param ctx - Client root context.
9
11
  */
10
12
  export declare function apply(ctx: ClientContext): void;
@@ -1,7 +1,14 @@
1
1
  /**
2
- * QiLin brand color plugin, node half. The empty apply gives Loader a host-side
3
- * row while the browser half ships through `exports["./client"]`.
2
+ * Color packs, node half: contributes each pack's canvas colors so the
3
+ * pre-plugin index render paints the user's palette before any browser plugin
4
+ * runs. The browser half ships through `exports["./client"]`.
4
5
  */
5
- /** Host plugin body — this package contributes browser presentation only. */
6
- export declare function apply(): void;
6
+ import type { Context } from '@qilin-agent/kylin';
7
+ /** Required Host services: the boot registry the index render reads. */
8
+ export declare const inject: string[];
9
+ /**
10
+ * Register every shipped pack's canvas colors for the pre-plugin interval.
11
+ * @param ctx - Host plugin context.
12
+ */
13
+ export declare function apply(ctx: Context): void;
7
14
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The monochrome color pack: one neutral ramp from pure white to pure black,
3
+ * with no hue. Accent, canvas, and ink are all greys; the light scheme uses a
4
+ * near-black accent so white on-accent text and focus rings clear AA, and the
5
+ * dark scheme mirrors it with an off-white accent on black.
6
+ *
7
+ * State colors, masks, and the ongoing blue stay with the base palettes, the
8
+ * same omission rule as every pack. Hover darkens the light accent and
9
+ * brightens the dark one, matching each platform's convention.
10
+ */
11
+ import type { ThemeTokenOverrides } from '@qilin-agent/client-ui-theme/client';
12
+ import type { SkinPack } from '../skin.ts';
13
+ /** Monochrome tokens over the platform palettes. Every value states both schemes. */
14
+ export declare const MONO_TOKENS: ThemeTokenOverrides;
15
+ /** The monochrome pack as one selectable skin. */
16
+ export declare const MONO_PACK: SkinPack;
17
+ //# sourceMappingURL=mono.d.ts.map
@@ -1,9 +1,8 @@
1
1
  /**
2
- * QiLin alias-token overrides, applied as one layer over the active palette.
2
+ * The dark-gold color pack: the "玄金" landing VI extended to both schemes.
3
3
  *
4
- * The palette is the "玄金麒麟" (dark-gold) landing VI extended to both
5
- * schemes: the dark values transplant the landing page's tokens verbatim
6
- * (apps/web/src/landing/landing.css), the light values derive the matching
4
+ * The dark values transplant the landing page's tokens verbatim
5
+ * (apps/web/src/landing/landing.css); the light values derive the matching
7
6
  * warm-paper variant because the landing VI ships no light mode. Accent
8
7
  * contrast is WCAG AA verified: the deep link gold #7d6126 clears 5.3:1 on
9
8
  * paper #f8f5ee where the VI's gold-700 #8f6f2e reaches only 4.3:1, and
@@ -16,14 +15,9 @@
16
15
  * light schemes darken (gold-700 -> #7d6126).
17
16
  */
18
17
  import type { ThemeTokenOverrides } from '@qilin-agent/client-ui-theme/client';
19
- /**
20
- * The layer source id. One layer per source, so this names the origin in
21
- * `ctx.theme` inspection and makes re-application replace rather than stack.
22
- */
23
- export declare const QILIN_THEME_SOURCE = "@qilin-agent/client-ui-theme-brand";
24
- /**
25
- * QiLin's brand tokens over the platform palettes. Every value states both
26
- * schemes (the ThemeTokenModes contract), grouped by surface family.
27
- */
18
+ import type { SkinPack } from '../skin.ts';
19
+ /** Dark-gold tokens over the platform palettes. Every value states both schemes. */
28
20
  export declare const QILIN_TOKENS: ThemeTokenOverrides;
29
- //# sourceMappingURL=tokens.d.ts.map
21
+ /** The dark-gold pack as one selectable skin. */
22
+ export declare const QILIN_PACK: SkinPack;
23
+ //# sourceMappingURL=qilin.d.ts.map
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The green color pack: light-green paper with a deep green accent in the
3
+ * light scheme, and a deep ink-green canvas with a light green accent in the
4
+ * dark scheme. Accent contrast is WCAG AA verified: white on #2f6b4b clears
5
+ * 6.4:1, the light link #2a5a40 clears 6.5:1 on #f1f6f2, and the dark accent
6
+ * #8fd0a8 clears 11:1 on the #0a120e canvas.
7
+ *
8
+ * State colors, masks, and the ongoing blue stay with the base palettes, the
9
+ * same omission rule as every pack. Hover darkens the light accent and
10
+ * brightens the dark one, matching each platform's convention.
11
+ */
12
+ import type { ThemeTokenOverrides } from '@qilin-agent/client-ui-theme/client';
13
+ import type { SkinPack } from '../skin.ts';
14
+ /** Green tokens over the platform palettes. Every value states both schemes. */
15
+ export declare const VERDANT_TOKENS: ThemeTokenOverrides;
16
+ /** The green pack as one selectable skin. */
17
+ export declare const VERDANT_PACK: SkinPack;
18
+ //# sourceMappingURL=verdant.d.ts.map
@@ -0,0 +1,44 @@
1
+ /**
2
+ * The shipped color packs, shared by the node and browser halves.
3
+ *
4
+ * A pack is one selectable skin: an id, a provider-owned label, the canvas
5
+ * colors the pre-plugin index render paints, and the alias-token overrides for
6
+ * both base palettes. Packs are identified by their palette, never by a
7
+ * product name, so a composition can pick any of them without exposing who
8
+ * uses it.
9
+ */
10
+ import type { ThemeTokenOverrides } from '@qilin-agent/client-ui-theme/client';
11
+ import { QILIN_PACK, QILIN_TOKENS } from './packs/qilin.ts';
12
+ /** One selectable color pack as both halves consume it. */
13
+ export interface SkinPack {
14
+ /** Stable id persisted by the appearance row. */
15
+ readonly id: string;
16
+ /** Provider-owned display name, resolved through the language chain. */
17
+ readonly label: Readonly<{
18
+ en: string;
19
+ readonly [locale: string]: string;
20
+ }>;
21
+ /** Canvas colors for the pre-plugin interval, matching the pack's base background. */
22
+ readonly boot: Readonly<{
23
+ light: string;
24
+ dark: string;
25
+ }>;
26
+ /** Alias-token overrides; every token states both palettes. */
27
+ readonly tokens: ThemeTokenOverrides;
28
+ }
29
+ /** Every shipped pack, in appearance-row order. */
30
+ export declare const SKIN_PACKS: readonly SkinPack[];
31
+ /** The dark-gold pack's id, persisted as the product default. */
32
+ export declare const QILIN_SKIN_ID: string;
33
+ /** The dark-gold pack's display name. */
34
+ export declare const QILIN_SKIN_LABEL: Readonly<{
35
+ readonly [locale: string]: string;
36
+ en: string;
37
+ }>;
38
+ /** The dark-gold pack's canvas colors. */
39
+ export declare const QILIN_SKIN_BOOT: Readonly<{
40
+ light: string;
41
+ dark: string;
42
+ }>;
43
+ export { QILIN_PACK, QILIN_TOKENS };
44
+ //# sourceMappingURL=skin.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qilin-agent/client-ui-theme-brand",
3
3
  "description": "QiLin brand color layer for the Web client theme: alias-token overrides stacked over the user's active palette",
4
- "version": "3.1.5",
4
+ "version": "3.1.7",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "license": "MIT",
40
40
  "peerDependencies": {
41
- "@qilin-agent/kylin": "~4.0.3"
41
+ "@qilin-agent/kylin": "~4.0.5"
42
42
  },
43
43
  "devDependencies": {
44
- "@qilin-agent/kylin": "~4.0.3",
45
- "@qilin-agent/client-test-runtime": "3.1.5",
46
- "@qilin-agent/client-ui-theme": "3.1.5"
44
+ "@qilin-agent/kylin": "~4.0.5",
45
+ "@qilin-agent/client-ui-theme": "3.1.7",
46
+ "@qilin-agent/client-test-runtime": "3.1.7"
47
47
  },
48
48
  "files": [
49
49
  "lib/index.js",