1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-10-02 13:37:21 +02:00
5 Creating your own themes
GilbN edited this page 2020-08-16 19:31:11 +02:00

To create your own themes you only need the change the color variables in each theme. You dont need the edit the app-base.css.

You can either fork the repo and setup a Github pages site or clone it to your web server and serve the files that way.

You can't use the raw link as Github doesn't pass the mime types. That's why all my theme urls use the https://gilbn.github.io site.


Example

Open the theme css file you want to change and look at the variables available. Copy them to a new file. Remember to also include the @import line.

If you have forked the repo and want to stay up to date with any changes I make, use the https://gilbn.github.io URL and not your own!

Add the theme to your service and load the page. If you press F12 and go to the Elements tab and scroll down you should see the variables in the root pseudo-class. Try and disable one of them and you'll see what each variable does.

The --main-bg-color will "always" be the background color. And the --modal-bg-color will "always" be the background for the popup modals.

If you click on the color a color picker will pop up and you can change the color live.

If you add a gradient from one of the links below, remember to not overwrite the center center/cover no-repeat fixed in the variables. Doing so might make the colors look a little wierd on small objects like drop down menus.

When you're done add the theme like you normally would. https://github.com/gilbN/theme.park#setup


The links below are some great resources on finding cool gradients.

If you find a particular colored theme you feel should be added to the repo let me know on discord!

https://cssgradient.io/

https://uigradients.com/

https://mycolor.space/gradient

https://www.css-gradient.com/

https://gradienthunt.com/

https://www.gradientmagic.com