Appearance
Change the appearance of Kor controls at runtime.
Set appearance from JavaScript
Load kor/ui/Theme and pass the settings you want to update. mode accepts light, dark or system. density accepts cozy or compact. Use a six-digit hexadecimal accent and a radius in pixels.
sap.ui.require(["kor/ui/Theme"], (Theme) => {
Theme.set({ mode: "system", accent: "#0B7A5B", density: "compact", radius: 8 });
});Use CSS variables
Kor loads kor.css independently of the SAP theme. In application CSS, use variables such as --kor-canvas, --kor-surface, --kor-ink and --kor-line to style surrounding content. Theme.set applies the mode and density to the document root, so the change also applies to overlays outside the view. Choose the SAP theme separately for any SAP controls in the same application.
Try the controls on the Theme page.