trix-ui 0.2.7 → 0.2.8

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/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,68 +1,68 @@
1
- {
2
- "name": "trix-ui",
3
- "version": "0.2.7",
4
- "description": "Lite UI CLI, registry tooling, and templates.",
5
- "license": "MIT",
6
- "type": "module",
7
- "exports": {
8
- ".": {
9
- "types": "./dist/index.d.ts",
10
- "default": "./dist/index.js"
11
- },
12
- "./schema": {
13
- "types": "./dist/schema/index.d.ts",
14
- "default": "./dist/schema/index.js"
15
- },
16
- "./icons": {
17
- "types": "./dist/icons/index.d.ts",
18
- "default": "./dist/icons/index.js"
19
- },
20
- "./utils": {
21
- "types": "./dist/utils/index.d.ts",
22
- "default": "./dist/utils/index.js"
23
- }
24
- },
25
- "bin": {
26
- "ui": "dist/index.js",
27
- "trix-ui": "dist/index.js"
28
- },
29
- "files": [
30
- "dist",
31
- "registry",
32
- "templates",
33
- "tailwind.css",
34
- "README.md"
35
- ],
36
- "dependencies": {
37
- "@antfu/ni": "^28.2.0",
38
- "chalk": "^5.6.2",
39
- "commander": "^14.0.2",
40
- "eslint-plugin-tailwindcss": "3.18.2",
41
- "execa": "^9.6.1",
42
- "jsonc-parser": "^3.2.1",
43
- "kleur": "^4.1.5",
44
- "ora": "^9.1.0",
45
- "pino": "^10.2.1",
46
- "pino-pretty": "^13.1.3",
47
- "postcss": "^8.5.6",
48
- "postcss-selector-parser": "^7.1.1",
49
- "prompts": "^2.4.2",
50
- "ts-morph": "^27.0.2",
51
- "zod": "^4.3.5"
52
- },
53
- "devDependencies": {
54
- "@vitest/coverage-v8": "^4.0.17",
55
- "@types/node": "^25.0.9",
56
- "@types/prompts": "^2.4.9",
57
- "tsx": "^4.21.0",
58
- "typescript": "^5.9.3"
59
- },
60
- "scripts": {
61
- "build": "tsc -p tsconfig.json",
62
- "dev": "node --enable-source-maps --import tsx src/index.ts",
63
- "typecheck": "tsc -p tsconfig.json --noEmit",
64
- "pub:beta": "pnpm build && pnpm publish --no-git-checks --access public --tag beta",
65
- "pub:release": "pnpm build && pnpm publish --access public",
66
- "test": "vitest"
67
- }
68
- }
1
+ {
2
+ "name": "trix-ui",
3
+ "version": "0.2.8",
4
+ "description": "Lite UI CLI, registry tooling, and templates.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
+ },
12
+ "./schema": {
13
+ "types": "./dist/schema/index.d.ts",
14
+ "default": "./dist/schema/index.js"
15
+ },
16
+ "./icons": {
17
+ "types": "./dist/icons/index.d.ts",
18
+ "default": "./dist/icons/index.js"
19
+ },
20
+ "./utils": {
21
+ "types": "./dist/utils/index.d.ts",
22
+ "default": "./dist/utils/index.js"
23
+ }
24
+ },
25
+ "bin": {
26
+ "ui": "dist/index.js",
27
+ "trix-ui": "dist/index.js"
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "registry",
32
+ "templates",
33
+ "tailwind.css",
34
+ "README.md"
35
+ ],
36
+ "scripts": {
37
+ "build": "tsc -p tsconfig.json",
38
+ "dev": "node --enable-source-maps --import tsx src/index.ts",
39
+ "typecheck": "tsc -p tsconfig.json --noEmit",
40
+ "pub:beta": "pnpm build && pnpm publish --no-git-checks --access public --tag beta",
41
+ "pub:release": "pnpm build && pnpm publish --access public",
42
+ "test": "vitest"
43
+ },
44
+ "dependencies": {
45
+ "@antfu/ni": "^28.2.0",
46
+ "chalk": "^5.6.2",
47
+ "commander": "^14.0.2",
48
+ "eslint-plugin-tailwindcss": "3.18.2",
49
+ "execa": "^9.6.1",
50
+ "jsonc-parser": "^3.2.1",
51
+ "kleur": "^4.1.5",
52
+ "ora": "^9.1.0",
53
+ "pino": "^10.2.1",
54
+ "pino-pretty": "^13.1.3",
55
+ "postcss": "^8.5.6",
56
+ "postcss-selector-parser": "^7.1.1",
57
+ "prompts": "^2.4.2",
58
+ "ts-morph": "^27.0.2",
59
+ "zod": "^4.3.5"
60
+ },
61
+ "devDependencies": {
62
+ "@vitest/coverage-v8": "^4.0.17",
63
+ "@types/node": "^25.0.9",
64
+ "@types/prompts": "^2.4.9",
65
+ "tsx": "^4.21.0",
66
+ "typescript": "^5.9.3"
67
+ }
68
+ }
@@ -0,0 +1,7 @@
1
+ import { clsx } from "clsx"
2
+ import { twMerge } from "tailwind-merge"
3
+
4
+ export function cn(...inputs) {
5
+ return twMerge(clsx(inputs))
6
+ }
7
+
@@ -1,74 +1,92 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
1
+ @import "tailwindcss";
2
+
3
+ @custom-variant dark (&:is(.dark *));
4
+
5
+ @theme inline {
6
+ --color-background: var(--background);
7
+ --color-foreground: var(--foreground);
8
+ --font-sans: var(--font-geist-sans);
9
+ --font-mono: var(--font-geist-mono);
10
+ --color-sidebar-ring: var(--sidebar-ring);
11
+ --color-sidebar-border: var(--sidebar-border);
12
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
13
+ --color-sidebar-accent: var(--sidebar-accent);
14
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
15
+ --color-sidebar-primary: var(--sidebar-primary);
16
+ --color-sidebar-foreground: var(--sidebar-foreground);
17
+ --color-sidebar: var(--sidebar);
18
+ --color-ring: var(--ring);
19
+ --color-input: var(--input);
20
+ --color-border: var(--border);
21
+ --color-destructive: var(--destructive);
22
+ --color-accent-foreground: var(--accent-foreground);
23
+ --color-accent: var(--accent);
24
+ --color-muted-foreground: var(--muted-foreground);
25
+ --color-muted: var(--muted);
26
+ --color-secondary-foreground: var(--secondary-foreground);
27
+ --color-secondary: var(--secondary);
28
+ --color-primary-foreground: var(--primary-foreground);
29
+ --color-primary: var(--primary);
30
+ --color-popover-foreground: var(--popover-foreground);
31
+ --color-popover: var(--popover);
32
+ --color-card-foreground: var(--card-foreground);
33
+ --color-card: var(--card);
34
+ --radius-sm: calc(var(--radius) - 4px);
35
+ --radius-md: calc(var(--radius) - 2px);
36
+ --radius-lg: var(--radius);
37
+ --radius-xl: calc(var(--radius) + 4px);
38
+ --radius-2xl: calc(var(--radius) + 8px);
39
+ --radius-3xl: calc(var(--radius) + 12px);
40
+ --radius-4xl: calc(var(--radius) + 16px);
41
+ }
42
+
43
+ :root {
44
+ --radius: 0.625rem;
45
+ --background: oklch(1 0 0);
46
+ --foreground: oklch(0.145 0 0);
47
+ --card: oklch(1 0 0);
48
+ --card-foreground: oklch(0.145 0 0);
49
+ --popover: oklch(1 0 0);
50
+ --popover-foreground: oklch(0.145 0 0);
51
+ --primary: oklch(54.61% 0.215 262.88);
52
+ --primary-foreground: oklch(0.985 0 0);
53
+ --secondary: oklch(0.97 0 0);
54
+ --secondary-foreground: oklch(0.205 0 0);
55
+ --muted: oklch(0.97 0 0);
56
+ --muted-foreground: oklch(0.556 0 0);
57
+ --accent: oklch(0.97 0 0);
58
+ --accent-foreground: oklch(0.205 0 0);
59
+ --destructive: oklch(0.577 0.245 27.325);
60
+ --border: oklch(0.922 0 0);
61
+ --input: oklch(0.922 0 0);
62
+ --ring: oklch(0.708 0 0);
63
+ }
64
+
65
+ .dark {
66
+ --background: oklch(0.145 0 0);
67
+ --foreground: oklch(0.985 0 0);
68
+ --card: oklch(0.205 0 0);
69
+ --card-foreground: oklch(0.985 0 0);
70
+ --popover: oklch(0.205 0 0);
71
+ --popover-foreground: oklch(0.985 0 0);
72
+ --primary: oklch(54.61% 0.215 262.88);
73
+ --primary-foreground: oklch(0.205 0 0);
74
+ --secondary: oklch(0.269 0 0);
75
+ --secondary-foreground: oklch(0.985 0 0);
76
+ --muted: oklch(0.269 0 0);
77
+ --muted-foreground: oklch(0.708 0 0);
78
+ --accent: oklch(0.269 0 0);
79
+ --accent-foreground: oklch(0.985 0 0);
80
+ --destructive: oklch(0.704 0.191 22.216);
81
+ --border: oklch(1 0 0 / 10%);
82
+ --input: oklch(1 0 0 / 15%);
83
+ --ring: oklch(0.556 0 0);
84
+ }
4
85
 
5
86
  @layer base {
6
- :root {
7
- --background: 0 0% 100%;
8
- --foreground: 222.2 47.4% 11.2%;
9
-
10
- --card: 0 0% 100%;
11
- --card-foreground: 222.2 47.4% 11.2%;
12
-
13
- --popover: 0 0% 100%;
14
- --popover-foreground: 222.2 47.4% 11.2%;
15
-
16
- --primary: 222.2 47.4% 11.2%;
17
- --primary-foreground: 210 40% 98%;
18
-
19
- --secondary: 210 40% 96.1%;
20
- --secondary-foreground: 222.2 47.4% 11.2%;
21
-
22
- --muted: 210 40% 96.1%;
23
- --muted-foreground: 215.4 16.3% 46.9%;
24
-
25
- --accent: 210 40% 96.1%;
26
- --accent-foreground: 222.2 47.4% 11.2%;
27
-
28
- --destructive: 0 84.2% 60.2%;
29
- --destructive-foreground: 210 40% 98%;
30
-
31
- --border: 214.3 31.8% 91.4%;
32
- --input: 214.3 31.8% 91.4%;
33
- --ring: 222.2 47.4% 11.2%;
34
-
35
- --radius: 0.5rem;
36
- }
37
-
38
- .dark {
39
- --background: 222.2 47.4% 11.2%;
40
- --foreground: 210 40% 98%;
41
-
42
- --card: 222.2 47.4% 11.2%;
43
- --card-foreground: 210 40% 98%;
44
-
45
- --popover: 222.2 47.4% 11.2%;
46
- --popover-foreground: 210 40% 98%;
47
-
48
- --primary: 210 40% 98%;
49
- --primary-foreground: 222.2 47.4% 11.2%;
50
-
51
- --secondary: 217.2 32.6% 17.5%;
52
- --secondary-foreground: 210 40% 98%;
53
-
54
- --muted: 217.2 32.6% 17.5%;
55
- --muted-foreground: 215 20.2% 65.1%;
56
-
57
- --accent: 217.2 32.6% 17.5%;
58
- --accent-foreground: 210 40% 98%;
59
-
60
- --destructive: 0 62.8% 30.6%;
61
- --destructive-foreground: 210 40% 98%;
62
-
63
- --border: 217.2 32.6% 17.5%;
64
- --input: 217.2 32.6% 17.5%;
65
- --ring: 212.7 26.8% 83.9%;
66
- }
67
-
68
87
  * {
69
- @apply border-border;
88
+ @apply border-border outline-ring/50;
70
89
  }
71
-
72
90
  body {
73
91
  @apply bg-background text-foreground;
74
92
  }