-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add modern SASS compiler support
- Loading branch information
Showing
25 changed files
with
2,605 additions
and
1,949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export default defineNuxtConfig({ | ||
compatibilityDate: '2024-08-15', | ||
// ssr: false, | ||
sourcemap: true, | ||
imports: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
</NuxtLayout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@use 'vuetify/settings' with ( | ||
$button-font-weight: 700, | ||
); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@use 'vuetify' with ( | ||
$utilities: false, | ||
$color-pack: false, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* DON'T USE @use here */ | ||
@forward 'vuetify/settings' with ( | ||
$utilities: false, | ||
$button-height: 40px, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<script setup lang="ts"> | ||
// | ||
</script> | ||
|
||
<template> | ||
<v-container> | ||
<v-row> | ||
<v-col> | ||
<v-sheet | ||
class="pa-4 d-flex align-center flex-column" | ||
rounded="lg" | ||
> | ||
<NuxtPage /> | ||
</v-sheet> | ||
</v-col> | ||
</v-row> | ||
</v-container> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
export default defineNuxtConfig({ | ||
compatibilityDate: '2024-08-15', | ||
sourcemap: true, | ||
imports: { | ||
autoImport: true, | ||
injectAtEnd: true, | ||
}, | ||
modules: ['@unocss/nuxt', 'vuetify-nuxt-module'], | ||
vuetify: { | ||
moduleOptions: { | ||
ssrClientHints: { | ||
reloadOnFirstRequest: false, | ||
prefersColorScheme: true, | ||
prefersColorSchemeOptions: { | ||
useBrowserThemeOnly: false, | ||
}, | ||
viewportSize: true, | ||
}, | ||
styles: { configFile: 'assets/custom-vuetify.scss' }, | ||
}, | ||
}, | ||
vite: { | ||
clearScreen: false, | ||
define: { | ||
'process.env.DEBUG': false, | ||
}, | ||
build: { | ||
target: 'esnext', | ||
}, | ||
vue: { | ||
script: { | ||
propsDestructure: true, | ||
}, | ||
}, | ||
}, | ||
routeRules: { | ||
'/no-ssr': { ssr: false }, | ||
}, | ||
nitro: { | ||
esbuild: { | ||
options: { | ||
target: 'esnext', | ||
}, | ||
}, | ||
}, | ||
app: { | ||
baseURL: '/', | ||
head: { | ||
meta: [ | ||
{ charset: 'utf-8' }, | ||
], | ||
}, | ||
}, | ||
css: ['~/assets/main.scss'], | ||
features: { | ||
devLogs: false, | ||
inlineStyles: false, | ||
}, | ||
experimental: { | ||
payloadExtraction: false, | ||
typedPages: false, | ||
watcher: 'parcel', | ||
}, | ||
devtools: { | ||
enabled: true, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "vuetify-nuxt-modern-sass-playground", | ||
"type": "module", | ||
"private": true, | ||
"scripts": { | ||
"dev": "nuxi dev", | ||
"build": "nuxi build", | ||
"generate": "nuxi generate" | ||
}, | ||
"dependencies": { | ||
"@iconify-json/mdi": "^1.1.68", | ||
"vuetify": "^3.7.0" | ||
}, | ||
"devDependencies": { | ||
"@nuxt/devtools": "latest", | ||
"@unocss/nuxt": "^0.62.1", | ||
"nuxt": "^3.12.4", | ||
"sass": "^1.77.8", | ||
"sass-embedded": "^1.77.8", | ||
"typescript": "^5.5.4", | ||
"vue-tsc": "^2.0.29", | ||
"vuetify-nuxt-module": "workspace:*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template> | ||
<div> | ||
<v-btn>Button</v-btn> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "./.nuxt/tsconfig.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { defineConfig, presetIcons } from 'unocss' | ||
|
||
export default defineConfig({ | ||
presets: [ | ||
presetIcons({ | ||
scale: 1.2, | ||
}), | ||
], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { md3 } from 'vuetify/blueprints' | ||
import { defineVuetifyConfiguration } from 'vuetify-nuxt-module/custom-configuration' | ||
|
||
export default defineVuetifyConfiguration({ | ||
ssr: { | ||
clientWidth: 100, | ||
}, | ||
blueprint: md3, | ||
theme: { | ||
defaultTheme: 'light', | ||
themes: { | ||
light: { | ||
dark: false, | ||
}, | ||
dark: { | ||
dark: true, | ||
}, | ||
}, | ||
}, | ||
date: { | ||
adapter: 'vuetify', | ||
}, | ||
icons: { | ||
defaultSet: 'unocss-mdi', | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.