npx create-vitenpm install
npm run dev
npm install tailwindcss @tailwindcss/vite zustand
删除App.css
删除App.tsx 的UI代码
删除index.css全部内容
import tailwindcss from '@tailwindcss/vite'@import "tailwindcss";
@custom-variant dark (&:where(.dark, .dark *));
@theme {
--color-bg: 255 255 255;
--color-box: 255 255 255;
--color-border: 229 231 235;
--box-sd: 226 232 240;
--heading-1: 23 37 78;
--heading-2: 31 41 51;
--heading-3: 55 65 81;
}
html.dark {
--color-bg: 3 7 8;
--color-box: 17 24 39;
--color-border: 243 244 246 / 0.1;
--box-sd: transparent;
--heading-1: 255 255 255;
--heading-2: 243 244 246;
--heading-3: 209 213 219;
}
@layer utilities {
.bg-body {
background-color: rgb(var(--color-bg));
}
.bg-box {
background-color: rgb(var(--color-box));
}
.text-heading-1 {
color: rgb(var(--heading-1));
}
.text-heading-2 {
color: rgb(var(--heading-2));
}
.text-heading-3 {
color: rgb(var(--heading-3));
}
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Raleway', sans-serif;
} runs-on: self-hostedsudo -u runner pm2 start/stop/restart/delete/logs