@payfit/unity-themes 2.68.15 → 2.68.17
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/css/unity.css +84 -556
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -2
- package/dist/esm/scripts/actions/compose-multi-theme.d.ts +4 -4
- package/dist/esm/scripts/style-dictionary-config.d.ts +1 -1
- package/dist/esm/types.d.ts +2 -0
- package/package.json +2 -3
- package/skills/unity-themes/SKILL.md +2 -2
- package/src/agent-references/tokens-catalog.json +691 -4719
- package/tokens/compact/spacings.json +55 -0
- package/dist/esm/components/unity-theme-provider.d.ts +0 -25
- package/dist/esm/components/unity-theme-provider.js +0 -30
- package/dist/esm/components/unity-theme-provider.test.d.ts +0 -1
- package/tokens/legacy/colors.json +0 -1400
- package/tokens/legacy/text.json +0 -14
- package/tokens/legacy/typography.json +0 -329
- package/tokens/rebrand/gradients.json +0 -22
- package/tokens/rebrand/radii.json +0 -21
- package/tokens/rebrand/shadows.json +0 -81
- /package/tokens/{rebrand → default}/colors.json +0 -0
- /package/tokens/{legacy → default}/gradients.json +0 -0
- /package/tokens/{legacy → default}/radii.json +0 -0
- /package/tokens/{legacy → default}/shadows.json +0 -0
- /package/tokens/{rebrand → default}/text.json +0 -0
- /package/tokens/{rebrand → default}/typography.json +0 -0
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
|
-
|
|
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
|
|
3
|
-
|
|
4
|
-
/** css/variables output for
|
|
5
|
-
|
|
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: "
|
|
12
|
+
theme: "default" | "compact";
|
|
13
13
|
}) => StyleDictionary;
|
|
14
14
|
export default StyleDictionary;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/unity-themes",
|
|
3
|
-
"version": "2.68.
|
|
3
|
+
"version": "2.68.17",
|
|
4
4
|
"main": "./dist/esm/index.js",
|
|
5
5
|
"types": "./dist/esm/index.d.ts",
|
|
6
6
|
"style": "./dist/css/unity.css",
|
|
@@ -52,8 +52,7 @@
|
|
|
52
52
|
"@storybook/addon-a11y": "10.6.0",
|
|
53
53
|
"@storybook/addon-docs": "10.6.0",
|
|
54
54
|
"@storybook/addon-links": "10.6.0",
|
|
55
|
-
"@storybook/addon-mcp": "
|
|
56
|
-
"@storybook/addon-themes": "10.6.0",
|
|
55
|
+
"@storybook/addon-mcp": "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
|
|
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.
|
|
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.
|