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

S-Color-Inline

Abdulkader SafiAbdulkader Safi

Show color swatches next to CSS color values in inline code.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

An Obsidian plugin that puts a small color swatch next to any CSS color you write in inline code. Type `#0080ff` and you see the color right beside it.

It works in Live Preview and Reading view. Fenced code blocks are skipped on purpose, so a CSS file pasted into a note stays clean.

Supported formats

Format Examples
Hex #0fa #ff0f #0080ff #ff008080
RGB / RGBA rgb(128,128,128) rgba(0,255,255,0.5)
HSL / HSLA hsl(150,50%,90%) hsla(32,100%,50%,0.8)

Case doesn't matter, so RGB(...) and #FFF work too. The color has to fill the whole code span: `#fff` gets a swatch, `color: #fff` does not.

Install

Manual

  1. Download main.js, manifest.json and styles.css from the latest release.
  2. Put them in <your vault>/.obsidian/plugins/s-color-inline/.
  3. Reload Obsidian and turn on S-Color-Inline under Settings > Community plugins.

From source

git clone https://github.com/Abdulkader-Safi/s-color-inline.git
cd s-color-inline
npm install
npm run build

Use npm run dev to rebuild on every save while you work.

Screenshots

Theme Light Dark
Default Default theme, light Default theme, dark
Minimal Minimal theme, light Minimal theme, dark
Things Things theme, light Things theme, dark

Credits

Based on Inline Color Swatch by Suika, released under MIT.

License

MIT. See LICENSE.

HealthExcellent
ReviewSatisfactory
About
Display a small color swatch beside inline CSS color codes (hex, RGB(A), HSL(A)), case-insensitive. Skip fenced code blocks and show swatches only when the inline code contains just the color; apply in Live Preview and Reading view.
CSSVisualization
Details
Current version
1.0.0
Last updated
6 hours ago
Created
6 hours ago
Updates
1 release
Compatible with
Obsidian 1.12.4+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Ko-fi
Author
Abdulkader SafiAbdulkader Safiabdulkader-safi
abdulkadersafi.com
GitHubabdulkader-safi
safi-studio.com
abdulkader.safi
abdulkader-safi
ko-fi.com
  1. Community
  2. Plugins
  3. CSS
  4. S-Color-Inline

Related plugins

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

Admonition

Admonition block-styled content.

ExcaliBrain

An interactive, structured mind-map of your Obsidian vault.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Custom Frames

Turn web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.

Maps

Adds a map layout to bases so you can display notes as an interactive map view.

Style Settings

Adjust theme, plugin, and snippet CSS variables.

CSS Editor

Edit CSS snippet files.