Please help us improve existing skins and create new ones. Pull requests are welcome!
- If you haven't yet, first install Darkness locally
- Run
npm start
to watch SCSS files and compile them in real-time.
Edit /themes/websites/[KEY].scss
(e.g. /themes/websites/youtube.scss
)
Just run gulp skin:create --key=[KEY]
where [KEY] is lowercase and alphanumeric (e.g. bbc, googledrive).
Then follow the instructions:
- Edit
/js/background/config.js
and add your website to CONFIG.sites, use [KEY] as a key - Browse to
chrome://extensions/
and reload the Darkness extension - Edit your new skin:
/themes/websites/[KEY].scss
- Don't forget to run
npm start
to watch SCSS files and compile them in real-time.
Edit /themes/themes/[THEME].scss
(e.g. /themes/themes/material.scss
)
Open /themes/themes/THEME-TEMPLATE.scss
in your code editor and follow the instructions.
- Please test your changes locally in Chrome
- Commit and push:
cd darkness
git add .
git commit -m "Description of Changes"
git push origin master
- Go to GitHub and navigate to your fork of Darkness.
- Click the New pull request button (above the file list)
- Click the Create pull request button.
- Add a description for your pull request and click Create pull request
- To compile all SASS files now:
gulp sass:compile
- To watch all SASS files and compile in real-time:
gulp sass:watch
(alias:npm start
) - To clean up all .css and .css.map files:
gulp sass:cleanup
After installling Darkness locally, the 1st remote is origin, which points to your fork on GitHub (use it to push and pull). The 2nd remote that is added by you is upstream that points to the original Darkness repo (use it to fetch and make pull requests). See diagram.