fix(css): correct @source paths — Tailwind was scanning no shared packages

app.css lives at apps/mana/apps/web/src/app.css — five directory
levels below the repo root. All existing @source directives used
four ../ segments, resolving to apps/packages/... which does not
exist. Tailwind silently scanned nothing.

Consequence: arbitrary-value utilities only used inside shared
packages (e.g. bg-[hsl(var(--color-muted))] in GlobalSettingsSection)
were never generated. Standard utilities kept working because they
also appear in app sources, but the language / week-start / sounds
buttons in the settings Allgemein tab rendered transparent.

- Bump every @source to 5x ../ so it points into /packages
- Drop the non-existent shared-subscription-ui entry
- Add subscriptions and credits, whose .svelte files also use
  arbitrary-value classes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-04-15 22:17:15 +02:00
parent e8077a44b4
commit 5ae7f99fe1

View file

@ -1,14 +1,16 @@
@import 'tailwindcss';
@import '@mana/shared-tailwind/themes.css';
/* Scan shared packages for Tailwind classes */
@source "../../../../packages/shared-ui/src";
@source "../../../../packages/shared-auth-ui/src";
@source "../../../../packages/shared-branding/src";
@source "../../../../packages/shared-theme-ui/src";
@source "../../../../packages/shared-theme-ui/src/components";
@source "../../../../packages/shared-theme-ui/src/pages";
@source "../../../../packages/shared-subscription-ui/src";
/* Scan shared packages for Tailwind classes.
app.css is at apps/mana/apps/web/src/app.css five levels below repo root. */
@source "../../../../../packages/shared-ui/src";
@source "../../../../../packages/shared-auth-ui/src";
@source "../../../../../packages/shared-branding/src";
@source "../../../../../packages/shared-theme-ui/src";
@source "../../../../../packages/shared-theme-ui/src/components";
@source "../../../../../packages/shared-theme-ui/src/pages";
@source "../../../../../packages/subscriptions/src";
@source "../../../../../packages/credits/src";
@layer base {
:root {