@transtyle/exporter-radix 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 +40 -0
- package/package.json +6 -4
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @transtyle/exporter-radix
|
|
2
|
+
|
|
3
|
+
Radix Colors 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 `radix-colors.transtyle.css` — Radix-shaped 12-step scales per role, both modes.
|
|
13
|
+
|
|
14
|
+
This target doubles as the semantic catalog's hardest acceptance test. Radix's twelve steps
|
|
15
|
+
_are_ the role grid, numbered instead of named, and they were designed by someone else: if
|
|
16
|
+
each step maps cleanly from a catalog cell that already existed, the grid is a universal
|
|
17
|
+
projection rather than a shape invented to fit one framework. Only two of twelve need a
|
|
18
|
+
fresh mix (steps 2 and 6), and both are reported as `approximated`.
|
|
19
|
+
|
|
20
|
+
## Use
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm i -D @transtyle/cli @transtyle/exporter-radix
|
|
24
|
+
npx transtyle add radix # adds the target to transtyle.config.json
|
|
25
|
+
npx transtyle build radix
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The CLI resolves exporters **from your project first**, so this package does not have to be
|
|
29
|
+
a dependency of the CLI itself. Every build writes a `usage.md` next to the artifacts
|
|
30
|
+
explaining how to wire them into that ecosystem, and a `report.json` recording where every
|
|
31
|
+
value came from and what the target could not express.
|
|
32
|
+
|
|
33
|
+
## Documentation
|
|
34
|
+
|
|
35
|
+
- [Radix exporter guide](https://transtyle.github.io/transtyle/docs/exporter-radix/)
|
|
36
|
+
- [The role grid](https://transtyle.github.io/transtyle/docs/language/)
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
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-radix",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
4
|
"description": "Transtyle exporter for Radix Colors 12-step scales — the role grid's acceptance test.",
|
|
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",
|
|
@@ -30,13 +30,15 @@
|
|
|
30
30
|
"files": [
|
|
31
31
|
"src"
|
|
32
32
|
],
|
|
33
|
-
"publishConfig": {
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
34
36
|
"repository": {
|
|
35
37
|
"type": "git",
|
|
36
38
|
"url": "git+https://github.com/transtyle/transtyle.git",
|
|
37
39
|
"directory": "packages/exporter-radix"
|
|
38
40
|
},
|
|
39
|
-
"homepage": "https://github.
|
|
41
|
+
"homepage": "https://transtyle.github.io/transtyle/docs/exporter-radix/",
|
|
40
42
|
"bugs": "https://github.com/transtyle/transtyle/issues",
|
|
41
43
|
"license": "MIT"
|
|
42
44
|
}
|