@raydenui/ui 0.4.0 → 0.4.1
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 +50 -8
- package/package.json +13 -9
package/README.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
<picture>
|
|
2
|
+
<source media="(prefers-color-scheme: dark)" srcset="./public/MacBook Air - 17.png">
|
|
3
|
+
<source media="(prefers-color-scheme: light)" srcset="./public/MacBook Air - 17.png">
|
|
4
|
+
<img alt="Rayden UI - Build UI faster. A React UI system designed for humans and AI." src="./public/MacBook Air - 17.png" width="100%">
|
|
5
|
+
</picture>
|
|
6
|
+
|
|
1
7
|
# Rayden UI
|
|
2
8
|
|
|
3
|
-
A modern, accessible React component library built with Tailwind CSS v4. Rayden UI brings the [Rayna UI](https://www.
|
|
9
|
+
A modern, accessible React component library built with Tailwind CSS v4. Rayden UI brings the [Rayna UI](https://www.raynaui.com/) Figma design system to life with pixel-perfect React components.
|
|
4
10
|
|
|
5
11
|
[](https://www.npmjs.com/package/@raydenui/ui)
|
|
6
12
|
[](https://opensource.org/licenses/MIT)
|
|
@@ -163,7 +169,11 @@ function App() {
|
|
|
163
169
|
The `@raydenui/ai` package enables LLMs to reliably generate Rayden UI code without hallucination.
|
|
164
170
|
|
|
165
171
|
```bash
|
|
166
|
-
|
|
172
|
+
# Run directly with npx (no install needed)
|
|
173
|
+
npx @raydenui/ai
|
|
174
|
+
|
|
175
|
+
# Or install globally
|
|
176
|
+
npm install -g @raydenui/ai
|
|
167
177
|
```
|
|
168
178
|
|
|
169
179
|
### Features
|
|
@@ -173,15 +183,47 @@ pnpm add @raydenui/ai
|
|
|
173
183
|
- **Composition Rules** — Guidelines for combining components correctly
|
|
174
184
|
- **MCP Server** — Model Context Protocol server for AI assistants
|
|
175
185
|
|
|
176
|
-
###
|
|
186
|
+
### Claude Desktop Integration
|
|
187
|
+
|
|
188
|
+
Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
189
|
+
|
|
190
|
+
```json
|
|
191
|
+
{
|
|
192
|
+
"mcpServers": {
|
|
193
|
+
"rayden-ai": {
|
|
194
|
+
"command": "npx",
|
|
195
|
+
"args": ["@raydenui/ai"]
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Claude Code Integration
|
|
202
|
+
|
|
203
|
+
Add to your project's `.mcp.json`:
|
|
204
|
+
|
|
205
|
+
```json
|
|
206
|
+
{
|
|
207
|
+
"mcpServers": {
|
|
208
|
+
"rayden-ai": {
|
|
209
|
+
"command": "npx",
|
|
210
|
+
"args": ["@raydenui/ai"]
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
```
|
|
177
215
|
|
|
178
|
-
|
|
216
|
+
### Programmatic Usage
|
|
179
217
|
|
|
180
218
|
```tsx
|
|
181
|
-
import {
|
|
219
|
+
import { getComponentManifest, getAllManifests } from "@raydenui/ai/manifests";
|
|
220
|
+
import { tokens } from "@raydenui/ai/tokens";
|
|
221
|
+
|
|
222
|
+
// Get all component definitions
|
|
223
|
+
const manifests = getAllManifests();
|
|
182
224
|
|
|
183
|
-
//
|
|
184
|
-
|
|
225
|
+
// Get a specific component
|
|
226
|
+
const buttonManifest = getComponentManifest("Button");
|
|
185
227
|
```
|
|
186
228
|
|
|
187
229
|
See the full [AI Integration Guide](./docs/rayden-ai.md) for setup instructions.
|
|
@@ -309,4 +351,4 @@ MIT License - see [LICENSE](./LICENSE) for details.
|
|
|
309
351
|
|
|
310
352
|
---
|
|
311
353
|
|
|
312
|
-
Made with care for the React community.
|
|
354
|
+
Made with care for the React community. By Ovalay Studios (https://ovalay.studio)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raydenui/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "A modern React UI component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -26,6 +26,14 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsup && npx @tailwindcss/cli -i src/styles/globals.css -o dist/styles.css --minify",
|
|
31
|
+
"dev": "tsup --watch",
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"storybook": "storybook dev -p 6006",
|
|
34
|
+
"build-storybook": "storybook build",
|
|
35
|
+
"chromatic": "npx chromatic --project-token=chpt_22e6810e48a2640"
|
|
36
|
+
},
|
|
29
37
|
"peerDependencies": {
|
|
30
38
|
"react": ">=18",
|
|
31
39
|
"react-dom": ">=18"
|
|
@@ -42,6 +50,8 @@
|
|
|
42
50
|
"*.css"
|
|
43
51
|
],
|
|
44
52
|
"devDependencies": {
|
|
53
|
+
"@chromatic-com/storybook": "^5.0.1",
|
|
54
|
+
"@storybook/addon-a11y": "^10.2.19",
|
|
45
55
|
"@storybook/addon-docs": "^10.2.19",
|
|
46
56
|
"@storybook/addon-vitest": "^10.2.19",
|
|
47
57
|
"@storybook/react": "^10.2.19",
|
|
@@ -54,6 +64,7 @@
|
|
|
54
64
|
"@vitest/browser-playwright": "^4.1.0",
|
|
55
65
|
"@vitest/coverage-v8": "^4.1.0",
|
|
56
66
|
"autoprefixer": "^10.4.27",
|
|
67
|
+
"chromatic": "^15.2.0",
|
|
57
68
|
"clsx": "^2.1.1",
|
|
58
69
|
"playwright": "^1.58.2",
|
|
59
70
|
"postcss": "^8.5.8",
|
|
@@ -66,12 +77,5 @@
|
|
|
66
77
|
"typescript": "^5.9.3",
|
|
67
78
|
"vite": "^7.3.1",
|
|
68
79
|
"vitest": "^4.1.0"
|
|
69
|
-
},
|
|
70
|
-
"scripts": {
|
|
71
|
-
"build": "tsup && npx @tailwindcss/cli -i src/styles/globals.css -o dist/styles.css --minify",
|
|
72
|
-
"dev": "tsup --watch",
|
|
73
|
-
"typecheck": "tsc --noEmit",
|
|
74
|
-
"storybook": "storybook dev -p 6006",
|
|
75
|
-
"build-storybook": "storybook build"
|
|
76
80
|
}
|
|
77
|
-
}
|
|
81
|
+
}
|