No description
Find a file
2026-07-21 15:37:37 +05:30
.github Create dependabot.yml 2026-06-14 01:27:14 -06:00
src Update colorParser.ts 2026-05-12 15:53:10 -06:00
.all-contributorsrc Simplify .all-contributorsrc configuration 2026-05-18 06:59:54 -06:00
.editorconfig i can't believe it's not butte- my usual directory structure! 2026-01-25 21:03:37 -07:00
.gitignore Stuff 2026-01-25 22:17:13 -07:00
.npmrc i can't believe it's not butte- my usual directory structure! 2026-01-25 21:03:37 -07:00
esbuild.config.mjs Le big cleanup starts 2026-04-30 20:37:09 +00:00
eslint.config.mjs That... wasn't as bad as I thought!! 2026-04-30 21:02:04 +00:00
LICENSE i can't believe it's not butte- my usual directory structure! 2026-01-25 21:03:37 -07:00
manifest.json 1.0.1 - Obsidian Release 2026-05-12 16:06:07 -06:00
package-lock.json Bump typescript from 6.0.3 to 7.0.2 2026-07-21 10:06:38 +00:00
package.json Bump typescript from 6.0.3 to 7.0.2 2026-07-21 10:06:38 +00:00
README.md Update README with availability information 2026-05-12 15:59:12 -06:00
tsconfig.json Le big cleanup starts 2026-04-30 20:37:09 +00:00
version-bump.mjs i can't believe it's not butte- my usual directory structure! 2026-01-25 21:03:37 -07:00
versions.json 1.0.1 - Obsidian Release 2026-05-12 16:06:07 -06:00

Obsidian-IroView

All Contributors GitHub Actions Workflow Status GitHub License

Preview HEX, HSL, and RGB colors directly in your Obsidian notes, just like VSCode's color preview.
Available on Obsidian!

Features

  • Color preview: Instantly see color swatches for HEX, RGB(A), and HSL(A) values in your notes
  • Live in editor and reading view: Works in both editing and preview modes
  • Customizable: Toggle swatches, text colorization, and supported formats
  • Contrast-aware: Only colorizes text if it remains readable
  • Performance optimized: Efficiently processes large notes

Supported Formats

  • HEX: #RGB, #RRGGBB, #RGBA, #RRGGBBAA
  • RGB/RGBA: rgb(255, 0, 0), rgba(255, 0, 0, 0.5)
  • HSL/HSLA: hsl(120, 100%, 50%), hsla(120, 100%, 50%, 0.5)

Settings

  • Show color swatch: Display a small colored square before color values
  • Colorize text: Apply the color to the text itself (if contrast is good)
  • Enable in reading view: Show previews in rendered Markdown
  • Supported color formats: Toggle which color formats are recognized

Example

Type any of these in your note:

#ff0000
rgb(255, 0, 0)
hsl(0, 100%, 50%)

And see a color preview appear inline!

Installation

You can install IroView directly from Obsidians Community Plugins browser (or online here).

  1. Open Settings -> Community Plugins
  2. Make sure Restricted Mode is off
  3. Click Browse
  4. Search for “IroView”
  5. Click Install, then Enable

Manual

If you prefer installing manually:

  1. Download the latest release from the repos Releases page
    • You need:
      • main.js
      • manifest.json
      • styles.css (if present)
  2. Create a folder in your vault:
    .obsidian/plugins/iroview
    
  3. Place all downloaded files inside that folder
  4. Restart Obsidian
  5. Go to Settings -> Community Plugins and enable IroView

Technical Details

  • Built with TypeScript and CodeMirror 6
  • Uses Obsidian's popout-compatible activeDocument for DOM operations
  • Efficient regex-based color detection

Star History

Star History Chart

Contributors