Files
mono/shared/static/styles/tailwind.css
giles 01a67029f0 Replace Tailwind CDN with pre-built CSS via standalone CLI
- Add shared/static/styles/tailwind.css as Tailwind v4 input with
  explicit @source paths for all service templates and safelisted
  dynamic classes (bg-{colour}-{shade}, text-{size})
- Build to shared/static/styles/tw.css (93KB minified)
- Replace <script src="cdn.tailwindcss.com"> with <link> to tw.css
  in sx page shell, Jinja _head.html, and ~base-shell component
- Add build-tw.sh convenience script

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 17:23:20 +00:00

31 lines
1.1 KiB
CSS

@import "tailwindcss" source(none);
/* Scan all template and component files */
@source "../../../shared/sx/templates";
@source "../../../shared/browser/templates";
@source "../../../shared/static/scripts";
@source "../../../blog/sx";
@source "../../../blog/templates";
@source "../../../market/sx";
@source "../../../market/templates";
@source "../../../cart/sx";
@source "../../../cart/templates";
@source "../../../events/sx";
@source "../../../events/templates";
@source "../../../federation/sx";
@source "../../../federation/templates";
@source "../../../account/sx";
@source "../../../account/templates";
@source "../../../orders/sx";
@source "../../../orders/templates";
/* Dynamic classes from ~menu-row-sx: bg-{colour}-{shade}
colour defaults to "sky", shade = 500 - (level * 100) for levels 0-4 */
@source inline("bg-sky-{100,200,300,400,500}");
@source inline("bg-stone-{100,200,300,400,500}");
@source inline("bg-emerald-{100,200,300,400,500}");
@source inline("bg-amber-{100,200,300,400,500}");
/* Dynamic text size in ~status-pill: text-{sz} */
@source inline("text-{xs,sm,base,lg}");