dolphincss 1.2.5 → 1.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 +182 -25
- package/dist/assets/css-Dg8YLqt0.css +1 -0
- package/dist/assets/main-tn0RQdqM.css +0 -0
- package/dist/index.html +15 -0
- package/dist/index.js +49 -1
- package/dolphin-css.css +2 -2
- package/package.json +1 -1
- package/dist/index.css +0 -1
package/README.md
CHANGED
|
@@ -1,25 +1,182 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
## 🧩 More Components: Card, Input, Nav, Sidenav
|
|
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>
|
|
33
|
+
</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
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## 🏆 All Global Classes
|
|
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`
|
|
71
|
+
|
|
72
|
+
See `src/App.jsx` for a full working demo of all these classes and effects.
|
|
73
|
+
# 🇳🇵 DolphinCSS + React + Vite
|
|
74
|
+
|
|
75
|
+
यो template ले minimal setup दिन्छ **React** को लागि **Vite**, **HMR**, **TailwindCSS**, र **DolphinCSS theme** सँग काम गर्न।
|
|
76
|
+
|
|
77
|
+
DolphinCSS एक lightweight, world-class CSS library हो जसमा ready-to-use components र Tailwind-friendly utilities छन्।
|
|
78
|
+
|
|
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
|
+
---
|
|
90
|
+
|
|
91
|
+
## Installation
|
|
92
|
+
|
|
93
|
+
Install TailwindCSS & DolphinCSS:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npm install tailwindcss dolphincss
|
|
97
|
+
import 'dolphincss/dolphin-css.css';
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## 🚀 DolphinCSS Tutorial & Demo
|
|
102
|
+
|
|
103
|
+
### 1. GitHub Link
|
|
104
|
+
|
|
105
|
+
[View on GitHub](https://github.com/Phuyalshankar/dolphincss)
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
### 2. All Button & Global Classes
|
|
110
|
+
|
|
111
|
+
#### Button Variants
|
|
112
|
+
|
|
113
|
+
```jsx
|
|
114
|
+
<button className="filled primary md">Primary</button>
|
|
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>
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
#### Global Classes
|
|
129
|
+
|
|
130
|
+
- `.filled`, `.outlined`, `.plain` (from varient.css)
|
|
131
|
+
- `.primary`, `.secondary`, `.success`, `.warning`, `.danger`, `.info`
|
|
132
|
+
- `.glow` (from glow.css)
|
|
133
|
+
- `.gradient` (from gradient.css)
|
|
134
|
+
- `.glass` (from glass.css)
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
### 3. Demo: All Effects in One Component
|
|
139
|
+
|
|
140
|
+
You can see all global classes in action in the main demo component:
|
|
141
|
+
|
|
142
|
+
```jsx
|
|
143
|
+
// src/App.jsx
|
|
144
|
+
import React from 'react';
|
|
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
|
+
}
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
### 4. Try All Effects
|
|
167
|
+
|
|
168
|
+
All global classes from `glow.css`, `gradient.css`, and `varient.css` are already used in the main demo (`src/App.jsx`).
|
|
169
|
+
|
|
170
|
+
**To test:**
|
|
171
|
+
|
|
172
|
+
1. Run the project:
|
|
173
|
+
```bash
|
|
174
|
+
npm install
|
|
175
|
+
npm run dev
|
|
176
|
+
```
|
|
177
|
+
2. Open [http://localhost:5173](http://localhost:5173) in your browser.
|
|
178
|
+
3. You will see all button variants, glow, gradient, and glass effects in one place.
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
**For more, see the [GitHub repo](https://github.com/Phuyalshankar/dolphincss) and explore `src/App.jsx` for all global class usage.**
|