feat: add global server custom CSS

This commit is contained in:
ajnart committed 2026-08-31 13:47:37 +02:00
1 parent ee30aa13cf
commit e617a47395
10 files changed
+118 -70

No files matched your search

+2
View File
@@ -51,6 +51,7 @@ export const brandingServerSettingsSchema = z.object({
signInBackgroundOverlay: z.number().min(0).max(0.9),
authBranding: authBrandingSchema,
defaultRadius: z.enum(brandingRadiusOptions),
customCss: z.string().max(16_384),
});
export type BrandingSettings = z.infer<typeof brandingServerSettingsSchema>;
@@ -71,6 +72,7 @@ export const defaultBrandingSettings: BrandingSettings = {
showGreeting: true,
},
defaultRadius: "md",
customCss: "",
};
const hasDefaultBrandingColors = (branding: Pick<BrandingSettings, "primaryColor" | "secondaryColor">) =>
+5
View File
@@ -5972,6 +5972,7 @@
"groups": {
"identity": "Identity",
"appearance": "Appearance",
"customCss": "Custom CSS",
"authentication": "Authentication"
},
"identity": {
@@ -6018,6 +6019,10 @@
"xl": "Soft"
}
},
"customCss": {
"label": "Global custom CSS",
"description": "Applied to every page. Board custom CSS can override it."
},
"authVisibility": {
"description": "Choose what appears on every authentication page.",
"appName": "Application name",