suika22537 downloadsShow color swatches for CSS color values in inline code.
Inline Color Swatches shows a small color preview next to supported CSS color values written in inline code spans.
This plugin follows GitHub Flavored Markdown behavior:
`...`) are supported```...```) are intentionally excluded#RRGGBB, #RGB, #RRGGBBAA, #RGBArgb(R,G,B), rgb(R,G,B,A) (case-insensitive)hsl(H,S,L), hsl(H,S,L,A) (case-insensitive)[!note]
- Uppercase and lowercase letters are not distinguished.
- Supported color models cannot use any characters that contain leading or trailing whitespace within backquotes.
#RRGGBB #RGB #RRGGBBAA #RGBA#0080ff #0fa #ff008080 #ff0f
rgb(R,G,B) rgb(R,G,B,A)RGB(128,128,128) rgb(0,255,255,100)
hsl(H,S,L) hsl(H,S,L,A)HSL(150,50%,90%) hsl(32,100%,50%,100)
| Theme | Light mode | Dark mode |
|---|---|---|
| Default | ![]() |
![]() |
| Minimal | ![]() |
![]() |
| Things | ![]() |
![]() |