generated from unpreset/unocss-preset-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
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
4,563 additions
and
20 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 |
---|---|---|
|
@@ -12,4 +12,7 @@ export default defineBuildConfig({ | |
externals: [ | ||
'unocss', | ||
], | ||
hooks: { | ||
|
||
}, | ||
}) |
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,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>UnoCSS Preset Palette</title> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="./main.tsx"></script> | ||
</body> | ||
<style> | ||
html, | ||
body, | ||
#app { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
</style> | ||
|
||
</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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { createApp, ref } from 'vue' | ||
import 'uno.css' | ||
|
||
type ModeType = 'light' | 'dark' | 'cafe' | ||
|
||
createApp({ | ||
setup() { | ||
const modes: ModeType[] = ['light', 'dark', 'cafe'] | ||
|
||
const index = ref(0) | ||
|
||
function toggle() { | ||
index.value = index.value + 1 | ||
if (index.value >= modes.length) | ||
index.value = 0 | ||
} | ||
|
||
return () => ( | ||
<div class="bg-secondary duration-300 flex h-full w-full items-center justify-center"> | ||
<div class="bg-white text-pink-3 text-4xl animate__backInDown animate__animated" > | ||
Animate | ||
</div> | ||
</div> | ||
) | ||
}, | ||
}).mount('#app') |
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,17 @@ | ||
import { defineConfig } from 'vite' | ||
|
||
import jsx from '@vitejs/plugin-vue-jsx' | ||
|
||
import uno from 'unocss/vite' | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig(() => ({ | ||
base: '/', | ||
|
||
plugins: [ | ||
jsx(), | ||
uno({ | ||
configFile: '../uno.config.ts', | ||
}), | ||
], | ||
})) |
Oops, something went wrong.