@cyberbloxai/ui-kit 0.1.0 → 0.1.2
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 +85 -44
- package/dist/favicon.ico +0 -0
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -1,73 +1,114 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CyberBlox UI Kit
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Production-ready component library built with Radix UI and Tailwind CSS, developed by **Abhishek John Charan**.
|
|
4
4
|
|
|
5
|
-
**
|
|
5
|
+
**Live Preview**: [https://ui.cyberbloxai.in/](https://ui.cyberbloxai.in/)
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Overview
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
CyberBlox UI Kit is a modular, themeable component library designed for building SaaS applications faster. It includes production-grade components for authentication flows, dashboards, notifications, error pages, and more.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## Key Features
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
- **Type-Safe**: Full TypeScript support with proper generics and inference.
|
|
14
|
+
- **Accessible**: WCAG compliant with proper ARIA labels and keyboard navigation.
|
|
15
|
+
- **Themeable**: Easy customization using CSS variables and design tokens.
|
|
16
|
+
- **Responsive**: Mobile-first design that looks great on every screen.
|
|
17
|
+
- **Modular**: Tree-shakeable by default—import only what you need.
|
|
14
18
|
|
|
15
|
-
|
|
19
|
+
## Installation
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
```bash
|
|
22
|
+
npm install @cyberbloxai/ui-kit
|
|
23
|
+
```
|
|
18
24
|
|
|
19
|
-
If you
|
|
25
|
+
> **Note**: If you are using **Tailwind CSS v4** and encounter a dependency conflict (`ERESOLVE`), you can install using:
|
|
26
|
+
> `npm install @cyberbloxai/ui-kit --legacy-peer-deps`
|
|
20
27
|
|
|
21
|
-
|
|
28
|
+
## Quick Start
|
|
22
29
|
|
|
23
|
-
|
|
30
|
+
1. **Import Styles**: Add the CSS to your main entry file (e.g., `main.tsx` or `App.tsx`) **before** your other imports:
|
|
24
31
|
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
|
|
32
|
+
```tsx
|
|
33
|
+
import "@cyberbloxai/ui-kit/styles.css";
|
|
34
|
+
```
|
|
28
35
|
|
|
29
|
-
|
|
30
|
-
cd <YOUR_PROJECT_NAME>
|
|
36
|
+
2. **Tailwind CSS Configuration**:
|
|
31
37
|
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
### For Tailwind CSS v4 (Recommended)
|
|
39
|
+
In your main CSS file (e.g., `index.css` or `app.css`), ensure you have:
|
|
40
|
+
```css
|
|
41
|
+
@import "tailwindcss";
|
|
42
|
+
/* If your components are unstyled, you may need to import the library CSS here instead */
|
|
43
|
+
@import "@cyberbloxai/ui-kit/styles.css";
|
|
44
|
+
```
|
|
34
45
|
|
|
35
|
-
|
|
36
|
-
|
|
46
|
+
### For Tailwind CSS v3
|
|
47
|
+
In your `tailwind.config.js`, you **must** add the library to the `content` array so Tailwind can find the classes used in the components:
|
|
48
|
+
|
|
49
|
+
```javascript
|
|
50
|
+
/** @type {import('tailwindcss').Config} */
|
|
51
|
+
export default {
|
|
52
|
+
content: [
|
|
53
|
+
"./index.html",
|
|
54
|
+
"./src/**/*.{js,ts,jsx,tsx}",
|
|
55
|
+
"./node_modules/@cyberbloxai/ui-kit/dist/**/*.{js,mjs}" // Add this line
|
|
56
|
+
],
|
|
57
|
+
// ... rest of config
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
3. **Use Components**:
|
|
62
|
+
|
|
63
|
+
```tsx
|
|
64
|
+
import { Button } from "@cyberbloxai/ui-kit";
|
|
65
|
+
|
|
66
|
+
function App() {
|
|
67
|
+
return (
|
|
68
|
+
<div className="p-8">
|
|
69
|
+
<Button variant="default" onClick={() => console.log("Clicked!")}>
|
|
70
|
+
Click Me
|
|
71
|
+
</Button>
|
|
72
|
+
</div>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
37
75
|
```
|
|
38
76
|
|
|
39
|
-
|
|
77
|
+
## Troubleshooting
|
|
40
78
|
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
79
|
+
- **Blank Page / White Screen**: This usually indicates a JavaScript error. Check your browser console (`F12` -> Console).
|
|
80
|
+
- Ensure you have `react` and `react-dom` installed.
|
|
81
|
+
- If using Vite, try clearing your cache: `rm -rf node_modules/.vite` and restart with `npm run dev`.
|
|
82
|
+
- **Unstyled Components**: Ensure you have imported `@cyberbloxai/ui-kit/styles.css` and configured your Tailwind `content` (for v3) or `@import` (for v4).
|
|
44
83
|
|
|
45
|
-
**Use GitHub Codespaces**
|
|
46
84
|
|
|
47
|
-
|
|
48
|
-
- Click on the "Code" button (green button) near the top right.
|
|
49
|
-
- Select the "Codespaces" tab.
|
|
50
|
-
- Click on "New codespace" to launch a new Codespace environment.
|
|
51
|
-
- Edit files directly within the Codespace and commit and push your changes once you're done.
|
|
85
|
+
## Technologies Used
|
|
52
86
|
|
|
53
|
-
|
|
87
|
+
- **Vite**: Next-generation frontend tooling.
|
|
88
|
+
- **TypeScript**: Static typing for better developer experience.
|
|
89
|
+
- **React**: For building user interfaces.
|
|
90
|
+
- **Radix UI**: Unstyled, accessible UI primitives.
|
|
91
|
+
- **Tailwind CSS**: Utility-first CSS framework.
|
|
92
|
+
- **Lucide React**: Beautiful & consistent icons.
|
|
54
93
|
|
|
55
|
-
|
|
94
|
+
## Development
|
|
56
95
|
|
|
57
|
-
|
|
58
|
-
- TypeScript
|
|
59
|
-
- React
|
|
60
|
-
- shadcn-ui
|
|
61
|
-
- Tailwind CSS
|
|
96
|
+
If you want to contribute or run the project locally:
|
|
62
97
|
|
|
63
|
-
|
|
98
|
+
```bash
|
|
99
|
+
# Clone the repository
|
|
100
|
+
git clone https://github.com/abhishekjohn1507/uni-kit-forge.git
|
|
64
101
|
|
|
65
|
-
|
|
102
|
+
# Install dependencies
|
|
103
|
+
npm install
|
|
66
104
|
|
|
67
|
-
|
|
105
|
+
# Start development server
|
|
106
|
+
npm run dev
|
|
68
107
|
|
|
69
|
-
|
|
108
|
+
# Build the library
|
|
109
|
+
npm run build:lib
|
|
110
|
+
```
|
|
70
111
|
|
|
71
|
-
|
|
112
|
+
## License
|
|
72
113
|
|
|
73
|
-
|
|
114
|
+
Created by [Abhishek John Charan](https://github.com/abhishekjohn1507).
|
package/dist/favicon.ico
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberbloxai/ui-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Production-ready UI component library built on Radix UI + Tailwind CSS.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,11 +25,13 @@
|
|
|
25
25
|
"dist",
|
|
26
26
|
"README.md"
|
|
27
27
|
],
|
|
28
|
-
"sideEffects":
|
|
28
|
+
"sideEffects": [
|
|
29
|
+
"**/*.css"
|
|
30
|
+
],
|
|
29
31
|
"peerDependencies": {
|
|
30
|
-
"react": "^18.0.0",
|
|
31
|
-
"react-dom": "^18.0.0",
|
|
32
|
-
"tailwindcss": "^3.0.0"
|
|
32
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
33
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
34
|
+
"tailwindcss": "^3.0.0 || ^4.0.0"
|
|
33
35
|
},
|
|
34
36
|
"scripts": {
|
|
35
37
|
"dev": "vite",
|