@payfit/unity-themes 2.68.15 → 2.68.16

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/esm/index.js CHANGED
@@ -2,5 +2,4 @@ import { twMergeConfig as e } from "./utils/merge-config.js";
2
2
  import { classNames as t, clsx as n, cn as r } from "./utils/cn.js";
3
3
  import { uyMerge as i } from "./utils/tailwind-merge.js";
4
4
  import { uyTv as a } from "./utils/tailwind-variants.js";
5
- import { UnityThemeProvider as o, useUnityTheme as s } from "./components/unity-theme-provider.js";
6
- export { o as UnityThemeProvider, t as classNames, n as clsx, r as cn, e as twMergeConfig, s as useUnityTheme, i as uyMerge, a as uyTv };
5
+ export { t as classNames, n as clsx, r as cn, e as twMergeConfig, i as uyMerge, a as uyTv };
@@ -1,8 +1,8 @@
1
1
  export interface ComposeInput {
2
- /** css/variables output for legacy (:root selector) */
3
- legacyCss: string;
4
- /** css/variables output for rebrand ([data-uy-theme="rebrand"] selector) */
5
- rebrandCss: string;
2
+ /** css/variables output for the default theme (:root selector) */
3
+ defaultCss: string;
4
+ /** css/variables output for the compact theme ([data-unity-theme="compact"]) */
5
+ compactCss: string;
6
6
  /** css/unity-theme output (@theme block + grid/typography utilities) */
7
7
  themeCss: string;
8
8
  /** File header + imports */
@@ -9,6 +9,6 @@ export declare const sharedLogConfig: {
9
9
  };
10
10
  export declare const createThemeStyleDictionary: ({ projectRoot, theme, }: {
11
11
  projectRoot: string;
12
- theme: "legacy" | "rebrand";
12
+ theme: "default" | "compact";
13
13
  }) => StyleDictionary;
14
14
  export default StyleDictionary;
@@ -0,0 +1,2 @@
1
+ /** Themes supported by the generated Unity assets and CSS. */
2
+ export type UnityTheme = 'default' | 'compact';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-themes",
3
- "version": "2.68.15",
3
+ "version": "2.68.16",
4
4
  "main": "./dist/esm/index.js",
5
5
  "types": "./dist/esm/index.d.ts",
6
6
  "style": "./dist/css/unity.css",
@@ -53,7 +53,6 @@
53
53
  "@storybook/addon-docs": "10.6.0",
54
54
  "@storybook/addon-links": "10.6.0",
55
55
  "@storybook/addon-mcp": "0.7.0",
56
- "@storybook/addon-themes": "10.6.0",
57
56
  "@storybook/addon-vitest": "10.6.0",
58
57
  "@storybook/react-vite": "10.6.0",
59
58
  "@tailwindcss/vite": "4.3.3",
@@ -22,7 +22,7 @@ Before implementation, perform a targeted search of
22
22
  `tokens-catalog.json` using `rg`, `jq`, or another file-reading command.
23
23
  Loading this skill alone does not count as consulting the catalog.
24
24
 
25
- 1. Read [src/agent-references/tokens-catalog.json](../../src/agent-references/tokens-catalog.json) for exact catalog names, CSS variables, token families, resolved legacy/rebrand values, and references.
25
+ 1. Read [src/agent-references/tokens-catalog.json](../../src/agent-references/tokens-catalog.json) for exact catalog names, CSS variables, token families, resolved default values, and references.
26
26
  2. If the match is ambiguous or the raw definition is needed, inspect the DTCG files under `tokens/`.
27
27
  3. For utility-class syntax and common blueprints, inspect the generated projections under `src/storybook-mcp/` (for example `semantic-surface-colors.mdx`). These files are optimized guides, not the canonical token index.
28
28
 
@@ -38,7 +38,7 @@ jq '.tokens[] | select(.name | test("border-neutral"; "i"))' \
38
38
  1. Classify the request as a token name, CSS variable, generated class, resolved value, or design-intent question.
39
39
  2. Search the entire catalog and compare exact semantic matches before considering primitives.
40
40
  3. Use the catalog's `name` and `cssVariable`; do not reconstruct names from the DTCG path when a transform may have changed them.
41
- 4. Preserve token references. Inspect `values.legacy` and `values.rebrand` to understand theme-specific resolution, and inspect `references` when explaining an alias.
41
+ 4. Preserve token references. Inspect `values.default` to understand the current theme resolution, and inspect `references` when explaining an alias.
42
42
  5. For classes, use the generated `src/storybook-mcp` blueprint for the relevant family and substitute only a catalog-confirmed token name. Do not enumerate or invent the complete class space.
43
43
  6. Prefer semantic tokens for product UI. Use primitives only when the intent has no semantic equivalent or the user explicitly asks for a raw palette value.
44
44
  7. Keep the `uy:` prefix on every Unity utility class.