Skip to content

blendcssHTML & CSS UI for Blender N-Panels

Build hardware-accelerated Blender sidebar panels using Python and CSS — with live theme sync, two-way bindings, vector SVG icons, and zero boilerplate.

BlendCSS — HTML & CSS UI Framework for Blender

UI Showcase (Simple → Complex) ​

Every screenshot below is rendered directly by Blender 5.2's GPU using blendcss (source in demo/showcase_panels.py):

1. Quick Object Inspector
1. Quick Object — Simple card, scrubbers & toggle
2. Material Studio
2. Material Studio — Swatches, tabs & PBR meters
3. Lighting Rig
3. Lighting Rig — Live HDRI preview & presets
4. Render Queue
4. Render Queue — Telemetry banner & job statuses
5. Asset Shelf
5. Asset Shelf — Flexbox grid & 6 GPU textures
6. Color Grade Console
6. Color Grade Console — Live RGB scope & custom gradients

Quick Example ​

Subclass blendcss.Panel and implement draw(self, ui, context) just like a native Blender panel, with full CSS control:

python
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 QuickToolPanel(blendcss.Panel):
    addon_id = "quick_tool"
    category = "Quick Tool"
    label = "Object Tools"
    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(QuickToolPanel)

def unregister():
    blendcss.unregister(QuickToolPanel)

Platform & Version Support

blendcss targets Blender 4.2, 5.0, and 5.2+ (Python 3.11 and 3.13) on Windows x64 and Linux x64.

Released under the GNU GPL v3.0 License.