You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A [PrimeVue](https://primevue.org/) SPA starter kit meant for use with a [Laravel Breeze](https://laravel.com/docs/master/starter-kits#laravel-breeze) API stack backend.
6
6
7
7
An alternative to using the [Laravel, Inertia.js, & PrimeVue Starter Kit](https://github.com/connorabbas/laravel-inertia-primevue).
8
8
9
-
## Setup
9
+
## Setup
10
+
10
11
1. Clone the repo (or download the zip)
11
12
2. Create a new `.env` file in the root directory, reference the `.env.example` file for the vars/values
12
-
3. Create a [new Laravel application](https://laravel.com/docs/master/installation)
13
+
3. Create a [new Laravel application](https://laravel.com/docs/master/installation)
13
14
4. Install [Laravel Breeze](https://laravel.com/docs/master/starter-kits#laravel-breeze-installation) using the [API Stack](https://laravel.com/docs/master/starter-kits#breeze-and-next) option
14
15
5. Setup necessary `.env` configuration values in the Laravel API project
15
16
```
@@ -21,9 +22,11 @@ An alternative to using the [Laravel, Inertia.js, & PrimeVue Starter Kit](https:
21
22
SESSION_DOMAIN="vue-spa.localhost"
22
23
```
23
24
6. Setup additional routes and controllers for profile page in the Laravel API project:
25
+
24
26
```
25
27
php artisan make:controller ProfileController
26
28
```
29
+
27
30
```php
28
31
<?php
29
32
@@ -89,9 +92,11 @@ An alternative to using the [Laravel, Inertia.js, & PrimeVue Starter Kit](https:
@@ -145,11 +151,39 @@ An alternative to using the [Laravel, Inertia.js, & PrimeVue Starter Kit](https:
145
151
```
146
152
147
153
## TypeScript
154
+
148
155
TypeScript is configured and ready for use if desired, but is not required.
149
156
150
157
## Theme
151
-
This starter kit provides a light/dark mode and custom theme functionality provided by the powerful PrimeVue theming system, using styled mode and custom design token values.
152
158
153
-
The starting point for customizing your theme will be the `theme-preset.js` file at the root of the project. To quickly change the look and feel of your theme, swap the [primary](https://primevue.org/theming/styled/#primary) values with a different set of [colors](https://primevue.org/theming/styled/#colors), change the [surface](https://primevue.org/theming/styled/#surface) `colorScheme` values (slate, gray, neutral, etc.), or completely change the [preset theme](https://primevue.org/theming/styled/#presets) (Aura used by default).
159
+
This starter kit features a built-in light/dark mode toggle along with a collection of custom theme presets built using the powerful **PrimeVue V4** theming system. It leverages styled mode and custom design token values to create flexible and cohesive UI designs.
160
+
161
+
### Prebuilt Theme Presets
162
+
163
+
The prebuilt theme presets are located in the `/resources/js/theme` directory. Each preset offers a distinct visual style:
164
+
165
+
- **noir**
166
+
A minimal, monochromatic theme that serves as the default style.
167
+
168
+
- **bootstrap**
169
+
Emulates the familiar look and feel of [Bootstrap](https://getbootstrap.com/).
170
+
171
+
- **breeze**
172
+
Captures the aesthetic of [Laravel Breeze](https://laravel.com/docs/master/starter-kits#laravel-breeze).
173
+
174
+
- **enterprise**
175
+
Provides a clean, no-nonsense corporate design.
176
+
177
+
### Customizing Your Own Theme
178
+
179
+
Creating your own theme preset is simple. You can:
180
+
181
+
- Swap the [primary](https://primevue.org/theming/styled/#primary) values with a different set of [colors](https://primevue.org/theming/styled/#colors).
182
+
- Adjust the `colorScheme` [surface](https://primevue.org/theming/styled/#surface) values (e.g., slate, gray, neutral).
183
+
- Change the extended [preset theme](https://primevue.org/theming/styled/#presets).
184
+
185
+
For detailed guidance on customization, please refer to the [PrimeVue Styled Mode Docs](https://primevue.org/theming/styled/).
186
+
187
+
## PrimeVue v4 w/ Tailwind CSS
154
188
155
-
Please reference the [PrimeVue Styled Mode Docs](https://primevue.org/theming/styled/) to fully understand how this system works, and how to further customize your theme to make it your own.
189
+
To clarify, Tailwind is **not** used for any component styling in this starter kit; instead, we use PrimeVue's styled mode with a custom theme preset implementation for component styling. Tailwind is applied solely for layout purposes **around** PrimeVue components and for minimal styling when needed.
0 commit comments