create-aziz-app 3.0.12 → 3.0.13
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/package.json +1 -1
- package/template/README.md +18 -3
- package/template/index.html +17 -0
- package/template/styles/globals.css +1 -1
package/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -597,12 +597,27 @@ Edit `styles/globals.css` for global styles. Built-in utility classes:
|
|
|
597
597
|
|
|
598
598
|
### Tailwind CSS
|
|
599
599
|
|
|
600
|
-
|
|
600
|
+
Tailwind CSS is included by default via CDN with `primary` and `dark` colors pre-configured:
|
|
601
601
|
|
|
602
|
-
```
|
|
603
|
-
|
|
602
|
+
```js
|
|
603
|
+
// Use Tailwind classes directly in any file
|
|
604
|
+
<div class="flex items-center gap-4 p-6 bg-white rounded-lg shadow">
|
|
605
|
+
<h1 class="text-2xl font-bold text-dark">Hello</h1>
|
|
606
|
+
<button class="bg-primary text-dark font-bold px-4 py-2 rounded-lg">
|
|
607
|
+
Click me
|
|
608
|
+
</button>
|
|
609
|
+
</div>
|
|
604
610
|
```
|
|
605
611
|
|
|
612
|
+
Custom colors available out of the box:
|
|
613
|
+
|
|
614
|
+
| Class | Value |
|
|
615
|
+
|-------|-------|
|
|
616
|
+
| `bg-primary` / `text-primary` | `#61dafb` (cyan) |
|
|
617
|
+
| `bg-dark` / `text-dark` | `#282c34` (dark) |
|
|
618
|
+
|
|
619
|
+
To extend the config, edit the `tailwind.config` block in `index.html`.
|
|
620
|
+
|
|
606
621
|
---
|
|
607
622
|
|
|
608
623
|
## Dev Server
|
package/template/index.html
CHANGED
|
@@ -5,6 +5,23 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
|
7
7
|
<title>My App</title>
|
|
8
|
+
|
|
9
|
+
<!-- Tailwind CSS -->
|
|
10
|
+
<script src="https://cdn.tailwindcss.com"></script>
|
|
11
|
+
<script>
|
|
12
|
+
tailwind.config = {
|
|
13
|
+
theme: {
|
|
14
|
+
extend: {
|
|
15
|
+
colors: {
|
|
16
|
+
primary: '#61dafb',
|
|
17
|
+
dark: '#282c34',
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<!-- Global styles (nav, cards, buttons, etc.) -->
|
|
8
25
|
<link rel="stylesheet" href="/styles/globals.css">
|
|
9
26
|
</head>
|
|
10
27
|
<body>
|