dolphincss 1.2.6 → 1.2.8
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 +79 -146
- package/dist/assets/css-DlLFJrG5.css +1 -0
- package/dist/index.html +1 -1
- package/dist/index.js +77 -12
- package/dolphin-css.css +2 -2
- package/package.json +20 -8
- package/scripts/components.js +195 -0
- package/scripts/dolphin-watch.js +53 -0
- package/scripts/setup-snippets.cjs +44 -0
- package/snippets/dolphincss.json +74 -0
- package/vite-plugin.js +85 -0
- package/dist/assets/css-Dg8YLqt0.css +0 -1
package/README.md
CHANGED
|
@@ -1,182 +1,115 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
### Card Example
|
|
6
|
-
```jsx
|
|
7
|
-
<div className="card filled primary">Primary Card</div>
|
|
8
|
-
<div className="card outlined success">Success Outlined Card</div>
|
|
9
|
-
<div className="card glass warning">Glass Warning Card</div>
|
|
10
|
-
<div className="card gradient danger">Gradient Danger Card</div>
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
### Input Example
|
|
14
|
-
```jsx
|
|
15
|
-
<div className="floatinglabel">
|
|
16
|
-
<input className="floatinglabel-input" placeholder=" " />
|
|
17
|
-
<label className="floatinglabel-label">Floating Label</label>
|
|
18
|
-
</div>
|
|
19
|
-
<input className="standardlabel-input" placeholder="Standard Label" />
|
|
20
|
-
<select className="select primary">
|
|
21
|
-
<option>Option 1</option>
|
|
22
|
-
<option>Option 2</option>
|
|
23
|
-
</select>
|
|
24
|
-
<div className="radio-group horizontal">
|
|
25
|
-
<label className="radio-item">
|
|
26
|
-
<input type="radio" name="r" className="primary" />
|
|
27
|
-
<span className="radio-label">Radio 1</span>
|
|
28
|
-
</label>
|
|
29
|
-
<label className="radio-item">
|
|
30
|
-
<input type="radio" name="r" className="success" />
|
|
31
|
-
<span className="radio-label">Radio 2</span>
|
|
32
|
-
</label>
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h1>🐬 DolphinCSS</h1>
|
|
3
|
+
<p><strong>A Next-Generation UI Library for React + TailwindCSS</strong></p>
|
|
4
|
+
<p><em>Where Magic Component Generation meets Beautiful Global Classes.</em></p>
|
|
33
5
|
</div>
|
|
34
|
-
<input type="checkbox" className="primary" />
|
|
35
|
-
<input type="checkbox" className="success" />
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Nav Example
|
|
39
|
-
```jsx
|
|
40
|
-
<nav className="nav-container">
|
|
41
|
-
<div className="nav-brand">Brand</div>
|
|
42
|
-
<ul className="nav-ul nav-ul-right">
|
|
43
|
-
<li className="nav-li active"><a href="#">Home</a></li>
|
|
44
|
-
<li className="nav-li"><a href="#">About</a></li>
|
|
45
|
-
<li className="nav-li"><a href="#">Contact</a></li>
|
|
46
|
-
</ul>
|
|
47
|
-
</nav>
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Sidenav Example
|
|
51
|
-
```jsx
|
|
52
|
-
<aside className="admin-nav glass-wave">
|
|
53
|
-
<div className="admin-nav-header">Sidenav Header</div>
|
|
54
|
-
<ul>
|
|
55
|
-
<li>Dashboard</li>
|
|
56
|
-
<li>Settings</li>
|
|
57
|
-
<li>Logout</li>
|
|
58
|
-
</ul>
|
|
59
|
-
</aside>
|
|
60
|
-
```
|
|
61
6
|
|
|
62
7
|
---
|
|
63
8
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- **Button:** `.filled`, `.outlined`, `.plain`, `.primary`, `.secondary`, `.success`, `.warning`, `.danger`, `.info`, `.gradient`, `.glass`, `.glow`
|
|
67
|
-
- **Card:** `.card`, `.filled`, `.outlined`, `.glass`, `.gradient`, color variants
|
|
68
|
-
- **Input:** `.floatinglabel`, `.standardlabel`, `.select`, `.radio-group`, `.radio-item`, `.checkbox`, color variants
|
|
69
|
-
- **Nav:** `.nav-container`, `.nav-brand`, `.nav-ul`, `.nav-li`, `.nav-dropdown`, `.nav-toggle`, `.nav-search-container`, etc.
|
|
70
|
-
- **Sidenav:** `.admin-nav`, `.glass-wave`, `.neon-flow`, `.crystal-glass`, `.aqua-depth`, `.admin-nav-header`
|
|
9
|
+
DolphinCSS is not just another CSS framework. It fundamentally reimagines how developers build UI by combining the extreme customizability of **TailwindCSS**, the simplicity of **Bootstrap's Global Classes**, and an unprecedented **Vite-powered Magic Component Generator**.
|
|
71
10
|
|
|
72
|
-
|
|
73
|
-
# 🇳🇵 DolphinCSS + React + Vite
|
|
11
|
+
Say goodbye to heavy vendor lock-ins (MUI, AntD) and tedious CLI commands (Shadcn UI).
|
|
74
12
|
|
|
75
|
-
|
|
13
|
+
## ✨ The 4 Unique Superpowers
|
|
76
14
|
|
|
77
|
-
|
|
15
|
+
### 1. 🪄 Magic Component Generation (Zero CLI)
|
|
16
|
+
We loved the idea of Shadcn giving you ownership of the code, but hated running CLI commands for every single component.
|
|
78
17
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
## Features
|
|
82
|
-
|
|
83
|
-
- Prebuilt **Dolphin theme colors** र utilities
|
|
84
|
-
- React-ready **components** (buttons, inputs, tables, etc.)
|
|
85
|
-
- TailwindCSS v4+ compatible
|
|
86
|
-
- Optimized for **Vite + React + HMR**
|
|
87
|
-
- Fully **TypeScript compatible**
|
|
88
|
-
|
|
89
|
-
---
|
|
18
|
+
With DolphinCSS, **you never touch the terminal.** Just type a magic class in your editor and save:
|
|
90
19
|
|
|
91
|
-
|
|
20
|
+
```jsx
|
|
21
|
+
// 1. You type this in your App.jsx:
|
|
22
|
+
<div className="dolphin-card"></div>
|
|
92
23
|
|
|
93
|
-
|
|
24
|
+
// 2. You hit Save (Ctrl+S)
|
|
94
25
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
26
|
+
// 3. 🪄 MAGIC! Vite instantly replaces that line IN YOUR FILE with the full React Component code!
|
|
27
|
+
<div className="glass card p-6 border border-white/20 rounded-2xl max-w-sm hover:shadow-xl hover:-translate-y-1 transition-all duration-300 relative overflow-hidden" style={{ backdropFilter: 'blur(20px)' }}>
|
|
28
|
+
{/* Full customizable code is now YOURS */}
|
|
29
|
+
</div>
|
|
30
|
+
```
|
|
98
31
|
|
|
99
|
-
|
|
32
|
+
### 2. 🎨 High-Level Global Classes
|
|
33
|
+
Tired of writing 20 utility classes for a single button? DolphinCSS brings back the simplicity of Global Classes, but with breathtaking modern aesthetics (Glassmorphism, Neon Glows).
|
|
100
34
|
|
|
101
|
-
|
|
35
|
+
```jsx
|
|
36
|
+
/* The Tailwind Way (Messy) */
|
|
37
|
+
<button className="px-6 py-2 bg-blue-500 hover:bg-blue-600 text-white font-bold rounded-lg shadow-lg shadow-blue-500/50 transition-all">
|
|
38
|
+
Click
|
|
39
|
+
</button>
|
|
40
|
+
|
|
41
|
+
/* The DolphinCSS Way (Clean & Global) */
|
|
42
|
+
<button className="filled primary-500 glow btn-lg">
|
|
43
|
+
Click
|
|
44
|
+
</button>
|
|
45
|
+
```
|
|
102
46
|
|
|
103
|
-
###
|
|
47
|
+
### 3. 🧩 Infinite Class Composability (Nesting)
|
|
48
|
+
Classes in DolphinCSS are designed to stack perfectly. Combine background colors, gradients, glows, and animations endlessly without conflicts!
|
|
104
49
|
|
|
105
|
-
|
|
50
|
+
```jsx
|
|
51
|
+
// Combine classes to create complex, animated, glowing UI instantly:
|
|
52
|
+
<button className="filled success gradient glow glow-pulse rounded-full">
|
|
53
|
+
I am a Glowing, Pulsing, Gradient Green Button!
|
|
54
|
+
</button>
|
|
106
55
|
|
|
107
|
-
|
|
56
|
+
// Create a frosted glass overlay with a dark tint:
|
|
57
|
+
<div className="overlay overlay-blur-xl overlay-dark-50"></div>
|
|
58
|
+
```
|
|
108
59
|
|
|
109
|
-
###
|
|
60
|
+
### 4. 🎬 World-Class Built-in Animations
|
|
61
|
+
No need for `framer-motion` or `animate.css`. DolphinCSS ships with a complete `@layer utilities` animation engine that you can drop on any HTML element.
|
|
110
62
|
|
|
111
|
-
|
|
63
|
+
- **Continuous:** `float`, `spin-slow`, `pulse`, `bounce`, `shimmer`, `gradient-flow`, `neon-flicker`
|
|
64
|
+
- **Hover:** `hover-pulse`, `hover-jelly`, `hover-glow`, `hover-ripple`
|
|
65
|
+
- **Entrance:** `fade-in`, `slide-up`, `zoom-in`, `rotate-3d`
|
|
66
|
+
- **Controls:** `delay-200`, `duration-500`
|
|
112
67
|
|
|
113
68
|
```jsx
|
|
114
|
-
<
|
|
115
|
-
<button className="outlined primary md">Primary Outlined</button>
|
|
116
|
-
<button className="plain primary md">Primary Plain</button>
|
|
117
|
-
<button className="filled secondary md">Secondary</button>
|
|
118
|
-
<button className="outlined danger md">Danger Outlined</button>
|
|
119
|
-
<button className="filled success glow md">Success Glow</button>
|
|
120
|
-
<button className="gradient primary md">Gradient Primary</button>
|
|
121
|
-
<button className="gradient outlined primary md">Gradient Outlined</button>
|
|
122
|
-
<button className="gradient plain primary md">Gradient Text</button>
|
|
123
|
-
<button className="glass primary md">Glass Primary</button>
|
|
124
|
-
<button className="glass primary glow md">Glass + Glow</button>
|
|
125
|
-
<button className="glass primary gradient glow md">Glass + Gradient + Glow</button>
|
|
69
|
+
<img src="logo.png" className="float hover-jelly fade-in delay-200" />
|
|
126
70
|
```
|
|
127
71
|
|
|
128
|
-
|
|
72
|
+
---
|
|
129
73
|
|
|
130
|
-
|
|
131
|
-
- `.primary`, `.secondary`, `.success`, `.warning`, `.danger`, `.info`
|
|
132
|
-
- `.glow` (from glow.css)
|
|
133
|
-
- `.gradient` (from gradient.css)
|
|
134
|
-
- `.glass` (from glass.css)
|
|
74
|
+
## 📦 Installation & Setup
|
|
135
75
|
|
|
136
|
-
|
|
76
|
+
1. **Install via npm:**
|
|
77
|
+
```bash
|
|
78
|
+
npm install tailwindcss dolphincss
|
|
79
|
+
```
|
|
137
80
|
|
|
138
|
-
|
|
81
|
+
2. **Add the Magic Vite Plugin:** (In `vite.config.js`)
|
|
82
|
+
```javascript
|
|
83
|
+
import { defineConfig } from 'vite'
|
|
84
|
+
import react from '@vitejs/plugin-react'
|
|
85
|
+
import dolphincssPlugin from 'dolphincss/vite-plugin'
|
|
139
86
|
|
|
140
|
-
|
|
87
|
+
export default defineConfig({
|
|
88
|
+
plugins: [react(), dolphincssPlugin()]
|
|
89
|
+
})
|
|
90
|
+
```
|
|
141
91
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
import
|
|
145
|
-
|
|
146
|
-
export default function Demo() {
|
|
147
|
-
return (
|
|
148
|
-
<div>
|
|
149
|
-
<button className="filled primary md">Primary</button>
|
|
150
|
-
<button className="outlined primary md">Primary Outlined</button>
|
|
151
|
-
<button className="plain primary md">Primary Plain</button>
|
|
152
|
-
<button className="filled success glow md">Success Glow</button>
|
|
153
|
-
<button className="gradient primary md">Gradient Primary</button>
|
|
154
|
-
<button className="gradient outlined primary md">Gradient Outlined</button>
|
|
155
|
-
<button className="gradient plain primary md">Gradient Text</button>
|
|
156
|
-
<button className="glass primary md">Glass Primary</button>
|
|
157
|
-
<button className="glass primary glow md">Glass + Glow</button>
|
|
158
|
-
<button className="glass primary gradient glow md">Glass + Gradient + Glow</button>
|
|
159
|
-
</div>
|
|
160
|
-
);
|
|
161
|
-
}
|
|
92
|
+
3. **Import Styles:** (In your main `main.jsx` or `index.css`)
|
|
93
|
+
```javascript
|
|
94
|
+
import 'dolphincss/dolphin-css.css';
|
|
162
95
|
```
|
|
163
96
|
|
|
164
97
|
---
|
|
165
98
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
All global classes from `glow.css`, `gradient.css`, and `varient.css` are already used in the main demo (`src/App.jsx`).
|
|
99
|
+
## 🐬 Available Magic Components
|
|
169
100
|
|
|
170
|
-
|
|
101
|
+
Type any of these magic markers in your `.jsx` or `.tsx` file, hit save, and watch the code generate instantly:
|
|
171
102
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
103
|
+
- `<div className="dolphin-form"></div>` (Beautiful Login/Action Form)
|
|
104
|
+
- `<div className="dolphin-table"></div>` (Responsive Data Table)
|
|
105
|
+
- `<div className="dolphin-toast"></div>` (Notification Toast)
|
|
106
|
+
- `<div className="dolphin-modal"></div>` (Native HTML Dialog Modal)
|
|
107
|
+
- `<div className="dolphin-button"></div>` (Button Variants Showcase)
|
|
108
|
+
- `<div className="dolphin-card"></div>` (Glassmorphic Profile Card)
|
|
109
|
+
- `<div className="dolphin-navbar"></div>` (Sleek Navigation Bar)
|
|
110
|
+
- `<div className="dolphin-alert"></div>` (Modern Alert Box)
|
|
111
|
+
- `<div className="dolphin-badge"></div>` (Status Badges)
|
|
179
112
|
|
|
180
113
|
---
|
|
181
114
|
|
|
182
|
-
**
|
|
115
|
+
**Built with ❤️ in Nepal.** Ready for the future of UI development.
|