I've been playing with CSS variables to theme the site.
Currently, there are 2 live --theme-background and --theme-top-bar-background but I have a few more waiting to be pulled.
--theme-background
--theme-top-bar-background
If the awaiting styles get accepted you'd be able to do something like this.
:root { --theme-background: antiquewhite; --theme-top-bar-background: cadetblue; --theme-top-bar-color: darkslategray; --theme-top-bar-search-background: darkslategray; --theme-top-bar-search-color: gainsboro; }
A browser extension that let you pick colours for these variables and then remembered them each time you came to the site would be awesome! 😀
If you did want to look at the rollout or even help with it here's the place to look.
I thought we ought to have a place where we keep a note of the current CSS Variables and also propose different variables that should be included.
Currently included:
#f9f9fa
#fdf9f3
Pull request pending:
--theme-top-bar-color
#0a0a0a
--theme-top-bar-search-background
#e8e7e7
--theme-top-bar-search-color
Proposed:
--theme-color
--theme-container-background
#ffffff
--theme-container-color
I think the best thing to do is leave a comment below of further proposals and I will update the main post.
Also feel free to do pull requests to help roll these out.
The possibilities are endless with this one!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I've been playing with CSS variables to theme the site.
Currently, there are 2 live
--theme-background
and--theme-top-bar-background
but I have a few more waiting to be pulled.If the awaiting styles get accepted you'd be able to do something like this.
A browser extension that let you pick colours for these variables and then remembered them each time you came to the site would be awesome! 😀
If you did want to look at the rollout or even help with it here's the place to look.
[WIP] Theme-able CSS Variables #1377
I thought we ought to have a place where we keep a note of the current CSS Variables and also propose different variables that should be included.
Currently included:
--theme-background
#f9f9fa
--theme-top-bar-background
#fdf9f3
Pull request pending:
--theme-top-bar-color
#0a0a0a
--theme-top-bar-search-background
#e8e7e7
--theme-top-bar-search-color
#0a0a0a
Proposed:
--theme-color
#0a0a0a
--theme-container-background
#ffffff
--theme-container-color
#0a0a0a
I think the best thing to do is leave a comment below of further proposals and I will update the main post.
Also feel free to do pull requests to help roll these out.
The possibilities are endless with this one!