Commit Graph

3 Commits

Author SHA1 Message Date
Huang, Zhaoquan
b63c195a10 Use data-theme attribute for theme switching and set color-scheme (#1808)
- Update theme toggle and initialization scripts to set data-theme attribute
- Replace CSS selectors using .dark class with [data-theme="dark"] and 
  [data-theme="light"] attribute selectors
- Set CSS color-scheme variable alongside theme colors for better native 
  control appearance
- Removes redundant styles

---------

Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2025-10-26 18:51:50 +05:30
Aditya Telange
045c08496d Highlight.js -> Hugo's chromastyles (#1364)
* remove hljs

* rename var --hljs-bg to --code-block-bg

* bundle chroma-styles from css/includes/chroma-styles.css

* add compatibility fixes for papermod <-> chroma

* fix line-num and line padding and set width for line container to 100%

* After a lot of experimentation this compatiblity should work well

* fix inline line highlights not working

* Use catppuccin-macchiato as default theme with highlightStyle 'bg:#474733'

- hugo gen chromastyles --style catppuccin-macchiato --highlightStyle 'bg:#474733' > assets/css/includes/chroma-styles.css
2023-12-31 10:27:54 +05:30
Aditya Telange
0ed246d47d Seperate scroll-bar customization into seperate stylesheet 2022-06-03 18:32:09 +05:30