Skip to content

CSP import url should un-capitalise the theme and the accent names. #362

@DNM1008

Description

@DNM1008

The line to import catppuccin Stylus is as follows:

@import url("https://catppuccin.github.io/discord/dist/catppuccin-" + theme + "-" + accent + ".theme.css") */
Because the settings for the style has the first letters capitalised ("Macchiato" and "Flamingo" in my case), it fails to load the theme. However, if I manually change the url to "https://catppuccin.github.io/discord/dist/catppuccin-" +"macchiato"+ "-" +"flamingo"+ ".theme.css" (or just make it 1 string), the theme loads just fine.

I see that there are var selection above, but there must be something wrong with it, so I don't know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions