Skip to content

Commit

Permalink
Merge pull request mouseless#60 from dncsvr/issue/primevue-form
Browse files Browse the repository at this point in the history
Issue / PrimeVue From
  • Loading branch information
dncsvr authored Nov 14, 2024
2 parents fdf2150 + 39e1660 commit c993f0b
Show file tree
Hide file tree
Showing 7 changed files with 4,291 additions and 4,129 deletions.
8 changes: 8 additions & 0 deletions .theme/assets/tailwind.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@layer tailwind-base {
@tailwind base;
}

@layer tailwind-utilities {
@tailwind components;
@tailwind utilities;
}
4 changes: 4 additions & 0 deletions .theme/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,16 @@ img.nuxt:is(.logo) {
div.logo {
margin: 2em 0;
a {
display: inline-flex;
}
a+a {
padding-left: 1em;
}
img.logo {
height: var(--height-logo);
display: inline;
}
@media (max-width: 800px) {
Expand Down
25 changes: 24 additions & 1 deletion .theme/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
import { joinURL } from "ufo";
import Aura from "@primevue/themes/aura";
import { definePreset } from "@primevue/themes";

const Mouseless = definePreset(Aura, {
semantic: {
primary: {
50: "{red.50}",
950: "{red.950}"
}
}
});

export default defineNuxtConfig({
app: {
Expand Down Expand Up @@ -83,7 +94,16 @@ export default defineNuxtConfig({
generate: {
routes: ["/not-found"]
},
modules: ["@nuxt/content", "@pinia/nuxt"],
modules: ["@nuxt/content", "@pinia/nuxt", "@nuxtjs/tailwindcss", "@primevue/nuxt-module"],
primevue: {
options: {
theme: {
preset: Mouseless
}
},
cssLayerOrder: "tailwind-base, primevue, tailwind-utilities",
autoImport: true
},
nitro: {
prerender: {
ignore: [
Expand Down Expand Up @@ -120,5 +140,8 @@ export default defineNuxtConfig({
}
}
}
},
tailwindcss: {
cssPath: ["~/assets/tailwind.css"]
}
});
Loading

0 comments on commit c993f0b

Please sign in to comment.