@transtyle/exporter-shadcn 0.1.0-alpha.0 → 0.1.0-alpha.2
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/README.md +41 -0
- package/package.json +6 -4
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# @transtyle/exporter-shadcn
|
|
2
|
+
|
|
3
|
+
shadcn/ui backend for **[Transtyle](https://transtyle.github.io/transtyle/)**, a design system compiler.
|
|
4
|
+
|
|
5
|
+
> [!WARNING]
|
|
6
|
+
> **Alpha — experimental.** Breaking changes ship without a deprecation cycle: the token
|
|
7
|
+
> vocabulary, the generated output, the config format and the CLI surface can each change
|
|
8
|
+
> between alpha releases. Pin an exact version, and treat generated files as disposable
|
|
9
|
+
> output you regenerate — never as something to hand-edit and keep.
|
|
10
|
+
> ([why](https://github.com/transtyle/transtyle/blob/main/docs/adr/0010-pre-release-breaking-changes.md))
|
|
11
|
+
|
|
12
|
+
Emits `globals.transtyle.css` — light and dark, `@theme inline`, OKLCH — which drops into
|
|
13
|
+
any Tailwind v4 shadcn project.
|
|
14
|
+
|
|
15
|
+
Two era profiles, selected by `options.era` in `transtyle.config.json` (never a CLI flag,
|
|
16
|
+
so a build is reproducible from the config alone):
|
|
17
|
+
|
|
18
|
+
- **`tailwind-v4`** (default) — OKLCH custom properties and `@theme inline`
|
|
19
|
+
- **`tailwind-v3`** — HSL channel triplets plus a `tailwind.theme.transtyle.cjs` snippet
|
|
20
|
+
|
|
21
|
+
## Use
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm i -D @transtyle/cli @transtyle/exporter-shadcn
|
|
25
|
+
npx transtyle add shadcn # adds the target to transtyle.config.json
|
|
26
|
+
npx transtyle build shadcn
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The CLI resolves exporters **from your project first**, so this package does not have to be
|
|
30
|
+
a dependency of the CLI itself. Every build writes a `usage.md` next to the artifacts
|
|
31
|
+
explaining how to wire them into that ecosystem, and a `report.json` recording where every
|
|
32
|
+
value came from and what the target could not express.
|
|
33
|
+
|
|
34
|
+
## Documentation
|
|
35
|
+
|
|
36
|
+
- [shadcn exporter guide](https://transtyle.github.io/transtyle/docs/exporter-shadcn/)
|
|
37
|
+
- [Getting started](https://transtyle.github.io/transtyle/docs/getting-started/)
|
|
38
|
+
|
|
39
|
+
## License
|
|
40
|
+
|
|
41
|
+
MIT — part of the [Transtyle](https://github.com/transtyle/transtyle) monorepo.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transtyle/exporter-shadcn",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
4
|
"description": "Transtyle exporter for shadcn/ui (tailwind-v4 era).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
".": "./src/index.js"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@transtyle/ir": "0.1.0-alpha.
|
|
11
|
+
"@transtyle/ir": "0.1.0-alpha.2"
|
|
12
12
|
},
|
|
13
13
|
"transtyle": {
|
|
14
14
|
"kind": "exporter",
|
|
@@ -31,13 +31,15 @@
|
|
|
31
31
|
"files": [
|
|
32
32
|
"src"
|
|
33
33
|
],
|
|
34
|
-
"publishConfig": {
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
},
|
|
35
37
|
"repository": {
|
|
36
38
|
"type": "git",
|
|
37
39
|
"url": "git+https://github.com/transtyle/transtyle.git",
|
|
38
40
|
"directory": "packages/exporter-shadcn"
|
|
39
41
|
},
|
|
40
|
-
"homepage": "https://github.
|
|
42
|
+
"homepage": "https://transtyle.github.io/transtyle/docs/exporter-shadcn/",
|
|
41
43
|
"bugs": "https://github.com/transtyle/transtyle/issues",
|
|
42
44
|
"license": "MIT"
|
|
43
45
|
}
|