@cyclone-ui/tokens 0.3.55 → 0.3.56
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 +12 -0
- package/dist/css/tokens-dark-dimmed.css +1469 -0
- package/dist/css/tokens-dark-high-contrast.css +1508 -0
- package/dist/css/tokens-dark.css +1467 -0
- package/dist/css/tokens-light-dimmed.css +1471 -0
- package/dist/css/tokens-light-high-contrast.css +1484 -0
- package/dist/css/tokens-light.css +1469 -0
- package/package.json +3 -2
- package/tailwind.css +1125 -0
package/README.md
CHANGED
|
@@ -70,6 +70,8 @@ A package containing the Cyclone UI default design tokens
|
|
|
70
70
|
- The generated Tamagui configuration (`light`, `dark`, and nested semantic
|
|
71
71
|
themes)
|
|
72
72
|
- CSS theme files for light, dark, dimmed, and high-contrast themes
|
|
73
|
+
- A Tailwind CSS v4 theme (`@cyclone-ui/tokens/tailwind.css`) that maps
|
|
74
|
+
Cyclone themes and tokens onto Tailwind classes
|
|
73
75
|
- The primitive and semantic design token JSON sources
|
|
74
76
|
|
|
75
77
|
## Installing
|
|
@@ -106,6 +108,16 @@ Re-export the generated Tamagui config from your own `tamagui.config.ts`:
|
|
|
106
108
|
export { config } from "@cyclone-ui/tokens/tamagui";
|
|
107
109
|
```
|
|
108
110
|
|
|
111
|
+
In an app that uses Tailwind CSS v4, import the Cyclone theme before Tailwind,
|
|
112
|
+
and turn on the `tailwind` option of `@cyclone-ui/vite` or `@cyclone-ui/nextjs`:
|
|
113
|
+
|
|
114
|
+
```css
|
|
115
|
+
@import "@cyclone-ui/tokens/tailwind.css";
|
|
116
|
+
@import "tailwindcss";
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
See [Use Tailwind CSS with Cyclone UI](../../docs/packages/guides/tailwind.md).
|
|
120
|
+
|
|
109
121
|
Razorwind generates most files in this package. Do not edit them by hand. Change
|
|
110
122
|
the token JSON files in `src/tokens`, then run
|
|
111
123
|
`pnpm nx run monorepo:generate-themes`. See the
|