-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
128 additions
and
232 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 |
---|---|---|
|
@@ -9,3 +9,4 @@ lib-cov | |
logs | ||
node_modules | ||
temp | ||
.svelte-kit |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 +1,5 @@ | ||
<script>import "../app.pcss";</script><slot></slot> | ||
<script> | ||
import '@unocss/reset/tailwind.css'; | ||
import 'virtual:uno.css'; | ||
</script> | ||
<slot></slot> |
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 was deleted.
Oops, something went wrong.
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 @@ | ||
// unocss.config.ts | ||
import { defineConfig, presetUno } from "unocss" | ||
import presetAnimations from "unocss-preset-animations" | ||
import { presetShadcn } from "unocss-preset-shadcn" | ||
|
||
export default defineConfig({ | ||
presets: [ | ||
presetUno(), | ||
presetAnimations(), | ||
presetShadcn({ | ||
color: "red", | ||
}), | ||
], | ||
// By default, `.ts` and `.js` files are NOT extracted. | ||
// If you want to extract them, you can use the following configuration. | ||
// It's necessary to add following configuration if you are using shadcn-vue. | ||
content: { | ||
pipeline: { | ||
include: [ | ||
/\.(vue|svelte|[jt]s|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/, | ||
], | ||
}, | ||
}, | ||
}) |
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,6 +1,14 @@ | ||
import { sveltekit } from "@sveltejs/kit/vite" | ||
import extractorSvelte from "@unocss/extractor-svelte" | ||
import UnoCSS from "unocss/vite" | ||
import { defineConfig } from "vite" | ||
|
||
export default defineConfig({ | ||
plugins: [sveltekit()], | ||
plugins: [ | ||
UnoCSS({ | ||
extractors: [extractorSvelte()], | ||
/* more options */ | ||
}), | ||
sveltekit(), | ||
], | ||
}) |
Oops, something went wrong.