Improve light/dark theme toggle

This commit is contained in:
2026-01-16 20:25:50 +01:00
parent eb6b6bccef
commit 1ba204fbdc
14 changed files with 190 additions and 65 deletions
+17 -3
View File
@@ -4,6 +4,7 @@ initialize: npm css migrate sethookdir loadplatforms
HTMLFILES := $(shell find games/templates -type f)
PYTHON_VERSION = 3.12
.PHONY: build frontend-dev frontend-build
npm:
npm install
@@ -24,13 +25,26 @@ init:
poetry install
npm install
# Run Django, Tailwind, and Vite development servers concurrently
dev:
@npx concurrently \
--names "Django,Tailwind" \
--prefix-colors "blue,green" \
--names "Django,Tailwind,Vite" \
--prefix-colors "blue,green,yellow" \
"poetry run python -Wa manage.py runserver" \
"npx tailwindcss -i ./common/input.css -o ./games/static/base.css --watch"
"npx tailwindcss -i ./common/input.css -o ./games/static/base.css --watch" \
"npm run dev"
# Only start the Vite development server
frontend-dev:
npm run dev
# Build frontend assets for production
build: frontend-build collectstatic
# Only build frontend assets
frontend-build:
@echo "Building frontend assets with Vite..."
npm run build
caddy:
caddy run --watch