catppuccin / userstyles

🖌 Soothing pastel userstyles
MIT License
471 stars 137 forks source link

feat(mdbook): appply accent-color to links and sidebar text #949

Closed AxerTheAxe closed 4 months ago

AxerTheAxe commented 4 months ago

🔧 What does this fix? 🔧

As things are now, the accent color is almost never used throughout MDbook. This fixes that by changing the link and active sidebar text to use the accent-color instead of always appearing blue.

🗒 Checklist 🗒

uncenter commented 4 months ago

Thanks for making this PR! As the mdBook userstyle is based on the upstream https://github.com/catppuccin/mdbook port, you'll need to make a PR with these changes there first. If/when merged there, we can merge this. Apologies for the confusion!

AxerTheAxe commented 4 months ago

Thanks for the info! I will create a upstream PR shortly.

AxerTheAxe commented 4 months ago

Upstream gets it's colors from https://github.com/catppuccin/palette which as far as I can tell does not have any way of defining an accent color. Is there any way around this?

uncenter commented 4 months ago

Upstream gets it's colors from catppuccin/palette which as far as I can tell does not have any way of defining an accent color. Is there any way around this?

Ah, you are right. I think we can't really do this one, and links anyway are technically supposed to blue/lavender...

AxerTheAxe commented 4 months ago

Okay. Thanks for taking time to review this!

uncenter commented 4 months ago

Sorry again!