* feat: add CSS counter for figure captions
* Add translations for figure captions prefix
Added translations for Czech, Danish, German, Spanish, French and
Italian, from their respective `babel-<lang>` LaTeX packages.
Allow some few customization options for table borders and column alignment.
- For custom borders: adds classes `border-<position>-<weight>` for `top`, `right`, `top`, `bottom` and `thin`/`thick` respectively. Use with the `borders-custom` class.
- For custom column alignment: adds classes `col-<num>-l`, `col-<num>-c`, `col-<num>-r` for `num` being the n-th column of the table from 1 to 12.
* Turn all colors into variables
This turns each color into a $elem(-$pseudo)-$attribute named variable
on the :root element and replaces their usage by calling the var()
function instead.
* Add dark mode colors
This overrides the colors when prefers-color-scheme is set to dark,
indicating the user has configured their OS or user-agent to prefer
a light text on dark background instead. It includes a way to manually
toggle dark mode by using a data attribute on the html element.
The syntax highlight colors are also updated to support dark mode.
* feat: improve dark mode implementation and docs
- Dark mode based on classes, with three options
- light mode (default, no changes needed)
- auto dark mode (based on prefers-color-scheme; latex-dark-auto class on body)
- dark mode (latex-dark class on body)
- Removed the mention of dark mode from the lead and moved it to the getting started section
- Moved the dark mode section up, since it is a pretty important feature imo.
- Added a dark mode toggle button for demo
- Added a CSS filter to the proof symbol so that it shows up as dark grey instead of white
- Built the project to generate the minified css file
Co-authored-by: Vincent Dörig <dvincdt@gmail.com>
Chinese words using default font seems a little bit weird, so I rewrite the 'font-family' rule and add 3 fonts for OS compatibility. By the way, I also update languages.html for your convenience.