nexoreui 1.6.0 → 1.7.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Al1mov77
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,158 @@
1
+ # NexoreUI
2
+
3
+ <p align="center">
4
+ <strong>Modern, animated, production-ready React components with Tailwind CSS & Framer Motion.</strong>
5
+ </p>
6
+
7
+ <p align="center">
8
+ <a href="https://nexoreui.site">Website & Documentation</a> •
9
+ <a href="https://nexoreui.site/create">Project Studio</a> •
10
+ <a href="https://github.com/Al1mov77/NexoreUI">GitHub</a>
11
+ </p>
12
+
13
+ ---
14
+
15
+ ## ⚡ Features
16
+
17
+ - 🎨 **Theme & Design System**: 8 curated color palettes (Cyan, Indigo, Violet, Emerald, Rose, Amber, Slate, Neon) with full dark mode support.
18
+ - 🚀 **Zero Setup Overhead**: Works as an NPM package or through an interactive CLI.
19
+ - ✨ **Fluid Micro-Interactions**: Handcrafted Framer Motion physics and spring animations.
20
+ - 📐 **Tailwind CSS v4 & v3 Ready**: First-class `@theme` token integration.
21
+ - 🛡️ **TypeScript Native**: 100% type-safe components with autocomplete for variants and sizes.
22
+ - ⚛️ **React 18 & 19 Support**: Verified compatibility with modern React runtimes.
23
+
24
+ ---
25
+
26
+ ## 🚀 Quick Start (One Command)
27
+
28
+ ### Option 1: Initialize in an existing project
29
+
30
+ Initialize NexoreUI with your chosen theme in a single command:
31
+
32
+ ```bash
33
+ npx nexoreui init --theme emerald --radius 0.75
34
+ ```
35
+
36
+ Or with your preferred package manager:
37
+ ```bash
38
+ # pnpm
39
+ pnpm dlx nexoreui init
40
+
41
+ # bun
42
+ bunx nexoreui init
43
+ ```
44
+
45
+ Then add components directly into your codebase:
46
+ ```bash
47
+ npx nexoreui add button card modal table
48
+ # Or install all 40+ components at once:
49
+ npx nexoreui add --all
50
+ ```
51
+
52
+ ---
53
+
54
+ ### Option 2: Use as an NPM package
55
+
56
+ Install `nexoreui` and its peer dependencies:
57
+
58
+ ```bash
59
+ npm install nexoreui framer-motion lucide-react clsx tailwind-merge
60
+ # or
61
+ pnpm add nexoreui framer-motion lucide-react clsx tailwind-merge
62
+ # or
63
+ bun add nexoreui framer-motion lucide-react clsx tailwind-merge
64
+ ```
65
+
66
+ #### 1. Import Styles
67
+
68
+ Import the CSS variables and base styles in your main entry file (`src/main.tsx`, `src/index.tsx`, or `app/layout.tsx`):
69
+
70
+ ```tsx
71
+ import "nexoreui/styles.css";
72
+ ```
73
+
74
+ #### 2. Configure Tailwind CSS
75
+
76
+ If you use **Tailwind CSS v4**, add the `@source` directive in your main CSS file (`src/index.css` or `globals.css`):
77
+
78
+ ```css
79
+ @import "tailwindcss";
80
+ @source "../node_modules/nexoreui/dist/**/*.{js,mjs}";
81
+ ```
82
+
83
+ If you use **Tailwind CSS v3**, add the package path to your `tailwind.config.js`:
84
+
85
+ ```js
86
+ module.exports = {
87
+ content: [
88
+ "./index.html",
89
+ "./src/**/*.{js,ts,jsx,tsx}",
90
+ "./node_modules/nexoreui/dist/**/*.{js,mjs}",
91
+ ],
92
+ // ...
93
+ };
94
+ ```
95
+
96
+ #### 3. Start Building
97
+
98
+ ```tsx
99
+ import React from "react";
100
+ import { Button, Card, CardHeader, CardTitle, CardContent } from "nexoreui";
101
+
102
+ export function App() {
103
+ return (
104
+ <div className="p-8 space-y-4">
105
+ <Card>
106
+ <CardHeader>
107
+ <CardTitle>Welcome to NexoreUI</CardTitle>
108
+ </CardHeader>
109
+ <CardContent className="flex gap-3">
110
+ <Button variant="default">Primary Action</Button>
111
+ <Button variant="secondary">Secondary</Button>
112
+ <Button variant="outline">Outline</Button>
113
+ <Button variant="neon">Neon Glow</Button>
114
+ </CardContent>
115
+ </Card>
116
+ </div>
117
+ );
118
+ }
119
+ ```
120
+
121
+ ---
122
+
123
+ ## 🎨 Theme Customization
124
+
125
+ NexoreUI uses CSS custom properties (`--primary`, `--background`, `--radius`, etc.) that allow dynamic runtime theming:
126
+
127
+ ```css
128
+ :root {
129
+ --primary: hsl(142.1 76.2% 36.3%);
130
+ --primary-foreground: hsl(0 0% 100%);
131
+ --radius: 0.75rem;
132
+ }
133
+
134
+ .dark {
135
+ --primary: hsl(142.1 70.6% 45.3%);
136
+ --background: hsl(240 10% 3.9%);
137
+ --foreground: hsl(0 0% 98%);
138
+ }
139
+ ```
140
+
141
+ Customize palettes interactively with the [NexoreUI Theme Studio](https://nexoreui.site/create).
142
+
143
+ ---
144
+
145
+ ## 🛠️ CLI Commands
146
+
147
+ | Command | Description |
148
+ | :--- | :--- |
149
+ | `npx nexoreui create [name]` | Scaffold a brand new React + Vite + Tailwind starter project |
150
+ | `npx nexoreui init` | Configure path aliases, CSS tokens, and theme settings in existing project |
151
+ | `npx nexoreui add [comps...]` | Add component files directly to your project (`--all` installs entire library) |
152
+ | `npx nexoreui list` | List all available components and templates in the registry |
153
+
154
+ ---
155
+
156
+ ## 📄 License
157
+
158
+ MIT © [NexoreUI](https://nexoreui.site)