zenpy-garden
FastHTML components for Zendesk Garden CSS
A library for building server-side rendered Zendesk applications in Python. Wraps Zendesk Garden CSS components in Python components, optimized for FastHTML but adaptable to other Python web frameworks. Inspired by fhdaisy.
Installation
pip install zenpy-gardenQuick Start
Add Garden headers to your FastHTML app:
from fasthtml.common import *
from zpgarden.core import *
from zpgarden.components import *
app = FastHTML(hdrs=garden_hdrs)Create styled components:
Btn('Click me')
Btn('Primary', cls='--primary')
Anchor('Learn more', href='#', cls='--danger')Components
- Anchors — Styled links with danger and dark variants
- Avatars — User and system avatars with size options
- Buttons — Primary, danger, pill, icon variants
- Forms — Inputs, textareas, selects, checkboxes, radios with validation states
- Tags — Colored labels with pill and round shapes
See the Components documentation for full examples.