hazo_ui 2.2.2 → 2.2.6
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 +35 -0
- package/dist/index.cjs +4762 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +88 -13
- package/dist/index.d.ts +88 -13
- package/dist/index.js +4751 -35
- package/dist/index.js.map +1 -1
- package/dist/styles.css +178 -0
- package/package.json +44 -3
- package/tailwind.preset.js +90 -0
package/README.md
CHANGED
|
@@ -8,6 +8,41 @@ A set of UI components for common interaction elements in a SaaS app.
|
|
|
8
8
|
npm install hazo_ui
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
## Quick Setup (Required)
|
|
12
|
+
|
|
13
|
+
hazo_ui uses Tailwind CSS and CSS variables for styling. Follow these two steps:
|
|
14
|
+
|
|
15
|
+
### Step 1: Import the CSS variables
|
|
16
|
+
|
|
17
|
+
Add to your app's entry point (e.g., `layout.tsx`, `_app.tsx`, or `main.tsx`):
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
import 'hazo_ui/styles.css';
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Step 2: Configure Tailwind
|
|
24
|
+
|
|
25
|
+
Update your `tailwind.config.ts`:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import hazoUiPreset from 'hazo_ui/tailwind-preset';
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
presets: [hazoUiPreset],
|
|
32
|
+
content: [
|
|
33
|
+
'./src/**/*.{js,ts,jsx,tsx}',
|
|
34
|
+
'./node_modules/hazo_ui/dist/**/*.js', // Required: scan hazo_ui components
|
|
35
|
+
],
|
|
36
|
+
// ... your other config
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
That's it! The components will now render correctly with proper styling.
|
|
41
|
+
|
|
42
|
+
> **Note**: If you already have shadcn/ui configured with CSS variables, you may skip Step 1 as the variables are compatible.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
11
46
|
## Components
|
|
12
47
|
|
|
13
48
|
### Component Overview
|