obsidian-ui-lab

obsidian-ui-lab

Reusable Markdown layouts and CSS snippets for building polished UI components in Obsidian.

Obsidian UI Lab

License: MIT Release

Reusable Markdown layouts and CSS components for making Obsidian more visual.

Obsidian UI Lab is a growing collection of small, copy-friendly UI components for Obsidian. Each component includes a working example, the required CSS, and simple customization guidance.

Use the whole vault as a playground, or copy only the components you want.

No giant theme. No unnecessary plugins. Just reusable pieces.


✨ Components

🎨 Color Swatch Cards

A responsive card grid for displaying color palettes and reference values inside Obsidian.

Color Swatch Cards

Features

  • Responsive grid layout
  • Clean card design
  • Supports custom colors and CSS variables
  • Works with native HTML inside Obsidian notes
  • Light and dark theme friendly
  • No third-party plugins required

View component β†’


πŸ“‹ Color Reference Table

A compact visual reference table for displaying color swatches and structured data.

Color Reference Table

The underlying table component is intentionally generic and can also be adapted for:

  • Design tokens
  • Project references
  • Status lists
  • Inventories
  • Structured datasets

View component β†’


πŸ’¬ Chat UI

A simple chat-style conversation using native Obsidian callouts.

Basic Chat Bubbles

Features

  • Left and right message bubbles
  • Message tails
  • Timestamps
  • Read receipts
  • Date separators
  • Responsive message width
  • Scrollbar fixes for Obsidian callouts
  • No third-party plugins required

View component β†’

The chat system will grow modularly with replies, images, galleries, and reactions.

Reply Messages

Add compact quoted-message previews inside chat bubbles. Reply Messages

Includes

  • Original message preview
  • Reply author
  • Automatic truncation
  • Left/right styling

View component β†’

Image Messages

Display native Obsidian image embeds inside chat bubbles.

Image Messages

Includes

  • Left/right image messages
  • Responsive images
  • Rounded corners
  • Optional captions
  • Timestamps and read receipts

View component β†’

Image Gallery

Display multiple native Obsidian image embeds as compact chat galleries.

Image Gallery

Includes

  • Two-column image grid
  • Left/right galleries
  • Consistent image cropping
  • Timestamps and read receipts

View component β†’

Message Reactions

Add emoji reactions and optional reaction counts beneath chat messages.

Message Reactions

Includes

  • Single or multiple reactions
  • Reaction counts
  • Automatic left/right positioning
  • Support for text, image, and gallery messages

View component β†’

Complete Chat Example

See the full modular chat system working together in one conversation.

Complete Chat Example

Includes:

  • Text messages
  • Replies
  • Image messages
  • Image galleries
  • Reactions
  • Timestamps and read receipts

View complete example β†’


πŸš€ Quick Start

Use the whole vault

Clone the repository:

git clone https://github.com/CallisteVariks/obsidian-ui-lab.git

Then open the cloned folder as a vault in Obsidian.

Use only one component

Each component page tells you exactly which CSS snippet it needs.

CSS snippets live in:

.obsidian/snippets/

Copy the required snippet into the same folder in your own vault, then enable it under:

Settings β†’ Appearance β†’ CSS snippets

For complete instructions:

Read the installation guide β†’


🎨 Shared Color System

Obsidian UI Lab includes an optional shared color system:

.obsidian/snippets/custom-colors.css

Components can reference reusable variables such as:

var(--ui-purple)
var(--ui-soft-purple)
var(--ui-blue)
var(--ui-green)

For example:

color: var(--ui-purple);
background: var(--ui-soft-purple);

The shared palette helps components feel consistent, but components are designed to remain customizable and independent wherever possible.

View custom colors β†’


🧩 CSS Snippets

Current snippets:

.obsidian/snippets/
β”œβ”€β”€ custom-colors.css
β”œβ”€β”€ color-swatch-cards.css
β”œβ”€β”€ reference-table.css
β”œβ”€β”€ chat-core.css
β”œβ”€β”€ chat-replies.css
β”œβ”€β”€ chat-images.css
β”œβ”€β”€ chat-gallery.css
└── chat-reactions.css

Dependencies and available classes are documented here:

CSS Snippets β†’


πŸ“ Project Structure

obsidian-ui-lab/
β”‚
β”œβ”€β”€ README.md
β”œβ”€β”€ .gitignore
β”‚
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ screenshots/
β”‚   └── examples/
β”‚
β”œβ”€β”€ 00 - Start Here/
β”‚   β”œβ”€β”€ How to Install.md
β”‚   β”œβ”€β”€ CSS Snippets.md
β”‚   └── Custom Colors.md
β”‚
β”œβ”€β”€ 01 - Color UI/
β”‚   β”œβ”€β”€ Color Swatch Cards.md
β”‚   └── Color Reference Table.md
β”‚
β”œβ”€β”€ 02 - Chat UI/
β”‚   β”œβ”€β”€ Basic Chat Bubbles.md
β”‚   β”œβ”€β”€ Reply Messages.md
β”‚   β”œβ”€β”€ Image Messages.md
β”‚   β”œβ”€β”€ Image Gallery.md
β”‚   └── Message Reactions.md
β”‚
└── .obsidian/
    └── snippets/
        β”œβ”€β”€ custom-colors.css
        β”œβ”€β”€ color-swatch-cards.css
        β”œβ”€β”€ reference-table.css
        β”œβ”€β”€ chat-core.css
        β”œβ”€β”€ chat-replies.css
        β”œβ”€β”€ chat-images.css
        β”œβ”€β”€ chat-gallery.css
        └── chat-reactions.css

πŸ› οΈ Design Principles

Components in Obsidian UI Lab aim to be:

  • Easy to copy
  • Easy to understand
  • Easy to customize
  • Independent where possible
  • Consistent where useful
  • Plugin-free unless explicitly stated

Take one component, take several, or use the entire vault.


πŸ—ΊοΈ Coming Next

More UI

  • Cards
  • Image layouts
  • Journaling layouts
  • Trackers
  • Dashboards
  • Navigation components
  • Creative writing UI
  • Interface-inspired components

πŸ’œ About

Obsidian UI Lab is an evolving personal collection of UI experiments turned into reusable components.

More components coming soon.


πŸ“„ License

This project is available under the MIT License.

Feel free to use, modify, and adapt the components for your own projects.

Related

How to Install

  1. Download the repository ZIP below
  2. Unzip it and find the CSS snippet file
  3. Move the CSS file into your vault's .obsidian/snippets/ folder
  4. Open Obsidian β†’ Settings β†’ Appearance β†’ CSS Snippets β†’ Enable it

Stats

Stars

2

Forks

0

License

MIT

Last updated 1mo ago

Categories

Tags

csscss-snippetsmarkdownnote-takingobsidianobsidian-cssobsidian-mdproductivityui-components