
obsidian-ui-lab
Reusable Markdown layouts and CSS snippets for building polished UI components in Obsidian.
Obsidian UI Lab
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.

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
π Color Reference Table
A compact visual reference table for displaying color swatches and structured data.

The underlying table component is intentionally generic and can also be adapted for:
- Design tokens
- Project references
- Status lists
- Inventories
- Structured datasets
π¬ Chat UI
A simple chat-style conversation using native Obsidian callouts.

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
The chat system will grow modularly with replies, images, galleries, and reactions.
Reply Messages
Add compact quoted-message previews inside chat bubbles.

Includes
- Original message preview
- Reply author
- Automatic truncation
- Left/right styling
Image Messages
Display native Obsidian image embeds inside chat bubbles.

Includes
- Left/right image messages
- Responsive images
- Rounded corners
- Optional captions
- Timestamps and read receipts
Image Gallery
Display multiple native Obsidian image embeds as compact chat galleries.

Includes
- Two-column image grid
- Left/right galleries
- Consistent image cropping
- Timestamps and read receipts
Message Reactions
Add emoji reactions and optional reaction counts beneath chat messages.

Includes
- Single or multiple reactions
- Reaction counts
- Automatic left/right positioning
- Support for text, image, and gallery messages
Complete Chat Example
See the full modular chat system working together in one conversation.

Includes:
- Text messages
- Replies
- Image messages
- Image galleries
- Reactions
- Timestamps and read receipts
π 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.
π§© 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:
π 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.
How to Install
- Download the repository ZIP below
- Unzip it and find the CSS snippet file
- Move the CSS file into your vault's
.obsidian/snippets/folder - Open Obsidian β Settings β Appearance β CSS Snippets β Enable it
Stats
Stars
2
Forks
0
License
MIT
Last updated 1mo ago
Categories
Tags