javalent / admonitions

Adds admonition block-styled content to Obsidian.md
MIT License
1.04k stars 67 forks source link

Add extra support for coloring: HSL, HSB, HSV, HEX, RGB. Now we can u… #334

Closed xRyul closed 1 month ago

xRyul commented 4 months ago

Pull Request Description

Make it easier for the user to change HUE, Saturation, Lightness / Brightness by adding support for HSL, HSB/HSV.

Changes Proposed

Checklist

Screenshots:

image image image

Additional Notes

HSB (Hue, Saturation, Brightness) and HSL (Hue, Saturation, Lightness) color models are often considered more intuitive and user-friendly than RGB. For instance, if you want to lighten a color, you can simply increase the lightness value in HSL. In RGB or HEX, you would need to adjust three values simultaneously.

This also allows to create more harmonious callouts. For example, you can create a monochromatic color scheme by keeping the hue constant and varying the saturation and brightness/lightness.

BEGIN_COMMIT_OVERRIDE feat: Adds support for HSL, HSB, HSV, HEX and RGB colors in Admonition definitions (thanks @xRyul ) END_COMMIT_OVERRIDE