BlendCSS

Haseeb Ahmed in Presets


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.

Showcase (Simple → Complex)

Every panel below is rendered live on Blender's GPU with BlendCSS (full source in demo/showcase_panels.py):

1. Quick Object (Simple) 2. Material Studio (Simple–Medium) 3. Lighting & HDRI Rig (Medium)
Quick Object Material Studio Lighting Rig
4. Batch Render Queue (Medium–Complex) 5. Procedural Asset Shelf (Complex) 6. Color Grade Console (Complex Showcase)
Render Queue Asset Shelf Color Grade

Quickstart (2 Minutes)

1. Copy blendcss/ into your addon

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

2. Write your panel

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.


Supported Features

Authoring & Controls

  • Three ways to build UI: Immediate-mode draw(self, ui, context) (closest to Blender's Panel.draw), retained-mode build(self, ui) + on_sync(), or external .html and .css files with one-click self.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 (Shift fine, Ctrl snap) and click-to-type math (1.5 * 2, pi / 2).
  • Smart Blender operators: Buttons wired with ui.operator(...) automatically disable when poll() returns False and run in the right viewport context.
  • Multi-addon safe: Setting your own addon_id keeps your addon completely isolated from other addons using BlendCSS.

Styling, Themes & Assets

  • Modern CSS layout & effects: Flexbox, rounded corners, linear/radial/conic gradients, drop shadows, backdrop blur, rounded overflow: hidden clipping, and native Blender hover cursors.
  • Automatic Blender theme sync: Live --bl-* CSS variables, .bl-theme-dark / .bl-theme-light classes, 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 / .otf font 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 from bpy.types.Image or 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).

Not Yet Implemented (Roadmap)

  • macOS support (Apple Silicon & Intel binaries)
  • CSS Grid (display: grid — use Flexbox instead)
  • CSS animations & transitions (@keyframes, smooth transition: 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)

Documentation

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

Contributing & License

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).



Discover more products like this

Python interface addon dev Keyframe UI ui developer

  • $10
$10

Have questions about this product?
Login to message

Details
Blender Extension Compatible Yes
Published about 7 hours ago
Blender Version 4.2 - 5.3
Extension Type Add-on
License GPL