tokka 0.1.0 → 0.2.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.
Files changed (3) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +12 -35
  3. package/LICENSE +0 -21
package/dist/index.js CHANGED
@@ -174,7 +174,7 @@ import fs3 from "fs-extra";
174
174
  import path3 from "path";
175
175
  import ora3 from "ora";
176
176
  import kleur3 from "kleur";
177
- import { compile, generateCSSOutput, generateTailwindOutput, generateTypeScriptOutput } from "tokka-compiler";
177
+ import { compile, generateCSSOutput, generateTailwindOutput, generateTypeScriptOutput } from "@tokka/compiler";
178
178
  async function buildCommand(options) {
179
179
  const cwd = process.cwd();
180
180
  const spinner = ora3("Building tokens...").start();
@@ -237,7 +237,7 @@ async function validateCommand() {
237
237
  process.exit(1);
238
238
  }
239
239
  console.log(kleur4.cyan("\n\u{1F50D} Validating tokens and manifests...\n"));
240
- const { compile: compile3, validateTokens, loadTokens, loadSystem } = await import("tokka-compiler");
240
+ const { compile: compile3, validateTokens, loadTokens, loadSystem } = await import("@tokka/compiler");
241
241
  try {
242
242
  const tokens = await loadTokens({ cwd });
243
243
  const system = await loadSystem({ cwd });
@@ -264,7 +264,7 @@ import fs5 from "fs-extra";
264
264
  import path5 from "path";
265
265
  import ora4 from "ora";
266
266
  import kleur5 from "kleur";
267
- import { compile as compile2, generateFigmaTokenOutput } from "tokka-compiler";
267
+ import { compile as compile2, generateFigmaTokenOutput } from "@tokka/compiler";
268
268
  async function exportCommand(target, options) {
269
269
  if (target !== "figma") {
270
270
  console.error(kleur5.red(`\u2716 Unknown export target: ${target}`));
@@ -422,7 +422,7 @@ async function enableCommand(feature) {
422
422
 
423
423
  // src/index.ts
424
424
  var program = new Command();
425
- program.name("tokka").description("A React UI foundation with structured tokens, theming, and optional Figma support").version("0.0.1");
425
+ program.name("tokka").description("A shadcn-compatible UI foundation with a real token system").version("0.0.1");
426
426
  program.command("init").description("Initialize a new tokka project").option("-s, --system <id>", "System to use (soft-saas, corporate, dark-mode, accessible, brutalist)").option("-p, --package-manager <pm>", "Package manager to use", "pnpm").option("--no-demo", "Skip demo app creation").action(initCommand);
427
427
  program.command("add").description("Add components to your project").argument("<components...>", "Component names (button, input, card, etc.)").action(addCommand);
428
428
  program.command("build").description("Build design tokens and outputs").option("-f, --force", "Force rebuild").action(buildCommand);
package/package.json CHANGED
@@ -1,32 +1,9 @@
1
1
  {
2
2
  "name": "tokka",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
- "description": "A React UI foundation with structured tokens, theming, and optional Figma support",
6
- "keywords": [
7
- "design-system",
8
- "design-tokens",
9
- "ui-components",
10
- "react",
11
- "tailwind",
12
- "figma",
13
- "css-variables",
14
- "theming"
15
- ],
16
- "homepage": "https://github.com/ccwilson10/tokka#readme",
17
- "bugs": {
18
- "url": "https://github.com/ccwilson10/tokka/issues"
19
- },
20
- "repository": {
21
- "type": "git",
22
- "url": "git+https://github.com/ccwilson10/tokka.git",
23
- "directory": "packages/cli"
24
- },
25
- "license": "MIT",
26
- "author": "tokka contributors",
27
- "bin": {
28
- "tokka": "./dist/index.js"
29
- },
5
+ "description": "A shadcn-compatible UI foundation with a real token system and optional Figma exports",
6
+ "bin": "./dist/index.js",
30
7
  "exports": {
31
8
  ".": {
32
9
  "types": "./dist/index.d.ts",
@@ -36,15 +13,21 @@
36
13
  "files": [
37
14
  "dist"
38
15
  ],
16
+ "scripts": {
17
+ "build": "tsup src/index.ts --format esm --dts --clean",
18
+ "dev": "tsup src/index.ts --format esm --dts --watch",
19
+ "test": "vitest run",
20
+ "typecheck": "tsc --noEmit"
21
+ },
39
22
  "dependencies": {
23
+ "@tokka/compiler": "workspace:*",
40
24
  "commander": "^11.1.0",
41
25
  "prompts": "^2.4.2",
42
26
  "kleur": "^4.1.5",
43
27
  "ora": "^8.0.1",
44
28
  "fs-extra": "^11.2.0",
45
29
  "glob": "^10.3.10",
46
- "zod": "^3.22.4",
47
- "tokka-compiler": "0.1.0"
30
+ "zod": "^3.22.4"
48
31
  },
49
32
  "devDependencies": {
50
33
  "@types/fs-extra": "^11.0.4",
@@ -53,11 +36,5 @@
53
36
  "tsup": "^8.0.2",
54
37
  "typescript": "^5.3.3",
55
38
  "vitest": "^1.3.1"
56
- },
57
- "scripts": {
58
- "build": "tsup src/index.ts --format esm --dts --clean",
59
- "dev": "tsup src/index.ts --format esm --dts --watch",
60
- "test": "vitest run",
61
- "typecheck": "tsc --noEmit"
62
39
  }
63
- }
40
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 tokka contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.