Theme
Theme
Component demo
Theme details
Props
All components also accept native properties supported by the DOM, such asclassName
and
style
.
|
|
|
---|---|---|
|
The brand colour. Can be a hex value e.g. "#ff0000", RGB e.g. "rgb(255, 0, 0)", or RGBA e.g. "rgba(255, 0, 0, 1)". |
|
|
The theme mode. Can be "dark", "light", or "system". "system" will use the device or browser settings. |
|
The brand colour. Can be a hex value e.g. "#ff0000", RGB e.g. "rgb(255, 0, 0)", or RGBA e.g. "rgba(255, 0, 0, 1)". |
The theme mode. Can be "dark", "light", or "system". "system" will use the device or browser settings. |
Events
All components also accept native events supported by the DOM, such as
onClick
and
onKeyDown
.
|
|
|
---|---|---|
|
|
|
|
Variants
Hex code brand
Dark mode
See the
Interactive example
<ic-buttononclick="handleClick()">Update ic-theme</ic-button><ic-themeclass="theme-container"theme="light"><ic-alertheading="Set at component level"variant="info"theme="light"></ic-alert><ic-alertheading="Inherits from ic-theme"variant="info"></ic-alert></ic-theme><ic-alertheading="Inherits from system/browser settings"variant="info"></ic-alert>