@nukleus-sports/design-tokens 0.1.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.
@@ -0,0 +1,13 @@
1
+ // src/tailwind-preset.ts
2
+ var preset = {
3
+ content: [],
4
+ theme: {
5
+ extend: {}
6
+ }
7
+ };
8
+ var tailwind_preset_default = preset;
9
+
10
+ export {
11
+ tailwind_preset_default
12
+ };
13
+ //# sourceMappingURL=chunk-6PDB7PI7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/tailwind-preset.ts"],"sourcesContent":["import type { Config } from \"tailwindcss\";\n\n/**\n * PLACEHOLDER — proves the build/consume pipeline. The real preset (the full\n * shared `theme.extend.{colors,fontSize,borderRadius,keyframes,animation}`\n * and the `addUtilities`/`addComponents`/`addBase` plugin currently inlined\n * in both apps' tailwind.config.ts) lands in the same follow-up pass as the\n * real tokens.\n */\nconst preset: Config = {\n content: [],\n theme: {\n extend: {},\n },\n};\n\nexport default preset;\n"],"mappings":";AASA,IAAM,SAAiB;AAAA,EACrB,SAAS,CAAC;AAAA,EACV,OAAO;AAAA,IACL,QAAQ,CAAC;AAAA,EACX;AACF;AAEA,IAAO,0BAAQ;","names":[]}
@@ -0,0 +1,34 @@
1
+ // src/tokens.ts
2
+ function flatten(groups) {
3
+ const out = {};
4
+ for (const group of groups) Object.assign(out, group.tokens);
5
+ return out;
6
+ }
7
+ var lightGroups = [
8
+ {
9
+ label: "Placeholder \u2014 real light-theme tokens land in a follow-up pass",
10
+ tokens: {
11
+ "--placeholder-accent": "150, 100%, 25%, 1"
12
+ }
13
+ }
14
+ ];
15
+ var darkGroups = [
16
+ {
17
+ label: "Placeholder \u2014 real dark-theme tokens land in a follow-up pass",
18
+ tokens: {
19
+ "--placeholder-accent": "150, 79%, 54%, 1"
20
+ }
21
+ }
22
+ ];
23
+ var light = flatten(lightGroups);
24
+ var dark = flatten(darkGroups);
25
+ var tokens = { light, dark };
26
+
27
+ export {
28
+ lightGroups,
29
+ darkGroups,
30
+ light,
31
+ dark,
32
+ tokens
33
+ };
34
+ //# sourceMappingURL=chunk-MWZELX7D.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/tokens.ts"],"sourcesContent":["/**\n * PLACEHOLDER CONTENT — proves the build/publish/consume pipeline end to end.\n * The real token extraction (full `.nukleus-v1`/`.dark`/`:root` fidelity, the\n * drift-union reconciliation between nukleus-app and nukleus-clientapp) is a\n * separate, deliberately deferred pass. Do not treat these values as real.\n *\n * Kept in the grouped shape the real content will use, so that pass only\n * replaces these bodies rather than restructuring the package.\n */\n\nexport interface TokenGroup {\n /** Emitted as a CSS comment above the group in the generated stylesheet. */\n label?: string;\n tokens: Record<string, string>;\n}\n\nfunction flatten(groups: TokenGroup[]): Record<string, string> {\n const out: Record<string, string> = {};\n for (const group of groups) Object.assign(out, group.tokens);\n return out;\n}\n\n/** `.nukleus-v1` — placeholder for the v1 light theme. */\nexport const lightGroups: TokenGroup[] = [\n {\n label: \"Placeholder — real light-theme tokens land in a follow-up pass\",\n tokens: {\n \"--placeholder-accent\": \"150, 100%, 25%, 1\",\n },\n },\n];\n\n/** `.dark` — placeholder for v1 dark overrides. */\nexport const darkGroups: TokenGroup[] = [\n {\n label: \"Placeholder — real dark-theme tokens land in a follow-up pass\",\n tokens: {\n \"--placeholder-accent\": \"150, 79%, 54%, 1\",\n },\n },\n];\n\nexport const light: Readonly<Record<string, string>> = flatten(lightGroups);\nexport const dark: Readonly<Record<string, string>> = flatten(darkGroups);\nexport const tokens = { light, dark } as const;\nexport type TokenName = keyof typeof light;\n"],"mappings":";AAgBA,SAAS,QAAQ,QAA8C;AAC7D,QAAM,MAA8B,CAAC;AACrC,aAAW,SAAS,OAAQ,QAAO,OAAO,KAAK,MAAM,MAAM;AAC3D,SAAO;AACT;AAGO,IAAM,cAA4B;AAAA,EACvC;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,MACN,wBAAwB;AAAA,IAC1B;AAAA,EACF;AACF;AAGO,IAAM,aAA2B;AAAA,EACtC;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,MACN,wBAAwB;AAAA,IAC1B;AAAA,EACF;AACF;AAEO,IAAM,QAA0C,QAAQ,WAAW;AACnE,IAAM,OAAyC,QAAQ,UAAU;AACjE,IAAM,SAAS,EAAE,OAAO,KAAK;","names":[]}
package/dist/index.cjs ADDED
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ dark: () => dark,
24
+ darkGroups: () => darkGroups,
25
+ light: () => light,
26
+ lightGroups: () => lightGroups,
27
+ renderCss: () => renderCss,
28
+ tailwindPreset: () => tailwind_preset_default,
29
+ tokens: () => tokens
30
+ });
31
+ module.exports = __toCommonJS(src_exports);
32
+
33
+ // src/tokens.ts
34
+ function flatten(groups) {
35
+ const out = {};
36
+ for (const group of groups) Object.assign(out, group.tokens);
37
+ return out;
38
+ }
39
+ var lightGroups = [
40
+ {
41
+ label: "Placeholder \u2014 real light-theme tokens land in a follow-up pass",
42
+ tokens: {
43
+ "--placeholder-accent": "150, 100%, 25%, 1"
44
+ }
45
+ }
46
+ ];
47
+ var darkGroups = [
48
+ {
49
+ label: "Placeholder \u2014 real dark-theme tokens land in a follow-up pass",
50
+ tokens: {
51
+ "--placeholder-accent": "150, 79%, 54%, 1"
52
+ }
53
+ }
54
+ ];
55
+ var light = flatten(lightGroups);
56
+ var dark = flatten(darkGroups);
57
+ var tokens = { light, dark };
58
+
59
+ // src/css.ts
60
+ function renderGroups(groups) {
61
+ return groups.map((group) => {
62
+ const decls = Object.entries(group.tokens).map(([name, value]) => ` ${name}: ${value};`).join("\n");
63
+ const comment = group.label ? ` /* ${group.label} */
64
+ ` : "";
65
+ return comment + decls;
66
+ }).join("\n\n");
67
+ }
68
+ function renderCss() {
69
+ return [
70
+ "/* AUTO-GENERATED by @nukleus-sports/design-tokens \u2014 do not edit by hand. */",
71
+ ".nukleus-v1 {",
72
+ renderGroups(lightGroups),
73
+ "}",
74
+ "",
75
+ ".dark {",
76
+ renderGroups(darkGroups),
77
+ "}",
78
+ ""
79
+ ].join("\n");
80
+ }
81
+
82
+ // src/tailwind-preset.ts
83
+ var preset = {
84
+ content: [],
85
+ theme: {
86
+ extend: {}
87
+ }
88
+ };
89
+ var tailwind_preset_default = preset;
90
+ // Annotate the CommonJS export names for ESM import in node:
91
+ 0 && (module.exports = {
92
+ dark,
93
+ darkGroups,
94
+ light,
95
+ lightGroups,
96
+ renderCss,
97
+ tailwindPreset,
98
+ tokens
99
+ });
100
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/tokens.ts","../src/css.ts","../src/tailwind-preset.ts"],"sourcesContent":["export { dark, darkGroups, light, lightGroups, tokens, type TokenGroup, type TokenName } from \"./tokens\";\nexport { renderCss } from \"./css\";\nexport { default as tailwindPreset } from \"./tailwind-preset\";\n","/**\n * PLACEHOLDER CONTENT — proves the build/publish/consume pipeline end to end.\n * The real token extraction (full `.nukleus-v1`/`.dark`/`:root` fidelity, the\n * drift-union reconciliation between nukleus-app and nukleus-clientapp) is a\n * separate, deliberately deferred pass. Do not treat these values as real.\n *\n * Kept in the grouped shape the real content will use, so that pass only\n * replaces these bodies rather than restructuring the package.\n */\n\nexport interface TokenGroup {\n /** Emitted as a CSS comment above the group in the generated stylesheet. */\n label?: string;\n tokens: Record<string, string>;\n}\n\nfunction flatten(groups: TokenGroup[]): Record<string, string> {\n const out: Record<string, string> = {};\n for (const group of groups) Object.assign(out, group.tokens);\n return out;\n}\n\n/** `.nukleus-v1` — placeholder for the v1 light theme. */\nexport const lightGroups: TokenGroup[] = [\n {\n label: \"Placeholder — real light-theme tokens land in a follow-up pass\",\n tokens: {\n \"--placeholder-accent\": \"150, 100%, 25%, 1\",\n },\n },\n];\n\n/** `.dark` — placeholder for v1 dark overrides. */\nexport const darkGroups: TokenGroup[] = [\n {\n label: \"Placeholder — real dark-theme tokens land in a follow-up pass\",\n tokens: {\n \"--placeholder-accent\": \"150, 79%, 54%, 1\",\n },\n },\n];\n\nexport const light: Readonly<Record<string, string>> = flatten(lightGroups);\nexport const dark: Readonly<Record<string, string>> = flatten(darkGroups);\nexport const tokens = { light, dark } as const;\nexport type TokenName = keyof typeof light;\n","import { darkGroups, lightGroups, type TokenGroup } from \"./tokens\";\n\nfunction renderGroups(groups: TokenGroup[]): string {\n return groups\n .map((group) => {\n const decls = Object.entries(group.tokens)\n .map(([name, value]) => ` ${name}: ${value};`)\n .join(\"\\n\");\n const comment = group.label ? ` /* ${group.label} */\\n` : \"\";\n return comment + decls;\n })\n .join(\"\\n\\n\");\n}\n\n/** Renders the full stylesheet: `.nukleus-v1` then `.dark`. */\nexport function renderCss(): string {\n return [\n \"/* AUTO-GENERATED by @nukleus-sports/design-tokens — do not edit by hand. */\",\n \".nukleus-v1 {\",\n renderGroups(lightGroups),\n \"}\",\n \"\",\n \".dark {\",\n renderGroups(darkGroups),\n \"}\",\n \"\",\n ].join(\"\\n\");\n}\n","import type { Config } from \"tailwindcss\";\n\n/**\n * PLACEHOLDER — proves the build/consume pipeline. The real preset (the full\n * shared `theme.extend.{colors,fontSize,borderRadius,keyframes,animation}`\n * and the `addUtilities`/`addComponents`/`addBase` plugin currently inlined\n * in both apps' tailwind.config.ts) lands in the same follow-up pass as the\n * real tokens.\n */\nconst preset: Config = {\n content: [],\n theme: {\n extend: {},\n },\n};\n\nexport default preset;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACgBA,SAAS,QAAQ,QAA8C;AAC7D,QAAM,MAA8B,CAAC;AACrC,aAAW,SAAS,OAAQ,QAAO,OAAO,KAAK,MAAM,MAAM;AAC3D,SAAO;AACT;AAGO,IAAM,cAA4B;AAAA,EACvC;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,MACN,wBAAwB;AAAA,IAC1B;AAAA,EACF;AACF;AAGO,IAAM,aAA2B;AAAA,EACtC;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,MACN,wBAAwB;AAAA,IAC1B;AAAA,EACF;AACF;AAEO,IAAM,QAA0C,QAAQ,WAAW;AACnE,IAAM,OAAyC,QAAQ,UAAU;AACjE,IAAM,SAAS,EAAE,OAAO,KAAK;;;AC1CpC,SAAS,aAAa,QAA8B;AAClD,SAAO,OACJ,IAAI,CAAC,UAAU;AACd,UAAM,QAAQ,OAAO,QAAQ,MAAM,MAAM,EACtC,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,KAAK,IAAI,KAAK,KAAK,GAAG,EAC7C,KAAK,IAAI;AACZ,UAAM,UAAU,MAAM,QAAQ,QAAQ,MAAM,KAAK;AAAA,IAAU;AAC3D,WAAO,UAAU;AAAA,EACnB,CAAC,EACA,KAAK,MAAM;AAChB;AAGO,SAAS,YAAoB;AAClC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,aAAa,WAAW;AAAA,IACxB;AAAA,IACA;AAAA,IACA;AAAA,IACA,aAAa,UAAU;AAAA,IACvB;AAAA,IACA;AAAA,EACF,EAAE,KAAK,IAAI;AACb;;;AClBA,IAAM,SAAiB;AAAA,EACrB,SAAS,CAAC;AAAA,EACV,OAAO;AAAA,IACL,QAAQ,CAAC;AAAA,EACX;AACF;AAEA,IAAO,0BAAQ;","names":[]}
@@ -0,0 +1,8 @@
1
+ export { TokenGroup, TokenName, dark, darkGroups, light, lightGroups, tokens } from './tokens.cjs';
2
+ export { default as tailwindPreset } from './tailwind-preset.cjs';
3
+ import 'tailwindcss';
4
+
5
+ /** Renders the full stylesheet: `.nukleus-v1` then `.dark`. */
6
+ declare function renderCss(): string;
7
+
8
+ export { renderCss };
@@ -0,0 +1,8 @@
1
+ export { TokenGroup, TokenName, dark, darkGroups, light, lightGroups, tokens } from './tokens.js';
2
+ export { default as tailwindPreset } from './tailwind-preset.js';
3
+ import 'tailwindcss';
4
+
5
+ /** Renders the full stylesheet: `.nukleus-v1` then `.dark`. */
6
+ declare function renderCss(): string;
7
+
8
+ export { renderCss };
package/dist/index.js ADDED
@@ -0,0 +1,43 @@
1
+ import {
2
+ dark,
3
+ darkGroups,
4
+ light,
5
+ lightGroups,
6
+ tokens
7
+ } from "./chunk-MWZELX7D.js";
8
+ import {
9
+ tailwind_preset_default
10
+ } from "./chunk-6PDB7PI7.js";
11
+
12
+ // src/css.ts
13
+ function renderGroups(groups) {
14
+ return groups.map((group) => {
15
+ const decls = Object.entries(group.tokens).map(([name, value]) => ` ${name}: ${value};`).join("\n");
16
+ const comment = group.label ? ` /* ${group.label} */
17
+ ` : "";
18
+ return comment + decls;
19
+ }).join("\n\n");
20
+ }
21
+ function renderCss() {
22
+ return [
23
+ "/* AUTO-GENERATED by @nukleus-sports/design-tokens \u2014 do not edit by hand. */",
24
+ ".nukleus-v1 {",
25
+ renderGroups(lightGroups),
26
+ "}",
27
+ "",
28
+ ".dark {",
29
+ renderGroups(darkGroups),
30
+ "}",
31
+ ""
32
+ ].join("\n");
33
+ }
34
+ export {
35
+ dark,
36
+ darkGroups,
37
+ light,
38
+ lightGroups,
39
+ renderCss,
40
+ tailwind_preset_default as tailwindPreset,
41
+ tokens
42
+ };
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/css.ts"],"sourcesContent":["import { darkGroups, lightGroups, type TokenGroup } from \"./tokens\";\n\nfunction renderGroups(groups: TokenGroup[]): string {\n return groups\n .map((group) => {\n const decls = Object.entries(group.tokens)\n .map(([name, value]) => ` ${name}: ${value};`)\n .join(\"\\n\");\n const comment = group.label ? ` /* ${group.label} */\\n` : \"\";\n return comment + decls;\n })\n .join(\"\\n\\n\");\n}\n\n/** Renders the full stylesheet: `.nukleus-v1` then `.dark`. */\nexport function renderCss(): string {\n return [\n \"/* AUTO-GENERATED by @nukleus-sports/design-tokens — do not edit by hand. */\",\n \".nukleus-v1 {\",\n renderGroups(lightGroups),\n \"}\",\n \"\",\n \".dark {\",\n renderGroups(darkGroups),\n \"}\",\n \"\",\n ].join(\"\\n\");\n}\n"],"mappings":";;;;;;;;;;;;AAEA,SAAS,aAAa,QAA8B;AAClD,SAAO,OACJ,IAAI,CAAC,UAAU;AACd,UAAM,QAAQ,OAAO,QAAQ,MAAM,MAAM,EACtC,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,KAAK,IAAI,KAAK,KAAK,GAAG,EAC7C,KAAK,IAAI;AACZ,UAAM,UAAU,MAAM,QAAQ,QAAQ,MAAM,KAAK;AAAA,IAAU;AAC3D,WAAO,UAAU;AAAA,EACnB,CAAC,EACA,KAAK,MAAM;AAChB;AAGO,SAAS,YAAoB;AAClC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,aAAa,WAAW;AAAA,IACxB;AAAA,IACA;AAAA,IACA;AAAA,IACA,aAAa,UAAU;AAAA,IACvB;AAAA,IACA;AAAA,EACF,EAAE,KAAK,IAAI;AACb;","names":[]}
@@ -0,0 +1,10 @@
1
+ /* AUTO-GENERATED by @nukleus-sports/design-tokens — do not edit by hand. */
2
+ .nukleus-v1 {
3
+ /* Placeholder — real light-theme tokens land in a follow-up pass */
4
+ --placeholder-accent: 150, 100%, 25%, 1;
5
+ }
6
+
7
+ .dark {
8
+ /* Placeholder — real dark-theme tokens land in a follow-up pass */
9
+ --placeholder-accent: 150, 79%, 54%, 1;
10
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/tailwind-preset.ts
21
+ var tailwind_preset_exports = {};
22
+ __export(tailwind_preset_exports, {
23
+ default: () => tailwind_preset_default
24
+ });
25
+ module.exports = __toCommonJS(tailwind_preset_exports);
26
+ var preset = {
27
+ content: [],
28
+ theme: {
29
+ extend: {}
30
+ }
31
+ };
32
+ var tailwind_preset_default = preset;
33
+ //# sourceMappingURL=tailwind-preset.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/tailwind-preset.ts"],"sourcesContent":["import type { Config } from \"tailwindcss\";\n\n/**\n * PLACEHOLDER — proves the build/consume pipeline. The real preset (the full\n * shared `theme.extend.{colors,fontSize,borderRadius,keyframes,animation}`\n * and the `addUtilities`/`addComponents`/`addBase` plugin currently inlined\n * in both apps' tailwind.config.ts) lands in the same follow-up pass as the\n * real tokens.\n */\nconst preset: Config = {\n content: [],\n theme: {\n extend: {},\n },\n};\n\nexport default preset;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,IAAM,SAAiB;AAAA,EACrB,SAAS,CAAC;AAAA,EACV,OAAO;AAAA,IACL,QAAQ,CAAC;AAAA,EACX;AACF;AAEA,IAAO,0BAAQ;","names":[]}
@@ -0,0 +1,12 @@
1
+ import { Config } from 'tailwindcss';
2
+
3
+ /**
4
+ * PLACEHOLDER — proves the build/consume pipeline. The real preset (the full
5
+ * shared `theme.extend.{colors,fontSize,borderRadius,keyframes,animation}`
6
+ * and the `addUtilities`/`addComponents`/`addBase` plugin currently inlined
7
+ * in both apps' tailwind.config.ts) lands in the same follow-up pass as the
8
+ * real tokens.
9
+ */
10
+ declare const preset: Config;
11
+
12
+ export { preset as default };
@@ -0,0 +1,12 @@
1
+ import { Config } from 'tailwindcss';
2
+
3
+ /**
4
+ * PLACEHOLDER — proves the build/consume pipeline. The real preset (the full
5
+ * shared `theme.extend.{colors,fontSize,borderRadius,keyframes,animation}`
6
+ * and the `addUtilities`/`addComponents`/`addBase` plugin currently inlined
7
+ * in both apps' tailwind.config.ts) lands in the same follow-up pass as the
8
+ * real tokens.
9
+ */
10
+ declare const preset: Config;
11
+
12
+ export { preset as default };
@@ -0,0 +1,7 @@
1
+ import {
2
+ tailwind_preset_default
3
+ } from "./chunk-6PDB7PI7.js";
4
+ export {
5
+ tailwind_preset_default as default
6
+ };
7
+ //# sourceMappingURL=tailwind-preset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/tokens.ts
21
+ var tokens_exports = {};
22
+ __export(tokens_exports, {
23
+ dark: () => dark,
24
+ darkGroups: () => darkGroups,
25
+ light: () => light,
26
+ lightGroups: () => lightGroups,
27
+ tokens: () => tokens
28
+ });
29
+ module.exports = __toCommonJS(tokens_exports);
30
+ function flatten(groups) {
31
+ const out = {};
32
+ for (const group of groups) Object.assign(out, group.tokens);
33
+ return out;
34
+ }
35
+ var lightGroups = [
36
+ {
37
+ label: "Placeholder \u2014 real light-theme tokens land in a follow-up pass",
38
+ tokens: {
39
+ "--placeholder-accent": "150, 100%, 25%, 1"
40
+ }
41
+ }
42
+ ];
43
+ var darkGroups = [
44
+ {
45
+ label: "Placeholder \u2014 real dark-theme tokens land in a follow-up pass",
46
+ tokens: {
47
+ "--placeholder-accent": "150, 79%, 54%, 1"
48
+ }
49
+ }
50
+ ];
51
+ var light = flatten(lightGroups);
52
+ var dark = flatten(darkGroups);
53
+ var tokens = { light, dark };
54
+ // Annotate the CommonJS export names for ESM import in node:
55
+ 0 && (module.exports = {
56
+ dark,
57
+ darkGroups,
58
+ light,
59
+ lightGroups,
60
+ tokens
61
+ });
62
+ //# sourceMappingURL=tokens.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/tokens.ts"],"sourcesContent":["/**\n * PLACEHOLDER CONTENT — proves the build/publish/consume pipeline end to end.\n * The real token extraction (full `.nukleus-v1`/`.dark`/`:root` fidelity, the\n * drift-union reconciliation between nukleus-app and nukleus-clientapp) is a\n * separate, deliberately deferred pass. Do not treat these values as real.\n *\n * Kept in the grouped shape the real content will use, so that pass only\n * replaces these bodies rather than restructuring the package.\n */\n\nexport interface TokenGroup {\n /** Emitted as a CSS comment above the group in the generated stylesheet. */\n label?: string;\n tokens: Record<string, string>;\n}\n\nfunction flatten(groups: TokenGroup[]): Record<string, string> {\n const out: Record<string, string> = {};\n for (const group of groups) Object.assign(out, group.tokens);\n return out;\n}\n\n/** `.nukleus-v1` — placeholder for the v1 light theme. */\nexport const lightGroups: TokenGroup[] = [\n {\n label: \"Placeholder — real light-theme tokens land in a follow-up pass\",\n tokens: {\n \"--placeholder-accent\": \"150, 100%, 25%, 1\",\n },\n },\n];\n\n/** `.dark` — placeholder for v1 dark overrides. */\nexport const darkGroups: TokenGroup[] = [\n {\n label: \"Placeholder — real dark-theme tokens land in a follow-up pass\",\n tokens: {\n \"--placeholder-accent\": \"150, 79%, 54%, 1\",\n },\n },\n];\n\nexport const light: Readonly<Record<string, string>> = flatten(lightGroups);\nexport const dark: Readonly<Record<string, string>> = flatten(darkGroups);\nexport const tokens = { light, dark } as const;\nexport type TokenName = keyof typeof light;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA,SAAS,QAAQ,QAA8C;AAC7D,QAAM,MAA8B,CAAC;AACrC,aAAW,SAAS,OAAQ,QAAO,OAAO,KAAK,MAAM,MAAM;AAC3D,SAAO;AACT;AAGO,IAAM,cAA4B;AAAA,EACvC;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,MACN,wBAAwB;AAAA,IAC1B;AAAA,EACF;AACF;AAGO,IAAM,aAA2B;AAAA,EACtC;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,MACN,wBAAwB;AAAA,IAC1B;AAAA,EACF;AACF;AAEO,IAAM,QAA0C,QAAQ,WAAW;AACnE,IAAM,OAAyC,QAAQ,UAAU;AACjE,IAAM,SAAS,EAAE,OAAO,KAAK;","names":[]}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * PLACEHOLDER CONTENT — proves the build/publish/consume pipeline end to end.
3
+ * The real token extraction (full `.nukleus-v1`/`.dark`/`:root` fidelity, the
4
+ * drift-union reconciliation between nukleus-app and nukleus-clientapp) is a
5
+ * separate, deliberately deferred pass. Do not treat these values as real.
6
+ *
7
+ * Kept in the grouped shape the real content will use, so that pass only
8
+ * replaces these bodies rather than restructuring the package.
9
+ */
10
+ interface TokenGroup {
11
+ /** Emitted as a CSS comment above the group in the generated stylesheet. */
12
+ label?: string;
13
+ tokens: Record<string, string>;
14
+ }
15
+ /** `.nukleus-v1` — placeholder for the v1 light theme. */
16
+ declare const lightGroups: TokenGroup[];
17
+ /** `.dark` — placeholder for v1 dark overrides. */
18
+ declare const darkGroups: TokenGroup[];
19
+ declare const light: Readonly<Record<string, string>>;
20
+ declare const dark: Readonly<Record<string, string>>;
21
+ declare const tokens: {
22
+ readonly light: Readonly<Record<string, string>>;
23
+ readonly dark: Readonly<Record<string, string>>;
24
+ };
25
+ type TokenName = keyof typeof light;
26
+
27
+ export { type TokenGroup, type TokenName, dark, darkGroups, light, lightGroups, tokens };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * PLACEHOLDER CONTENT — proves the build/publish/consume pipeline end to end.
3
+ * The real token extraction (full `.nukleus-v1`/`.dark`/`:root` fidelity, the
4
+ * drift-union reconciliation between nukleus-app and nukleus-clientapp) is a
5
+ * separate, deliberately deferred pass. Do not treat these values as real.
6
+ *
7
+ * Kept in the grouped shape the real content will use, so that pass only
8
+ * replaces these bodies rather than restructuring the package.
9
+ */
10
+ interface TokenGroup {
11
+ /** Emitted as a CSS comment above the group in the generated stylesheet. */
12
+ label?: string;
13
+ tokens: Record<string, string>;
14
+ }
15
+ /** `.nukleus-v1` — placeholder for the v1 light theme. */
16
+ declare const lightGroups: TokenGroup[];
17
+ /** `.dark` — placeholder for v1 dark overrides. */
18
+ declare const darkGroups: TokenGroup[];
19
+ declare const light: Readonly<Record<string, string>>;
20
+ declare const dark: Readonly<Record<string, string>>;
21
+ declare const tokens: {
22
+ readonly light: Readonly<Record<string, string>>;
23
+ readonly dark: Readonly<Record<string, string>>;
24
+ };
25
+ type TokenName = keyof typeof light;
26
+
27
+ export { type TokenGroup, type TokenName, dark, darkGroups, light, lightGroups, tokens };
package/dist/tokens.js ADDED
@@ -0,0 +1,15 @@
1
+ import {
2
+ dark,
3
+ darkGroups,
4
+ light,
5
+ lightGroups,
6
+ tokens
7
+ } from "./chunk-MWZELX7D.js";
8
+ export {
9
+ dark,
10
+ darkGroups,
11
+ light,
12
+ lightGroups,
13
+ tokens
14
+ };
15
+ //# sourceMappingURL=tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@nukleus-sports/design-tokens",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "main": "./dist/index.cjs",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "require": "./dist/index.cjs"
13
+ },
14
+ "./tokens": {
15
+ "types": "./dist/tokens.d.ts",
16
+ "import": "./dist/tokens.js",
17
+ "require": "./dist/tokens.cjs"
18
+ },
19
+ "./tailwind-preset": {
20
+ "types": "./dist/tailwind-preset.d.ts",
21
+ "import": "./dist/tailwind-preset.js",
22
+ "require": "./dist/tailwind-preset.cjs"
23
+ },
24
+ "./css": "./dist/nukleus-v1.css",
25
+ "./package.json": "./package.json"
26
+ },
27
+ "files": [
28
+ "dist"
29
+ ],
30
+ "sideEffects": [
31
+ "*.css"
32
+ ],
33
+ "scripts": {
34
+ "build": "tsup",
35
+ "dev": "tsup --watch",
36
+ "test": "vitest run",
37
+ "lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\"",
38
+ "typecheck": "tsc --noEmit",
39
+ "prepublishOnly": "bun run build"
40
+ },
41
+ "keywords": [
42
+ "nukleus",
43
+ "design-tokens",
44
+ "design-system",
45
+ "tailwind",
46
+ "css-variables"
47
+ ],
48
+ "peerDependencies": {
49
+ "tailwindcss": "^3.4.0"
50
+ },
51
+ "peerDependenciesMeta": {
52
+ "tailwindcss": {
53
+ "optional": true
54
+ }
55
+ },
56
+ "dependencies": {
57
+ "tailwind-scrollbar": "^4.0.2",
58
+ "tailwindcss-animate": "^1.0.7"
59
+ },
60
+ "devDependencies": {
61
+ "@types/node": "^22.13.10",
62
+ "tailwindcss": "^3.4.11",
63
+ "tsup": "^8.4.0",
64
+ "typescript": "^5.8.2",
65
+ "vitest": "^3.0.9"
66
+ },
67
+ "publishConfig": {
68
+ "access": "public"
69
+ }
70
+ }