-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Eric edited this page Jan 23, 2020
·
24 revisions
This repository is a catalog of themes for OGX.JS. All themes support
light
and darkthemes
.
Clone then copy the desired theme in your
www/themes
folder of your OGX.JS app.
Edit your
index.html
to reflect the chosen themes by replacing[name]
by the name of the theme.
<link href="themes/[name]/base/css/theme.min.css" rel="stylesheet" type="text/css">
<link href="themes/[name]/light/css/theme.min.css" rel="stylesheet" media="(prefers-color-scheme: light)" type="text/css">
<link href="themes/[name]/dark/css/theme.min.css" rel="stylesheet" media="(prefers-color-scheme: no-preference), (prefers-color-scheme: dark)" type="text/css">
If you want to force a theme if the end user has no preference, add
no-preference
to the media attribute of either thedark
orlight
theme
"(prefers-color-scheme: no-preference)"
Base your work upon the
io-globules-raw
theme, which is the uncompressed default theme. It is recommended to only change fonts, font sizes, and margins/padding in thebase/theme.css
file
Then to change colors, borders and filters, edit both
dark/theme.css
andlight/theme.css