-
Notifications
You must be signed in to change notification settings - Fork 1
Home
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, and the demo app. It is recommended to only change fonts, font sizes, and margins/padding in thebase/theme.css
file
Then to change images, colors, borders and filters, edit both
dark/theme.css
andlight/theme.css
Images should go in the
img
folder of each theme, preferred file format issvg
, rasterized formats are fine (png
,jpeg
,gif
) for complex images.
Once your theme is done, you should compress it using csso for the
dark
andlight
files
csso -i theme.css -o theme.min.css
Once your theme is compressed, add a readme.txt
file respecting the following format
@Theme:com-your_company-name_of_theme
@Author:your_company
@Version:1.0.0.0
Your theme will be verified then added to the catalog if it passes quality control