Metadata-Version: 2.5
Name: django-trellis
Version: 0.1.70
Summary: Token-driven Django Cotton UI component kit.
License-Expression: MIT
License-File: LICENSE
License-File: THIRD_PARTY_NOTICES.md
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.13
Requires-Dist: django-cotton>=2.9
Requires-Dist: django-eventstream>=5.3.4
Requires-Dist: django-vite<4,>=3.2
Requires-Dist: django>=6.0
Provides-Extra: otel
Requires-Dist: opentelemetry-api>=1.38; extra == 'otel'
Provides-Extra: s3
Requires-Dist: django-storages[s3]>=1.14.6; extra == 's3'
Description-Content-Type: text/markdown

# Trellis UI

A Django-native component toolkit for server-rendered, reactive interfaces. Components are Cotton templates with an
Alpine runtime, styled by a parametric theme, and kept live through background requests, partial updates and
realtime streams, without a client-side framework.

## Install

Trellis needs Django 6.0+, Python 3.13+, Alpine.js 3.14.8+, Tailwind CSS 4.1+ and Vite 8.

```bash
uv add django-trellis django-vite
```

```bash
pnpm add @vireo-ai/trellis-ui alpinejs motion
```

Then add `trellis_ui` to `INSTALLED_APPS`, add the Trellis Vite plugin, and call `start(Alpine)` once in your entry
script. The full setup, including middleware and URLs, is in the installation guide:

```bash
npm exec --no -- trellis docs pages/installation
```

## Documentation

The documentation ships with the package and matches the installed version. `trellis docs` prints the index;
`trellis docs pages/<slug>` and `trellis docs components/<slug>` print a page.

## Coding agents

Trellis bundles skills that teach a coding agent to design screens as mockups, wire them up, and tune your theme:

```bash
npm exec --no -- trellis skills install .claude/skills
```

Use your own agent's skills folder in place of `.claude/skills`. `trellis skills` lists what is bundled.

## Theme

Accent colour, rounding, density and type come from one theme compiled to CSS. Start a theme workspace with
`npm exec --no -- trellis theme init trellis/themes/application`, or ask your agent with the bundled `create-trellis-theme` skill.

## License

MIT. See [LICENSE](LICENSE) and [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
