This commit is contained in:
bjarneo 2024-10-29 18:53:43 +01:00
parent ca304fc8aa
commit 4eabc1cbb1
No known key found for this signature in database
GPG Key ID: AA3697C46F530672
6 changed files with 212 additions and 662 deletions

View File

@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@font-face {
@ -165,10 +169,6 @@ html {
min-height: 200px;
}
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
html {
@apply font-sans bg-gray-900 text-gray-100;

830
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -97,7 +97,7 @@
"react-redux": "^9.1.2",
"redux": "^5.0.1",
"tailwindcss": "^3.4.14",
"vite": "^4.2.1",
"vite": "^5.4.10",
"zustand": "^5.0.0"
},
"lint-staged": {

6
postcss.config.js Normal file
View File

@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};

View File

@ -2,7 +2,7 @@ const colors = require('tailwindcss/colors');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./client/**/*.{js,jsx}', './client/**/*.html'],
content: ['./client/**/*.{js,jsx}', , './client/**/*.html'],
darkMode: 'class',
theme: {
extend: {

View File

@ -1,19 +1,23 @@
import reactVite from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vite';
const path = fileURLToPath(import.meta.url);
const root = resolve(dirname(path), 'client');
export default defineConfig(() => {
return {
root,
build: {
outDir: 'build',
import tailwindcss from 'tailwindcss';
export default defineConfig({
root,
build: {
outDir: 'build',
},
publicDir: 'public',
plugins: [react()],
css: {
postcss: {
plugins: [tailwindcss()],
},
publicDir: 'public',
plugins: [reactVite({ jsxRuntime: 'automatic' })],
};
},
});