vida-css 0.0.1 → 0.0.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
@@ -0,0 +1,58 @@
1
+ # VidaCSS
2
+
3
+ A Tailwind-like utility-first CSS library with `hover:`, `md:`, `dark:`, and JIT-style class compilation.
4
+
5
+ ## Install
6
+
7
+ `npm install vida-css`
8
+
9
+ ## CDN (Tailwind-like)
10
+
11
+ ```html
12
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vida-css@latest/dist/vida.css" />
13
+ ```
14
+
15
+ ## Local install
16
+
17
+ ```html
18
+ <link rel="stylesheet" href="node_modules/vida-css/dist/vida.css" />
19
+ ```
20
+
21
+ ## Class syntax (Tailwind-style)
22
+
23
+ Responsive:
24
+
25
+ ```html
26
+ <div class="md:w-96 w-10">...</div>
27
+ ```
28
+
29
+ Pseudo-classes:
30
+
31
+ ```html
32
+ <button class="disabled:bg-red-500 hover:bg-blue-500">...</button>
33
+ <a class="visited:text-white hover:text-yellow-500" href="#">...</a>
34
+ ```
35
+
36
+ Dark mode (class-based):
37
+
38
+ ```html
39
+ <div class="dark">
40
+ <div class="dark:bg-blue-500">...</div>
41
+ </div>
42
+ ```
43
+
44
+ Arbitrary values:
45
+
46
+ ```html
47
+ <div class="w-[300px] h-[100px] bg-red-500"></div>
48
+ ```
49
+
50
+ Pseudo-elements (with arbitrary content):
51
+
52
+ ```html
53
+ <div class="relative overflow-hidden before:content-[''] before:absolute before:top-0 before:left-0 before:w-10 before:h-10 before:bg-red-500 before:rounded-sm"></div>
54
+ ```
55
+
56
+ ## Build output
57
+
58
+ `npm run build` generates `dist/vida.css` (the file used by npm and the CDN link).