@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 CHANGED
@@ -1,73 +1,114 @@
1
- # Welcome to your Lovable project
1
+ # CyberBlox UI Kit
2
2
 
3
- ## Project info
3
+ Production-ready component library built with Radix UI and Tailwind CSS, developed by **Abhishek John Charan**.
4
4
 
5
- **URL**: https://lovable.dev/projects/REPLACE_WITH_PROJECT_ID
5
+ **Live Preview**: [https://ui.cyberbloxai.in/](https://ui.cyberbloxai.in/)
6
6
 
7
- ## How can I edit this code?
7
+ ## Overview
8
8
 
9
- There are several ways of editing your application.
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
- **Use Lovable**
11
+ ## Key Features
12
12
 
13
- Simply visit the [Lovable Project](https://lovable.dev/projects/REPLACE_WITH_PROJECT_ID) and start prompting.
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
- Changes made via Lovable will be committed automatically to this repo.
19
+ ## Installation
16
20
 
17
- **Use your preferred IDE**
21
+ ```bash
22
+ npm install @cyberbloxai/ui-kit
23
+ ```
18
24
 
19
- If you want to work locally using your own IDE, you can clone this repo and push changes. Pushed changes will also be reflected in Lovable.
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
- The only requirement is having Node.js & npm installed - [install with nvm](https://github.com/nvm-sh/nvm#installing-and-updating)
28
+ ## Quick Start
22
29
 
23
- Follow these steps:
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
- ```sh
26
- # Step 1: Clone the repository using the project's Git URL.
27
- git clone <YOUR_GIT_URL>
32
+ ```tsx
33
+ import "@cyberbloxai/ui-kit/styles.css";
34
+ ```
28
35
 
29
- # Step 2: Navigate to the project directory.
30
- cd <YOUR_PROJECT_NAME>
36
+ 2. **Tailwind CSS Configuration**:
31
37
 
32
- # Step 3: Install the necessary dependencies.
33
- npm i
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
- # Step 4: Start the development server with auto-reloading and an instant preview.
36
- npm run dev
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
- **Edit a file directly in GitHub**
77
+ ## Troubleshooting
40
78
 
41
- - Navigate to the desired file(s).
42
- - Click the "Edit" button (pencil icon) at the top right of the file view.
43
- - Make your changes and commit the changes.
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
- - Navigate to the main page of your repository.
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
- ## What technologies are used for this project?
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
- This project is built with:
94
+ ## Development
56
95
 
57
- - Vite
58
- - TypeScript
59
- - React
60
- - shadcn-ui
61
- - Tailwind CSS
96
+ If you want to contribute or run the project locally:
62
97
 
63
- ## How can I deploy this project?
98
+ ```bash
99
+ # Clone the repository
100
+ git clone https://github.com/abhishekjohn1507/uni-kit-forge.git
64
101
 
65
- Simply open [Lovable](https://lovable.dev/projects/REPLACE_WITH_PROJECT_ID) and click on Share -> Publish.
102
+ # Install dependencies
103
+ npm install
66
104
 
67
- ## Can I connect a custom domain to my Lovable project?
105
+ # Start development server
106
+ npm run dev
68
107
 
69
- Yes, you can!
108
+ # Build the library
109
+ npm run build:lib
110
+ ```
70
111
 
71
- To connect a domain, navigate to Project > Settings > Domains and click Connect Domain.
112
+ ## License
72
113
 
73
- Read more here: [Setting up a custom domain](https://docs.lovable.dev/features/custom-domain#custom-domain)
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.0",
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": false,
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",