set up tailwindcss

This commit is contained in:
Brad Warren
2025-10-30 11:47:28 -07:00
committed by Brad Warren
parent a16fb9b678
commit f5360b042c
5 changed files with 583 additions and 69 deletions
+565 -67
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -16,9 +16,11 @@
},
"license": "MIT",
"dependencies": {
"@tailwindcss/vite": "^4.1.16",
"@tauri-apps/api": "^2",
"@tauri-apps/plugin-opener": "^2",
"@tauri-apps/plugin-shell": "^2.3.3"
"@tauri-apps/plugin-shell": "^2.3.3",
"tailwindcss": "^4.1.16"
},
"devDependencies": {
"@eslint/js": "^9.38.0",
+7
View File
@@ -0,0 +1,7 @@
@import 'tailwindcss';
@theme {
--color-rayhunter-blue: #4e4eb1;
--color-rayhunter-dark-blue: #3f3da0;
--color-rayhunter-green: #94ea18;
}
+6
View File
@@ -0,0 +1,6 @@
<script>
import '../app.css';
let { children } = $props();
</script>
{@render children()}
+2 -1
View File
@@ -1,12 +1,13 @@
import { defineConfig } from 'vite';
import { sveltekit } from '@sveltejs/kit/vite';
import tailwindcss from '@tailwindcss/vite';
// @ts-expect-error process is a nodejs global
const host = process.env.TAURI_DEV_HOST;
// https://vitejs.dev/config/
export default defineConfig(async () => ({
plugins: [sveltekit()],
plugins: [sveltekit(), tailwindcss()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//