mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:41:09 +02:00
Pre-launch theme system audit found multiple parallel layers in themes.css
(--theme-X full hsl strings, --X partial shadcn aliases, --color-X populated
by runtime store with raw channels) plus dead-code companion files. The
inconsistency caused light-mode regressions when scoped-CSS consumers
wrote `var(--color-X)` standalone — the variable holds raw HSL channels
which is invalid as a color value, browser fell back to inherited (white).
Rewrite to one consistent layer:
- Source of truth: --color-X defined as raw HSL channels (e.g.
`0 0% 17%`) in :root, .dark, and all variant [data-theme="..."]
blocks. Matches the format the runtime store
(@mana/shared-theme/src/utils.ts) writes, eliminating the
static-fallback-vs-runtime mismatch and the corresponding flash
of unstyled content on hydration.
- @theme inline uses self-reference + Tailwind v4 <alpha-value>
placeholder so utility classes generate correctly AND opacity
modifiers work: `text-foreground/50` → `hsl(var(--color-foreground) / 0.5)`.
- @layer components (.btn-primary, .card, .badge, etc.) wraps
var(--color-X) refs with hsl() — they were broken in light mode
too for the same reason.
Convention going forward (also documented in the file header):
1. Markup: use Tailwind utility classes (text-foreground, bg-card, …)
2. Scoped CSS: hsl(var(--color-X)) — always wrap with hsl()
3. NEVER raw var(--color-X) in CSS — that's the bug pattern
Net file: 692 → 580 LOC. Single source layer, no indirection.
Also delete dead companion files (zero imports anywhere):
- tailwind-v4.css (had broken self-reference, never imported)
- theme-variables.css (legacy hex-based palette)
- components.css (legacy component utilities)
- index.js / preset.js / colors.js (Tailwind v3 preset format,
irrelevant under Tailwind v4)
package.json exports map shrinks accordingly to just `./themes.css`.
Consumers using `hsl(var(--color-X))` (~379 files across mana-web,
manavoxel-web, arcade-web) keep working unchanged — the public API
name `--color-X` is preserved. Only the broken pattern `var(--color-X)`
(~61 files) needs a follow-up sweep, handled in a separate commit.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| apps/landing | ||
| docs | ||
| packages/shared | ||
| CLAUDE.md | ||
| package.json | ||
| README.md | ||
Kalender
Smart Calendar Management - Organisiere deine Zeit intelligent
Eine vollständige Kalender-Anwendung mit persönlichen und geteilten Kalendern, wiederkehrenden Terminen, CalDAV/iCal-Synchronisation und Erinnerungen.
Features
- Mehrere Kalender - Verwalte verschiedene Kalender für Arbeit, Privates, Familie
- Kalenderansichten - Tag, Woche, Monat, Agenda
- Wiederkehrende Termine - Flexible Wiederholungsregeln (RFC 5545)
- Kalender teilen - Mit Familie, Freunden oder Kollegen
- CalDAV/iCal Sync - Google Calendar, Apple, Outlook
- Smarte Erinnerungen - Push & E-Mail Benachrichtigungen
- Multi-Sprache - Deutsch, English, Français, Español, Italiano
Quick Start
# 1. PostgreSQL starten (falls nicht läuft)
docker compose -f docker-compose.dev.yml up -d postgres
# 2. Datenbank erstellen
PGPASSWORD=devpassword psql -h localhost -U mana -d postgres -c "CREATE DATABASE calendar;"
# 3. Schema pushen
pnpm calendar:db:push
# 4. Backend + Web starten
pnpm dev:calendar:app
Apps
| App | Port | Beschreibung |
|---|---|---|
| Backend | 3014 | NestJS REST API |
| Web | 5179 | SvelteKit Web-App |
| Landing | 4322 | Astro Marketing-Seite |
| Mobile | - | Expo App (TODO) |
Tech Stack
- Backend: NestJS, Drizzle ORM, PostgreSQL
- Web: SvelteKit, Svelte 5, Tailwind CSS
- Landing: Astro, Tailwind CSS
- Auth: Mana Auth (JWT)
Dokumentation
Siehe CLAUDE.md für die vollständige technische Dokumentation.
Entwicklung
# Einzelne Apps starten
pnpm dev:calendar:backend # Backend
pnpm dev:calendar:web # Web-App
pnpm dev:calendar:landing # Landing Page
# Datenbank
pnpm calendar:db:push # Schema pushen
pnpm calendar:db:studio # Drizzle Studio öffnen
API Endpunkte
| Modul | Endpunkt | Beschreibung |
|---|---|---|
| Health | GET /api/v1/health |
Health Check |
| Calendars | GET/POST /api/v1/calendars |
Kalender CRUD |
| Events | GET/POST /api/v1/events |
Termine CRUD |
| Reminders | POST /api/v1/events/:id/reminders |
Erinnerungen |
| Shares | POST /api/v1/calendars/:id/shares |
Freigaben |
| Sync | POST /api/v1/sync/caldav/discover |
CalDAV |
Lizenz
Proprietär - Mana