7onic 0.1.13 → 0.1.14

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/dist/index.js +7221 -360
  2. package/llms.txt +9 -10
  3. package/package.json +1 -1
package/llms.txt CHANGED
@@ -4,6 +4,12 @@
4
4
  > Source: https://7onic.design
5
5
  > npm: https://www.npmjs.com/package/7onic
6
6
 
7
+ ⚠️ **DO NOT GUESS** — CLI behavior + install procedures evolve with each version. For up-to-date documentation, always defer to the live pages:
8
+
9
+ - **CLI page (SSOT)**: https://7onic.design/components/cli
10
+ - **Install page**: https://7onic.design/components/installation
11
+ - **Tailwind CSS official**: https://tailwindcss.com/docs/installation
12
+
7
13
  ## Quick Start
8
14
 
9
15
  ```bash
@@ -15,21 +21,14 @@ npx 7onic add button card input
15
21
 
16
22
  ### init
17
23
 
18
- Initialize 7onic in your project. Creates `7onic.json`, installs base dependencies, sets up CSS token imports and `cn()` utility.
24
+ Initialize 7onic in your project (creates `7onic.json`, installs base dependencies, sets up CSS token imports and `cn()` utility).
19
25
 
20
26
  ```bash
21
27
  npx 7onic init
22
28
  npx 7onic init --tailwind v3 --yes # Explicit v3, skip prompts
23
29
  ```
24
30
 
25
- **What it does:**
26
- 1. Detects Tailwind version (v3: config file exists, v4: no config) — or uses `--tailwind` flag
27
- 2. Detects package manager (npm/pnpm/yarn/bun)
28
- 3. **Vite projects**: auto-configures `@/` path alias — patches `tsconfig.app.json` (JSONC-safe) and `vite.config.ts` (adds `import path` + `resolve.alias`), installs `@types/node`; **removes `create vite` boilerplate CSS blocks** from `src/index.css` + `src/App.css` (unlayered rules like `:root { font-family: system-ui }`, `button { color: #1a1a1a }` that override 7onic tokens) — prompts user, creates `.bak` backup
29
- 4. Installs: `@7onic-ui/tokens`, `lucide-react`, `clsx`, `tailwind-merge`, `class-variance-authority`
30
- 5. Creates/updates CSS file with token imports (v4: auto-injects `@import "tailwindcss"` if missing)
31
- 6. Creates `cn()` utility at configured path
32
- 7. Writes `7onic.json` config
31
+ The exact init steps are version-sensitive — always defer to the CLI / install pages above.
33
32
 
34
33
  **Requirements:**
35
34
  - TypeScript project (tsconfig.json required)
@@ -61,7 +60,7 @@ npx 7onic add card --overwrite # Overwrite existing files
61
60
  "$schema": "https://7onic.design/schema/7onic.json",
62
61
  "tailwind": {
63
62
  "version": 3,
64
- "config": "tailwind.config.ts",
63
+ "config": "tailwind.config.js",
65
64
  "css": "src/app/globals.css"
66
65
  },
67
66
  "aliases": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "7onic",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "CLI for adding 7onic design system components to your project",
5
5
  "bin": {
6
6
  "7onic": "./dist/index.js"