2022-04-03 20:10:43 +00:00
|
|
|
styles.alv.cx
|
2022-04-13 16:09:20 +00:00
|
|
|
=============
|
2022-04-03 20:10:43 +00:00
|
|
|
|
|
|
|
central styling repo and domain
|
|
|
|
|
|
|
|
|
2022-04-13 16:09:20 +00:00
|
|
|
to style a site:
|
2022-04-03 20:10:43 +00:00
|
|
|
|
2022-04-13 16:09:20 +00:00
|
|
|
1. put this at the top of a css file somewhere:
|
|
|
|
|
2022-04-13 16:28:29 +00:00
|
|
|
@import url("https://styles.alv.cx/colors/<colorscheme>.css");
|
2022-04-03 20:25:01 +00:00
|
|
|
@import url("https://styles.alv.cx/base.css");
|
2022-04-03 20:10:43 +00:00
|
|
|
|
2022-04-13 16:15:02 +00:00
|
|
|
replacing <colorscheme> with one of the options available at
|
2022-04-13 16:55:16 +00:00
|
|
|
`https://styles.alv.cx/colors`
|
2022-04-13 16:09:20 +00:00
|
|
|
|
|
|
|
2. add any of the optional modules you want.
|
2022-04-13 16:55:16 +00:00
|
|
|
3. a list of actively hosted modules can be seen in this repo in the modules folder
|
|
|
|
and at `https://styles.alv.cx/modules/`
|
2022-04-13 01:45:08 +00:00
|
|
|
|
2022-04-13 16:55:16 +00:00
|
|
|
variables and colors available
|
|
|
|
------------------------------
|
2022-04-13 01:45:08 +00:00
|
|
|
|
2022-04-13 16:55:16 +00:00
|
|
|
there are some variables you may want to use to keep your site's styling
|
|
|
|
consistent and you can view them in the `:root` section of `base.css` and any
|
|
|
|
module you use.
|
|
|
|
|
|
|
|
the variables defined in `base.css` are:
|
|
|
|
|
|
|
|
--fg
|
|
|
|
--bg
|
|
|
|
|
|
|
|
--light
|
|
|
|
--dark
|
|
|
|
|
|
|
|
you should prefer to use `--fg` and `--bg` over `--light` and `--dark` as that
|
|
|
|
will take of dark mode switching for you.
|
|
|
|
|
|
|
|
every colorscheme will have a standard set of variables, which can be viewed at
|
|
|
|
`https://styles.alv.cx/colors.txt` .
|
|
|
|
|
|
|
|
some modules may have variables which can be adjusted also, such as `rainbow.css`.
|