From dbb7a0348b62e4727a7593e0707e4bb33a61d17e Mon Sep 17 00:00:00 2001 From: Justin Reiners Date: Thu, 26 Mar 2026 17:27:37 -0500 Subject: [PATCH] fix: apply org branding via inline style attribute instead of style tag Inline style on the wrapper div overrides @theme CSS variables via CSS cascade (element styles beat stylesheet :root). This reliably applies per-tenant branding regardless of stylesheet load order. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/app.css | 10 ---------- src/routes/(public)/+layout.svelte | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/app.css b/src/app.css index f0aee2e..ada40f1 100644 --- a/src/app.css +++ b/src/app.css @@ -1,16 +1,6 @@ @import 'tailwindcss'; @theme { - --color-primary: initial; - --color-primary-light: initial; - --color-primary-dark: initial; - --color-accent: initial; - --color-accent-light: initial; - --color-accent-dark: initial; - --color-warm-bg: initial; -} - -:root { --color-primary: #0d9488; --color-primary-light: #14b8a6; --color-primary-dark: #0f766e; diff --git a/src/routes/(public)/+layout.svelte b/src/routes/(public)/+layout.svelte index db14f84..c1828e8 100644 --- a/src/routes/(public)/+layout.svelte +++ b/src/routes/(public)/+layout.svelte @@ -9,10 +9,10 @@ - {@html ``} + -
+