@alien6-studio/elea-tokens 0.1.0 → 0.1.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 +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
Design tokens of the Elea design system. The source is a [DTCG](https://tr.designtokens.org/format/)
|
|
4
4
|
JSON file; the package resolves its aliases and emits every form a project needs.
|
|
5
5
|
|
|
6
|
+
The JavaScript entry points are ES modules. For Jest with `next/jest`, add `@alien6-studio/elea-tokens` to `transpilePackages` when testing a JavaScript import such as `@alien6-studio/elea-tokens/brand`.
|
|
7
|
+
|
|
6
8
|
## What you get
|
|
7
9
|
|
|
8
10
|
- `tokens/elea.tokens.json` and `tokens/elea.dark.tokens.json`: the light and dark source files
|
|
@@ -66,8 +68,9 @@ import elea from "@alien6-studio/elea-tokens/tailwind";
|
|
|
66
68
|
export default { content: ["./src/**/*.{ts,tsx}"], presets: [elea] };
|
|
67
69
|
```
|
|
68
70
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
On Node.js versions that support loading ES modules with `require()`, a CommonJS config can use
|
|
72
|
+
`const { eleaPreset } = require("@alien6-studio/elea-tokens/tailwind")` and `presets: [eleaPreset]`.
|
|
73
|
+
Tailwind v3 utilities are in no cascade layer, so a utility on an Elea component wins wherever `elea.css` is
|
|
71
74
|
imported.
|
|
72
75
|
|
|
73
76
|
## Projects built on shadcn/ui
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alien6-studio/elea-tokens",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Elea design tokens: DTCG source, CSS custom properties, Tailwind v3 preset and v4 theme, shadcn/ui aliases and TypeScript constants",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|