@ttianqii/takaui 0.0.8 → 0.0.9
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 +31 -14
- package/dist/takaui.cjs +16 -16
- package/dist/takaui.js +4255 -4569
- package/package.json +2 -1
- package/src/cli/setup.js +26 -38
package/README.md
CHANGED
|
@@ -6,15 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
A modern, customizable React UI component library built with TypeScript, Tailwind CSS, and Radix UI primitives.
|
|
8
8
|
|
|
9
|
-
**Current Version:** 0.0.
|
|
9
|
+
**Current Version:** 0.0.9
|
|
10
10
|
|
|
11
|
-
## ✨ What's New in 0.0.
|
|
11
|
+
## ✨ What's New in 0.0.9
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
- 🔧 **
|
|
16
|
-
-
|
|
17
|
-
-
|
|
13
|
+
- 🎨 **No CSS Imports Needed!** - Works like shadcn/ui with pure Tailwind CSS
|
|
14
|
+
- ⚡ **Zero Bundle Bloat** - No CSS bundled with components
|
|
15
|
+
- 🔧 **Converted to Tailwind** - All components use Tailwind classes (Button, DatePicker, Popover)
|
|
16
|
+
- 🎯 **Original Design Preserved** - Black selected states, all original styling maintained
|
|
17
|
+
- 📦 **Better Tree Shaking** - Set `sideEffects: false` for optimal bundle size
|
|
18
|
+
- 🧹 **Cleaner API** - Removed inline styles and data attributes
|
|
18
19
|
|
|
19
20
|
## 📦 Installation
|
|
20
21
|
|
|
@@ -29,9 +30,10 @@ npx takaui-setup
|
|
|
29
30
|
|
|
30
31
|
This will:
|
|
31
32
|
- ✅ Configure your Tailwind config automatically
|
|
32
|
-
- ✅ Add CSS import to your main file
|
|
33
33
|
- ✅ Verify your setup is correct
|
|
34
34
|
|
|
35
|
+
**No CSS imports needed!** Components work with pure Tailwind CSS.
|
|
36
|
+
|
|
35
37
|
### Manual Installation
|
|
36
38
|
|
|
37
39
|
If you prefer manual setup:
|
|
@@ -50,6 +52,8 @@ pnpm add @ttianqii/takaui
|
|
|
50
52
|
bun add @ttianqii/takaui
|
|
51
53
|
```
|
|
52
54
|
|
|
55
|
+
**That's it!** Just make sure you have Tailwind CSS configured in your project.
|
|
56
|
+
|
|
53
57
|
### Peer Dependencies
|
|
54
58
|
|
|
55
59
|
TakaUI requires React 18+ or React 19+:
|
|
@@ -70,7 +74,18 @@ bun add react react-dom
|
|
|
70
74
|
|
|
71
75
|
### Tailwind CSS Setup
|
|
72
76
|
|
|
73
|
-
TakaUI uses Tailwind CSS for styling.
|
|
77
|
+
**Important:** TakaUI uses Tailwind CSS for styling (no CSS imports needed!). You must have Tailwind CSS configured in your project.
|
|
78
|
+
|
|
79
|
+
#### 1. Install Tailwind CSS (if not already installed)
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
npm install -D tailwindcss postcss autoprefixer
|
|
83
|
+
npx tailwindcss init -p
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
#### 2. Configure Tailwind
|
|
87
|
+
|
|
88
|
+
Add TakaUI to your `tailwind.config.js` content paths:
|
|
74
89
|
|
|
75
90
|
```js
|
|
76
91
|
/** @type {import('tailwindcss').Config} */
|
|
@@ -87,15 +102,17 @@ export default {
|
|
|
87
102
|
}
|
|
88
103
|
```
|
|
89
104
|
|
|
90
|
-
|
|
105
|
+
#### 3. Add Tailwind directives
|
|
91
106
|
|
|
92
|
-
|
|
107
|
+
In your main CSS file (e.g., `src/index.css`):
|
|
93
108
|
|
|
94
|
-
```
|
|
95
|
-
|
|
109
|
+
```css
|
|
110
|
+
@tailwind base;
|
|
111
|
+
@tailwind components;
|
|
112
|
+
@tailwind utilities;
|
|
96
113
|
```
|
|
97
114
|
|
|
98
|
-
|
|
115
|
+
**That's it!** No CSS imports needed from TakaUI. 🎉
|
|
99
116
|
|
|
100
117
|
## 🚀 Quick Start
|
|
101
118
|
|