@7onic-ui/react 0.3.5 โ 0.3.7
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 +73 -17
- package/llms.txt +544 -512
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
| **๐งฉ** | **shadcn freedom + MUI convenience** | shadcn's customization with none of its missing features. MUI's built-in power with none of its styling constraints. Both, by design. |
|
|
29
29
|
| **โก** | **npm or CLI โ your choice** | `npm install` for packages, `npx 7onic add` for local copy. Same components, two workflows. |
|
|
30
30
|
| **๐** | **Only Tailwind v3+v4 dual support** | The ecosystem's only design system supporting both Tailwind versions. Same tokens, same DX. |
|
|
31
|
-
| **๐ช** | **Framework-aware setup** | Next.js
|
|
31
|
+
| **๐ช** | **Framework-aware setup** | Detects Next.js / Vite, TypeScript, and Tailwind โ exits with a clear error if anything's missing. Auto-cleans Vite boilerplate (`.bak` backup), auto-wraps `*` reset in `@layer base` for Next.js + Tailwind v4. No Provider wrapper, no `globals.css` replacement. |
|
|
32
32
|
| **๐ฎ** | **Built-in playground** | Interactive props editor + live code generation in docs. No Storybook setup needed. |
|
|
33
33
|
| **๐** | **Dark mode, zero config** | Light/dark themes built into tokens. System preference detection out of the box. |
|
|
34
34
|
| **๐** | **Framework-agnostic tokens** | Tokens ship as pure CSS variables. Use with Vue, Angular, Svelte, or vanilla CSS โ no React required. |
|
|
35
|
-
| **๐ค** | **AI-ready** | Ships with `llms.txt` โ AI builds with design tokens, not hardcoded values. Zero config for Claude, Cursor, Copilot. |
|
|
35
|
+
| **๐ค** | **AI-ready** | Ships with `llms.txt` and an MCP server โ AI builds with design tokens, not hardcoded values, and `validate_code` checks the result. Zero config for Claude, Cursor, Copilot. |
|
|
36
36
|
| **๐** | **CJK-first typography** | Type scale tuned for Japanese kanji, Korean hangul, and Latin โ not an afterthought. |
|
|
37
37
|
| **๐** | **Supply chain verified** | Cryptographically signed releases (npm provenance), automated vulnerability scanning in CI, reproducible builds. You can verify every package came from this exact GitHub commit โ not a hijacked account. |
|
|
38
38
|
| **๐ฅ** | **Relentlessly updated** | Actively maintained with continuous research, refinement, and new features. Not abandoned โ ever. |
|
|
@@ -47,19 +47,24 @@
|
|
|
47
47
|
npm install @7onic-ui/react @7onic-ui/tokens
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
npx 7onic init
|
|
54
|
-
npx 7onic add button card input
|
|
55
|
-
```
|
|
50
|
+
Then add tokens to your CSS:
|
|
56
51
|
|
|
57
52
|
<details>
|
|
58
53
|
<summary><strong>Tailwind v4</strong></summary>
|
|
59
54
|
|
|
60
55
|
```css
|
|
56
|
+
/* app/globals.css โ Next.js */
|
|
57
|
+
@import "tailwindcss";
|
|
58
|
+
@import '@7onic-ui/tokens/tailwind/v4.css';
|
|
59
|
+
|
|
60
|
+
@source "../node_modules/@7onic-ui/react/dist";
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
```css
|
|
64
|
+
/* src/index.css โ Vite */
|
|
61
65
|
@import "tailwindcss";
|
|
62
66
|
@import '@7onic-ui/tokens/tailwind/v4.css';
|
|
67
|
+
|
|
63
68
|
@source "../node_modules/@7onic-ui/react/dist";
|
|
64
69
|
```
|
|
65
70
|
</details>
|
|
@@ -69,16 +74,41 @@ npx 7onic add button card input
|
|
|
69
74
|
|
|
70
75
|
```css
|
|
71
76
|
@import '@7onic-ui/tokens/css/all.css';
|
|
77
|
+
|
|
72
78
|
@tailwind base;
|
|
73
79
|
@tailwind components;
|
|
74
80
|
@tailwind utilities;
|
|
75
81
|
```
|
|
76
82
|
|
|
77
83
|
```js
|
|
78
|
-
// tailwind.config.js
|
|
84
|
+
// tailwind.config.js โ Next.js
|
|
85
|
+
/** @type {import('tailwindcss').Config} */
|
|
79
86
|
module.exports = {
|
|
80
|
-
presets: [
|
|
81
|
-
|
|
87
|
+
presets: [
|
|
88
|
+
require('@7onic-ui/tokens/tailwind/v3-preset'),
|
|
89
|
+
],
|
|
90
|
+
content: [
|
|
91
|
+
'./node_modules/@7onic-ui/react/dist/**/*.{js,mjs}',
|
|
92
|
+
'./app/**/*.{js,ts,jsx,tsx,mdx}',
|
|
93
|
+
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
|
|
94
|
+
'./components/**/*.{js,ts,jsx,tsx,mdx}',
|
|
95
|
+
'./src/**/*.{js,ts,jsx,tsx,mdx}',
|
|
96
|
+
],
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
```js
|
|
101
|
+
// tailwind.config.js โ Vite
|
|
102
|
+
/** @type {import('tailwindcss').Config} */
|
|
103
|
+
export default {
|
|
104
|
+
presets: [
|
|
105
|
+
require('@7onic-ui/tokens/tailwind/v3-preset'),
|
|
106
|
+
],
|
|
107
|
+
content: [
|
|
108
|
+
'./node_modules/@7onic-ui/react/dist/**/*.{js,mjs}',
|
|
109
|
+
'./index.html',
|
|
110
|
+
'./src/**/*.{js,ts,jsx,tsx}',
|
|
111
|
+
],
|
|
82
112
|
}
|
|
83
113
|
```
|
|
84
114
|
</details>
|
|
@@ -97,7 +127,18 @@ module.exports = {
|
|
|
97
127
|
```
|
|
98
128
|
</details>
|
|
99
129
|
|
|
100
|
-
|
|
130
|
+
<br>
|
|
131
|
+
|
|
132
|
+
**Option B โ CLI (local file copy)**
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
npx 7onic init # detects framework, installs deps, configures CSS automatically
|
|
136
|
+
npx 7onic add button card input
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
<br>
|
|
140
|
+
|
|
141
|
+
**Use components:**
|
|
101
142
|
|
|
102
143
|
```tsx
|
|
103
144
|
import { Button, Card, CardHeader, CardTitle, CardContent } from '@7onic-ui/react'
|
|
@@ -128,7 +169,7 @@ import { Chart, type ChartConfig } from '@7onic-ui/react/chart' // charts: sepa
|
|
|
128
169
|
| **Navigation** | Breadcrumb, NavigationMenu, Pagination | 3 |
|
|
129
170
|
| **AI** | TypingIndicator, QuickReply, ChatInput, ChatMessage | 4 |
|
|
130
171
|
|
|
131
|
-
**42 components** โ all with CVA variants, controlled + uncontrolled modes, `forwardRef`, and **Named exports** (`CardHeader`, `ModalContent`, `TabsList`, ...). If you prefer dot-notation (`<Card.Header>`), drop in a
|
|
172
|
+
**42 components** โ all with CVA variants, controlled + uncontrolled modes, `forwardRef`, and **Named exports** (`CardHeader`, `ModalContent`, `TabsList`, ...). If you prefer dot-notation (`<Card.Header>`), drop in a Compound Recipe wrapper โ opt-in, Client Components only.
|
|
132
173
|
|
|
133
174
|
---
|
|
134
175
|
|
|
@@ -232,7 +273,21 @@ Once loaded, AI automatically uses `bg-primary` instead of `bg-blue-500`, spacin
|
|
|
232
273
|
|
|
233
274
|
Works with Claude Code, Cursor, GitHub Copilot, ChatGPT, and any AI tool that reads text files.
|
|
234
275
|
|
|
235
|
-
|
|
276
|
+
### MCP Server
|
|
277
|
+
|
|
278
|
+
For agents that speak MCP, 7onic also ships a stdio server: token search, the full
|
|
279
|
+
component catalog, layout recipes, and `validate_code` rule checking โ with queries
|
|
280
|
+
and violation messages in English, Japanese, and Korean. On Claude Code it installs
|
|
281
|
+
as a plugin in one command (no `npm install`, ~3 MB):
|
|
282
|
+
|
|
283
|
+
```bash
|
|
284
|
+
claude plugin marketplace add itonys/7onic && claude plugin install 7onic-design@7onic
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
Other MCP clients: clone this repo and point your MCP config at `mcp/dist/index.js`
|
|
288
|
+
(the bundle is committed โ nothing to build).
|
|
289
|
+
|
|
290
|
+
**Setup guides**: [Tokens](https://7onic.design/design-tokens/ai) ยท [Components](https://7onic.design/components/ai) ยท [MCP Server](https://7onic.design/components/mcp)
|
|
236
291
|
|
|
237
292
|
---
|
|
238
293
|
|
|
@@ -259,10 +314,11 @@ Works with Claude Code, Cursor, GitHub Copilot, ChatGPT, and any AI tool that re
|
|
|
259
314
|
- [x] Automated doc verification (8 checks, AST-powered, blocks publish on error)
|
|
260
315
|
- [x] Automated component verification (7 checks โ hardcoded colors, tokens, dark mode, dead code)
|
|
261
316
|
- [x] Multilingual documentation โ English, Japanese, Korean (powered by next-intl)
|
|
262
|
-
- [x] npm package distribution โ `@7onic-ui/react` + `@7onic-ui/tokens` v0.3.
|
|
317
|
+
- [x] npm package distribution โ `@7onic-ui/react` + `@7onic-ui/tokens` v0.3.7
|
|
263
318
|
- [x] AI integration โ `llms.txt` standard, setup guides for Claude Code / Cursor / Copilot / ChatGPT
|
|
319
|
+
- [x] MCP server โ token search, component catalog, layout recipes, `validate_code` rule checking (en/ja/ko), Claude Code plugin one-command install
|
|
264
320
|
- [x] `npx 7onic add` CLI (shadcn-style) โ source copy with dependency resolution
|
|
265
|
-
- [x] `npx 7onic init`
|
|
321
|
+
- [x] `npx 7onic init` full workflow โ framework/TS/Tailwind detection (abort if missing), Vite `@/` alias auto-configure, base deps install, CSS token import, Vite boilerplate cleanup (`.bak` backup), Next.js+v4 `*` reset auto-wrap, `cn()` + `7onic.json` generation
|
|
266
322
|
- [x] Technical blog โ [blog.7onic.design](https://blog.7onic.design) ("Design to Code" series)
|
|
267
323
|
- [x] Enterprise-grade supply chain security โ cryptographically signed releases (npm provenance), automated vulnerability scanning on every build, reproducible installs. Protection against npm package hijacking attacks (like the 2026 axios incident)
|
|
268
324
|
- [ ] Theme Customizer โ live palette preview + CSS variable export
|
|
@@ -288,5 +344,5 @@ MIT
|
|
|
288
344
|
<p align="center">
|
|
289
345
|
<strong>One JSON, every format โ from Figma to production.</strong><br>
|
|
290
346
|
Independently built.<br>
|
|
291
|
-
<sub>Last updated: 2026-
|
|
347
|
+
<sub>Last updated: 2026-10-07 (v0.3.7)</sub>
|
|
292
348
|
</p>
|