Themable Products With Theming Parameters And Modern CSS
summary
Demonstrates how UI5 1.127 exposes CSS custom properties so a demo “flower” control goes from hardcoded colors and JS/build steps to purely CSS-driven theming, using container style queries and OKLCH relative colors to lighten/darken, map SAP theming parameters and compute contrast. It targets SAP’s four base themes (light, dark, HC white, HC black), meets 7.5:1 contrast goals using the 0.623 threshold, and reports no measurable performance hit.
AI-written summary · about
chapters (12)
- 0:00Welcome and Intro
- 1:07Themable Products With Theming Parameters And Modern CSS
- 2:06Why theming matters
- 4:12How it was done
- 8:46Use CSS custom properties
- 10:46Demo
- 13:20Demo: Theme-dependent values
- 16:04Demo: Relative colors
- 23:06Demo: Contrast
- 25:56Demo: Contrast with theme-dependent colors
- 32:10What could be next
- 35:23Q&A
