@7onic-ui/tokens 0.2.3 → 0.2.4
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/llms.txt +7 -2
- package/package.json +1 -1
package/llms.txt
CHANGED
|
@@ -45,7 +45,7 @@ npm install @7onic-ui/react @7onic-ui/tokens lucide-react
|
|
|
45
45
|
|
|
46
46
|
**New project (Tailwind v4):**
|
|
47
47
|
```css
|
|
48
|
-
/* globals.css — ALL imports are required, do not skip any */
|
|
48
|
+
/* globals.css (Next.js) or src/index.css (Vite) — ALL imports are required, do not skip any */
|
|
49
49
|
@import "tailwindcss";
|
|
50
50
|
@import "@7onic-ui/tokens/css/variables.css";
|
|
51
51
|
@import "@7onic-ui/tokens/css/themes/light.css";
|
|
@@ -53,6 +53,8 @@ npm install @7onic-ui/react @7onic-ui/tokens lucide-react
|
|
|
53
53
|
@import "@7onic-ui/tokens/tailwind/v4-theme.css";
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
+
> **Vite + Tailwind v4**: When using CLI (`npx 7onic`), `@import "tailwindcss"` is auto-injected if not present, and `@source "./components/ui"` is auto-injected after `add`. No manual setup needed.
|
|
57
|
+
|
|
56
58
|
**Existing project with Tailwind v3** (detect from tailwind.config.js):
|
|
57
59
|
```css
|
|
58
60
|
/* globals.css */
|
|
@@ -83,7 +85,10 @@ module.exports = {
|
|
|
83
85
|
**2-4. Apply user's answers:**
|
|
84
86
|
|
|
85
87
|
- Dark mode = yes → implement dark mode toggle (see below)
|
|
86
|
-
- Custom font → load font
|
|
88
|
+
- Custom font → load font:
|
|
89
|
+
- **Next.js**: use `next/font/google`
|
|
90
|
+
- **Vite / Remix**: use Fontsource (`npm install @fontsource/inter`, then `import '@fontsource/inter/400.css'` in `src/main.tsx`) or Google Fonts CDN
|
|
91
|
+
- Then set `--font-family-sans` in CSS
|
|
87
92
|
- Locale includes Japanese → load Noto Sans JP font
|
|
88
93
|
- Locale includes Korean → load Noto Sans KR font
|
|
89
94
|
|