Skip to content

Conversation

@uncenter
Copy link
Member

@uncenter uncenter commented Jul 10, 2025

Proof-of-concept that sets up a "userstyles standard library" that is imported and utilized to include the palette(s), variable definitions, copy-pasted utils, etc.

To-do

  • Publish lib/ folder to https://userstyles.catppuccin.com/lib
  • Refactor all userstyles tree-wide to use new lib
    • Remove @catppuccin and @catppuccin-filters palettes
    • Replace palette variable decls with #userstyles.palette()
    • Replace default styles with #userstyles.defaults()
    • Replace palette CSS variable decls with #userstyles.css-variables()
    • Replace #rgbify and #hslify uses
    • Replace syntax highlighting import URLs with lib functions? (Would allow us to update all usages of the syntax highlighting libraries to a new version at once, for better or worse). #userstyles.highlighting.prismjs("3.1") (with version param?)
  • Test effects of importing lib in every userstyle - network requests, caching.
  • Test for breakage.
  • Generate lib with scripts?
  • Investigate using "lib" structure for other shared userstyles code
    • Google's M3 variables?
    • Bootstrap variables?
    • MediaWiki?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant