feat: UnoCSS (TailwindCSS) (Storybook only) (#61)

* feat: unocss (wip)

* feat: unocss (storybook only)

* cleanup unocss config

* revert button.stories.tsx changes
This commit is contained in:
Razboy20
2024-02-03 15:21:19 -06:00
committed by doprz
parent bb3b313fd2
commit 85c7f7817c
10 changed files with 427 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
import react from '@vitejs/plugin-react-swc';
import { resolve } from 'path';
import UnoCSS from 'unocss/vite';
import Icons from 'unplugin-icons/vite';
import { defineConfig } from 'vite';
@@ -12,7 +13,7 @@ console.log(root);
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), Icons({ compiler: 'jsx', jsx: 'react' })],
plugins: [react(), UnoCSS(), Icons({ compiler: 'jsx', jsx: 'react' })],
resolve: {
alias: {
src: root,