- Notifications
You must be signed in to change notification settings - Fork1
Theme color editor for wiki.gg wikis
License
NotificationsYou must be signed in to change notification settings
cadon/themeColorEditor
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Theme color editor for wiki.gg wikis.
- Adjust color variables of wiki themes with a color picker or indirect definitions based on other colors
- Live preview of the set colors on other wiki pages
- Display of needed contrasts between colors
- buttons for automatic contrast fixing
Run this script in the browser console of a wiki page with a specific table of defined color variables, e.g. on...wiki.gg/wiki/MediaWiki:Common.css
. The variable table needs to have the following format
<table><tr><th>Variable name</th><th>Color</th><th>Notes</th><th>Test contrast against these variables</th></tr><tr><td>--wiki-body-background-color</td><tdstyle="background-color:var(--wiki-body-background-color);"></td><td>The background color behind the background image.</td><tdstyle="background-color:var(--wiki-body-background-color);"><p><spanstyle="color:var(--wiki-body-dynamic-color);">--wiki-body-dynamic-color</span><br><spanstyle="color:var(--wiki-body-dynamic-color--secondary);">--wiki-body-dynamic-color--secondary</span></p></td></tr></table>
The needed contrast for a variable in the contrast column defaults to therecommended value of 4.5. This needed contrast can be adjusted by setting thedata-min-contrast
attribute of the span element of the variable to the desired value. E.g. to have a contrast variable that needs a contrast of only 3, use
<spanstyle="color:var(--var-name);"data-min-contrast="3">--var-name</span>
About
Theme color editor for wiki.gg wikis
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Contributors2
Uh oh!
There was an error while loading.Please reload this page.