Skip to content

uche789/theme-css-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Theme CSS example

An example of multiple theme support using CSS variables.

DEMO

Solution

Global CSS variables are usually defined in the :root selector.

Default variables:

:root {
    --font-family: Georgia, Cambria, san-serif;
    --text-color: #000;
}

Default variables:

:root {
    --font-family: 'Open Sans', sans-serif;
    --text-color: #666;
}

About

Theme customization using CSS variables with support for IE and legacy browsers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published