Inline Color Swatch

by suika225
5
4
3
2
1
Score: 35/100

Description

This plugin has not been manually reviewed by Obsidian staff. Show color swatches for CSS color values in inline code.

Reviews

No reviews yet.

Stats

stars
downloads
0
forks
1
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Inline Color Swatches

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:

  • ✅ Inline code spans (`...`) are supported
  • ❌ Code blocks (```...```) are intentionally excluded

Supported formats

  • Hex: #RRGGBB, #RGB, #RRGGBBAA, #RGBA
  • RGB(A): rgb(R,G,B), rgb(R,G,B,A) (case-insensitive)
  • HSL(A): 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.

Syntax & examples

#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 previews

Theme Light mode Dark mode
Default Default Theme(Light mode) Default Theme(Dark mode)
Minimal Minimal Theme(Light mode) Minimal Theme(Dark mode)
Things Things Theme(Light mode) Things Theme(Dark mode)