create-aziz-app 3.0.11 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-aziz-app",
3
- "version": "3.0.11",
3
+ "version": "3.0.13",
4
4
  "description": "Create Aziz.js apps — lightweight Next.js clone with file-based routing, React hooks, and API routes",
5
5
  "keywords": [
6
6
  "aziz.js",
@@ -0,0 +1,15 @@
1
+ {
2
+ "tailwindCSS.includeLanguages": {
3
+ "javascript": "javascriptreact"
4
+ },
5
+ "tailwindCSS.experimental.classRegex": [
6
+ ["class\\s*=\\s*[\"'`]([^\"'`]*)[\"'`]", "([^\"'`]*)"],
7
+ ["className\\s*=\\s*[\"'`]([^\"'`]*)[\"'`]", "([^\"'`]*)"]
8
+ ],
9
+ "editor.quickSuggestions": {
10
+ "strings": "on"
11
+ },
12
+ "[javascript]": {
13
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
14
+ }
15
+ }
@@ -597,12 +597,27 @@ Edit `styles/globals.css` for global styles. Built-in utility classes:
597
597
 
598
598
  ### Tailwind CSS
599
599
 
600
- Choose Tailwind during project creation, or add it manually to `index.html`:
600
+ Tailwind CSS is included by default via CDN with `primary` and `dark` colors pre-configured:
601
601
 
602
- ```html
603
- <script src="https://cdn.tailwindcss.com"></script>
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
@@ -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>
@@ -1,6 +1,6 @@
1
1
  /* ============================================================
2
2
  GLOBAL STYLES
3
- Base styles that work with all CSS frameworks
3
+ Base styles that work alongside Tailwind CSS
4
4
  ============================================================ */
5
5
 
6
6
  /* Reset */
@@ -0,0 +1,13 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ content: [
4
+ './index.html',
5
+ './app/**/*.{js,jsx}',
6
+ './components/**/*.{js,jsx}',
7
+ './lib/**/*.{js,jsx}',
8
+ ],
9
+ theme: {
10
+ extend: {},
11
+ },
12
+ plugins: [],
13
+ };