mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-20 03:41:25 +02:00
refactor(tailwind): centralize @source list in @mana/shared-tailwind/sources.css
Each consuming app was duplicating eight @source directives with hand- counted relative paths (../../../../../packages/…). The mana web app's were off-by-one for months before anyone noticed, silently disabling the scan for every shared-ui file. Tailwind v4 resolves @source paths relative to the CSS file that declares them, so we can drop the list once into packages/shared-tailwind/src/ sources.css. Consumer apps now just add one more @import next to themes.css: @import "tailwindcss"; @import "@mana/shared-tailwind/themes.css"; @import "@mana/shared-tailwind/sources.css"; New package.json export: "./sources.css". Drop the local paths from the mana web app's app.css. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
fc028fa8f0
commit
a524997a2f
3 changed files with 29 additions and 12 deletions
|
|
@ -1,16 +1,6 @@
|
|||
@import 'tailwindcss';
|
||||
@import '@mana/shared-tailwind/themes.css';
|
||||
|
||||
/* 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";
|
||||
@import '@mana/shared-tailwind/sources.css';
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue