Skip to content

Commit e86a719

Browse files
authored
Merge pull request #27 from connorabbas/develop
Tailwind v4, Vite v6, Fixes
2 parents 736261a + 72ab31b commit e86a719

23 files changed

+944
-1468
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Vue SPA w/ PrimeVue & Laravel Breeze API Starter Kit
2+
3+
![Static Badge](<https://img.shields.io/badge/Vue.js%20-%20v3.5%20-%20rgb(66%20184%20131)>) ![Static Badge](https://img.shields.io/badge/PrimeVue%20-%20v4%20-%20rgb(16%20185%20129)) ![Static Badge](https://img.shields.io/badge/Tailwind%20CSS%20-%20v4%20-%20%230284c7)
4+
25
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.
36

47
An alternative to using the [Laravel, Inertia.js, & PrimeVue Starter Kit](https://github.com/connorabbas/laravel-inertia-primevue).

package-lock.json

Lines changed: 862 additions & 1334 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,26 @@
1313
"@eslint/js": "^9.18.0",
1414
"@primevue/auto-import-resolver": "^4.2.5",
1515
"@primevue/themes": "^4.2.5",
16+
"@tailwindcss/vite": "^4.0.0",
1617
"@typescript-eslint/eslint-plugin": "^8.19.1",
1718
"@typescript-eslint/parser": "^8.19.1",
1819
"@vitejs/plugin-vue": "^5.0.5",
1920
"@vueuse/core": "^12.2.0",
20-
"autoprefixer": "^10.4.19",
2121
"axios": "^1.7.2",
2222
"eslint": "^9.18.0",
2323
"eslint-config-prettier": "^9.1.0",
2424
"eslint-plugin-vue": "^9.32.0",
2525
"nprogress": "^0.2.0",
2626
"pinia": "^2.1.7",
27-
"postcss": "^8.4.39",
28-
"postcss-import": "^16.1.0",
2927
"primeicons": "^7.0.0",
3028
"primevue": "^4.2.5",
31-
"tailwindcss": "^3.4.4",
29+
"tailwindcss": "^4.0.0",
3230
"tailwindcss-primeui": "^0.3.4",
3331
"typescript": "^5.7.3",
3432
"typescript-eslint": "^8.19.1",
3533
"unplugin-vue-components": "^0.27.4",
36-
"vite": "^5.3.1",
34+
"vite": "^6.0",
3735
"vue": "^3.5.0",
3836
"vue-router": "^4.4.0"
3937
}
40-
}
38+
}

postcss.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import './assets/css/app.css';
2+
import './assets/css/tailwind.css';
23
import 'nprogress/nprogress.css';
34
import 'primeicons/primeicons.css';
45

src/assets/css/app.css

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
@import "custom.css";
2-
@import "custom-preflight.css" layer(tailwind-base);
3-
4-
@layer tailwind-base, primevue, tailwind-utilities;
1+
html {
2+
/* font size will determine the component/utility scaling */
3+
font-size: 14px;
4+
}
55

6-
@layer tailwind-utilities {
7-
@tailwind components;
8-
@tailwind utilities;
6+
body {
7+
margin: 0 !important;
8+
padding: 0 !important;
99
}
1010

11-
@layer components {
12-
.dynamic-bg {
13-
@apply bg-surface-0 dark:bg-surface-900;
14-
}
15-
.dynamic-border {
16-
@apply border-surface-200 dark:border-surface-800;
17-
}
11+
#nprogress .bar {
12+
background: var(--p-primary-500) !important;
13+
z-index: 9999999 !important;
1814
}

src/assets/css/custom.css

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/assets/css/tailwind.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@layer tailwind-theme, tailwind-base, primevue, tailwind-utilities;
2+
3+
@import 'tailwindcss/theme.css' layer(tailwind-theme);
4+
@import './custom-preflight.css' layer(tailwind-base);
5+
/* @import "tailwindcss/preflight.css" layer(tailwind-base); */
6+
@import 'tailwindcss/utilities.css' layer(tailwind-utilities);
7+
8+
@plugin 'tailwindcss-primeui';
9+
10+
@custom-variant dark (&:where(.dark, .dark *));
11+
12+
@theme {
13+
--font-sans: Inter, sans-serif;
14+
}
15+
16+
@utility dynamic-bg {
17+
@apply bg-surface-0 dark:bg-surface-900;
18+
}
19+
20+
@utility dynamic-border {
21+
@apply border-surface-200 dark:border-surface-800;
22+
}

src/components/Container.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defineProps({
1414
</script>
1515

1616
<template>
17-
<div :class="[{ 'max-w-screen-xl mx-auto': !fluid }, spacedMobile ? 'px-4' : 'px-0', 'md:px-8']">
17+
<div :class="[{ 'max-w-(--breakpoint-2xl) mx-auto': !fluid }, spacedMobile ? 'px-4' : 'px-0', 'md:px-8']">
1818
<slot />
1919
</div>
2020
</template>

src/components/PrimeVue/LinksMenuBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ defineExpose({
2828
custom
2929
>
3030
<!-- add if using 'nora' preset theme -->
31-
<!-- hover:text-primary-100 hover:dark:text-primary-950 -->
31+
<!-- hover:text-primary-100 dark:hover:text-primary-950 -->
3232
<a
3333
:href="href"
3434
v-bind="props.action"

0 commit comments

Comments
 (0)