Lynx
Search Docs
K
Guide
APIs
Blog
Contribute
简体中文
English
Guide
APIs
Blog
Contribute
简体中文
English
Menu
ON THIS PAGE
Using CSS Descendant Selectors to Switch Themes
Defining CSS Themes
Applying CSS Styles
Switching Theme Styles
Example
Using CSS Variables to Switch Themes
Defining CSS Themes
Applying CSS Styles
Switching Theme Styles
Directly Changing CSS Variable Values with JS
Indirectly Changing Variable Values by Switching Classes
Example
Leveraging CSS Inheritance As Needed
How to Enable CSS Inheritance
Default Inherited Properties
CSS Inheritance Rules
Custom Inheritable Properties
Limitations of CSS Inheritance
ON THIS PAGE
Using CSS Descendant Selectors to Switch Themes
Defining CSS Themes
Applying CSS Styles
Switching Theme Styles
Example
Using CSS Variables to Switch Themes
Defining CSS Themes
Applying CSS Styles
Switching Theme Styles
Directly Changing CSS Variable Values with JS
Indirectly Changing Variable Values by Switching Classes
Example
Leveraging CSS Inheritance As Needed
How to Enable CSS Inheritance
Default Inherited Properties
CSS Inheritance Rules
Custom Inheritable Properties
Limitations of CSS Inheritance
Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.