-
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
lightanddarkthemes.
Clone then copy the desired theme in your
www/themesfolder of your OGX.JS app.
Edit your
index.htmlto 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-preferenceto the media attribute of either thedarkorlighttheme
"(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 the
base/theme.cssfile
Then to change images, colors, borders and filters, edit both
dark/theme.cssandlight/theme.css
Images should go in the
imgfolder 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
base,darkandlightfiles
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
@Description:additional info
Your theme will be verified then added to the catalog if it passes quality control