ConusAI vendor v0.1.0-dev.20261027+9b1131fb
ci / gate (push) Waiting to run

This commit is contained in:
ConusAI vendor v0.1.0-dev.20261027+9b1131fb
2026-10-27 18:05:17 +00:00
commit 3102273ec7
538 changed files with 80203 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
// An organization's brand as the stylesheet layer it becomes, and the numbers behind it. A file of
// the contract because both halves of the module use it: the organization layout writes the style on
// the server (so the first paint is already branded), and the settings page's preview computes the
// same thing in the browser as a person chooses a colour. One function, so the preview cannot say
// something the page then does not do.
import { type BrandReport, themeStyle } from "@conusai-kit/brand"
import type { BrandView } from "./view.js"
export function tenantStyle(brand: Pick<BrandView, "primary" | "accent">): {
style: Record<string, string>
report: BrandReport
} {
return themeStyle({
...(brand.primary === null ? {} : { primary: brand.primary }),
...(brand.accent === null ? {} : { accent: brand.accent }),
})
}