Blendcss is a free project. You can grab the files from this repo here
BlendCSS is a drop-in UI framework for Blender addon developers. Design responsive N-Panel interfaces with Flexbox, gradients, shadows, vector SVG icons, and live previews all rendered natively on Blender's GPU and automatically synced with the user's Blender Dark or Light theme.
Every panel below is rendered live on Blender's GPU with BlendCSS (full source in demo/showcase_panels.py):
No pip install or external setup required — just drop the self-contained blendcss/ folder into your addon:
my_addon/
├── __init__.py
└── blendcss/ <-- Copy this folder into your addon
├── __init__.py
├── panel.py
├── ui.py
├── core/
├── widgets/
└── binaries/ <-- Prebuilt Windows x64 & Linux x64 binaries included
Subclass blendcss.Panel and implement draw(self, ui, context) just like a standard Blender panel — with full CSS styling:
from . import blendcss CSS = """ .action-btn { border-radius: 6px; background-color: var(--bl-accent); color: var(--bl-accent-text); } .action-btn:hover { background-color: var(--bl-accent-hover); } """ class MyToolPanel(blendcss.Panel): addon_id = "my_tool" category = "My Tab" label = "My Tool" css = CSS def draw(self, ui, context): obj = context.active_object with ui.card(title=obj.name if obj else "No Selection"): if obj: ui.number("Scale X", bind=(obj, "scale", 0), step=0.02) ui.toggle("Wireframe", bind=(obj, "show_wire")) ui.operator("object.duplicate", "Duplicate", cls="action-btn", linked=False) def register(): blendcss.register(MyToolPanel) def unregister(): blendcss.unregister(MyToolPanel)
Enable your addon in Blender, press N in the 3D Viewport, and open My Tab.
-
Three ways to build UI: Immediate-mode
draw(self, ui, context)(closest to Blender'sPanel.draw), retained-modebuild(self, ui)+on_sync(), or external.htmland.cssfiles with one-clickself.reload(). - Ready-to-use widgets: Cards, sections, rows, columns, dividers, headings, labels, badges, progress bars, buttons, operator buttons, scrubbable number fields, toggle switches, segmented tabs, choice chips, vector icons, and live images.
-
Two-way data bindings: Bind directly to Blender object/scene properties, Python dicts, or callables. Number fields support horizontal drag-scrubbing (
Shiftfine,Ctrlsnap) and click-to-type math (1.5 * 2,pi / 2). -
Smart Blender operators: Buttons wired with
ui.operator(...)automatically disable whenpoll()returnsFalseand run in the right viewport context. -
Multi-addon safe: Setting your own
addon_idkeeps your addon completely isolated from other addons using BlendCSS.
-
Modern CSS layout & effects: Flexbox, rounded corners, linear/radial/conic gradients, drop shadows, backdrop blur, rounded
overflow: hiddenclipping, and native Blender hover cursors. -
Automatic Blender theme sync: Live
--bl-*CSS variables,.bl-theme-dark/.bl-theme-lightclasses, and@media (theme: dark | light)queries that update instantly when users switch Blender themes (Blender 4.x and 5.x). -
Crisp HiDPI visuals: Automatic UI scaling, sharp text rendering with Blender's bundled Inter and monospace fonts, plus custom
.woff2/.ttf/.otffont loading. -
Vector SVG icons & live previews: 16 built-in icons, folder auto-loading for icon packs (Lucide, Tabler, Heroicons), and zero-disk
blendcss://live textures frombpy.types.Imageor NumPy arrays. - Windows & Linux ready: Prebuilt binaries included for Windows x64 and Linux x64 across Blender 4.2–4.5 (Python 3.11) and 5.0+ (Python 3.13).
- macOS support (Apple Silicon & Intel binaries)
-
CSS Grid (
display: grid— use Flexbox instead) -
CSS animations & transitions (
@keyframes, smoothtransition:timing) - Multiline text inputs & dropdown menus (numeric inline editing is supported today)
- Blender-specific specialty widgets (color wheel/picker, curve/gradient ramp editor, collapsible accordions, drag-and-drop list reordering)
- Editors outside the 3D Viewport N-Panel (Node Editor, Image Editor, Properties, floating popovers)
Read the full searchable documentation online at blendcss.quicktiptech.workers.dev:
| Section | What you'll find | Start here |
|---|---|---|
| Tutorials | Step-by-step lessons from scratch | Build Your First Panel · Interactive Tool Panel |
| How-to Guides | Practical recipes for common tasks | Vendor & Package · Bind Data & Operators · Style & Themes · HTML Templates · Icons, Fonts & Images · Troubleshooting |
| Explanation | Architecture & design choices | How BlendCSS Works · Choosing an Authoring Mode · CSS & GPU Rendering |
| Reference | Complete API & CSS lookup | Panel API · UIBuilder · Bindings & Operators · UICssDocument & CSS · Theme & Assets |
Want to contribute, report a bug, or build native binaries from source? See CONTRIBUTING.md.
BlendCSS is released under the GNU General Public License v3.0 (GPL-3.0-or-later).





