Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Inline Color Swatch

suika225suika225176 downloads

Show color swatches for CSS color values in inline code.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

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)
HealthExcellent
ReviewSatisfactory
About
Show a small color preview next to supported CSS color values written in inline code spans, matching GitHub-Flavored Markdown behavior. Support hex (#RGB, #RRGGBB, #RGBA, #RRGGBBAA), rgb/rgba and hsl/hsla formats (case-insensitive) and ignore code blocks.
CSSAppearanceVisualization
Details
Current version
0.1.2
Last updated
6 months ago
Created
9 months ago
Updates
3 releases
Downloads
176
Compatible with
Obsidian 1.12.4+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
suika225suika225
GitHubsuika225
  1. Community
  2. Plugins
  3. CSS
  4. Inline Color Swatch

Related plugins

Style Settings

Adjust theme, plugin, and snippet CSS variables.

Custom Font Loader

Customize your vault with any font you want (+ Support for Android and iOS).

Lapel

Show the heading levels in the gutter of the editor.

Snippetor

Create and tweak common snippets.

Show Whitespace

CSS styles and CM6 extensions to highlight whitespace in Source and Live Preview modes.

Focus Mode

Add a toggle to hide interface elements so you can focus on your note.

Fontsource

Load custom fonts from Fontsource into your notes.

Animated Cursor

Simple yet smooth animated cursor.

Better Bullets

Improves readability of bulleted notes.

Galaxy View

Cinematic 3D graph view of your vault — fly through your notes like NASA Eyes.