@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.
Files changed (3) hide show
  1. package/README.md +73 -17
  2. package/llms.txt +544 -512
  3. 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 15 works out of the box. `npx 7onic init` auto-cleans Vite template boilerplate (or delete a few blocks manually). No Provider wrapper, no `globals.css` replacement, no body class setup. |
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
- **Option B โ€” CLI (local file copy)**
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: [require('@7onic-ui/tokens/tailwind/v3-preset')],
81
- content: ['./node_modules/@7onic-ui/react/dist/**/*.{js,mjs}'],
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
- Use components:
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 [Compound Recipe wrapper](docs/decisions/NAMED-PRIMARY-MIGRATION.md) โ€” opt-in, Client Components only.
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
- **Setup guides**: [Tokens](https://7onic.design/design-tokens/ai) ยท [Components](https://7onic.design/components/ai)
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.5
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` Vite support โ€” `tsconfig.app.json` detection, `@import "tailwindcss"` + `@source` auto-inject, `@/` path alias auto-configure
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-04-28 (v0.3.5)</sub>
347
+ <sub>Last updated: 2026-10-07 (v0.3.7)</sub>
292
348
  </p>