ORCA: a Django design system whose every element documents when and how to use it, for developers and AI coding agents.
pip install orca-design-system==0.4.5 Copy PIP instructions
ORCA is a Django design system that helps developers and AI coding agents build consistent, accessible interfaces without guessing. Every element has a general description, then when (and when not) and how to use it in ORCA, the tokens and classes it uses, the UX principles it applies, and a copy-ready template example.
pip install orca-design-system # settings.py INSTALLED_APPS = [..., "django.contrib.staticfiles", "orca"] ORCA = { "BRAND": { # the only values a project may change "name": "Acme", "color": "#0f95a1", # brand colour "accent": "#0066cc", # interactive colour (links, ticks, switches) "logo": "brand/logo.svg", "favicon": "brand/favicon.svg", }, "THEME": "auto", # auto | light | dark | paper "DENSITY": "comfortable", # comfortable | dense (tighter type, controls and spacing) } {# base.html #} {% load orca %} {% orca_head %} Skip to main content Images
{% icon "plus" %}Add image Documentation website The documentation website is generated from the package itself: an overview, nine guide pages (installation, usage, brand and themes, AI agents, principles, accessibility, localization, tooling, roadmap), one page per element with live examples, and the token and icon references.
# serve it inside your project, with your brand path("orca/", include("orca.urls")), # or export it as static HTML (one file per page, relative links) python demo/manage.py orca_site site/ .github/workflows/docs.yml tests, exports and deploys it to GitHub Pages on every push to main (enable it once: repository Settings, Pages, Source: GitHub Actions).
{% load orca %} {% orca_messages %} {# django.contrib.messages as alerts #} {% csrf_token %} {% orca_form_errors form %} {# non-field errors + linked summary #} {% orca_field form.name %} {# label, (optional), help, error, control, ARIA #} {% orca_field form.port width="w8" %} {% orca_field form.enabled switch=True %}
{% orca_pagination page_obj noun="videos" %} {# keeps filters in the links #} {% orca_mini_calendar month selected=day url="/day/{date}/" nav_url="?month={month}" %} {% orca_sparkline values "Visitors per hour" %} {% orca_donut segments total_label="Visitors" %} Patterns from your data {% orca_chart "bar" data title="Visitors per day" subtitle="This week" %} {# data: {"labels": [...], "series": [{"name", "values"}]} #} {% orca_month_calendar events month="2026-11" today=today day_url="?day={date}" %} {% orca_week_view events start=monday days=7 today=today now=now %} {# days=1 day view, days=3 multi-day #} {% orca_agenda events start=today days=7 %} {% orca_year_view year=2026 events=events %} {% extends "orca/email/base.html" %} {# brand-coloured transactional email #} Events are dicts with title, start, end, all_day, color (1–8 or any CSS colour), url, location and status. orca.samples.SAMPLE holds the realistic data every documentation example uses.
from django.views.generic import ListView from orca.mixins import OrcaPageMixin class VideoList(OrcaPageMixin, ListView): model = Video paginate_by = 25 template_name = "orca/generic/list.html" # title, Add button, search, table → cards on phones, pager list_columns = ["name", "site", "status", ("Counted today", "today")] detail_url_name, create_url_name = "video-detail", "video-create" update_url_name, delete_url_name = "video-update", "video-delete" {% extends "orca/layouts/app.html" %} {# or dashboard, calendar, scheduler, board, timeline… #} {% block page_actions %} Add video {% endblock %} {% block content %}…{% endblock %} Set nav (sidebar sections) in a context processor once. Error pages: create templates/404.html with {% extends "orca/errors/404.html" %} (same for 403 and 500).
A project changes brand tokens only, through settings.ORCA["BRAND"]:
Write colours as "0F95A1", "#06c" or rgb(…); ORCA normalises them. If a colour fails contrast, ORCA adjusts it and reports the change as the system-check warning orca.W001. Unknown keys are errors (orca.E002). Every other token is fixed, and python manage.py orca_lint flags any override of a non-brand --orca-* token.
python -m orca list # every element by category python -m orca show button # general description / when / how / example python -m orca search date # search names, guide items and classes python -m orca icons # icon names and aliases python -m orca tokens # token names and usage python manage.py orca_element switch python manage.py orca_lint templates/ # check templates and CSS against ORCA's rules python manage.py orca_site site/ # export the documentation website The same content is in docs/primitives/ and docs/components/ and docs/patterns/ and docs/templates/ (Markdown, one file per category) and docs/catalogue.json (machine-readable). AI agents: start with AGENTS.md.
python -m venv .venv && .venv/bin/pip install -e . .venv/bin/python -m orca build # regenerate tokens.css and docs/ .venv/bin/python -m django test tests --settings=tests.settings .venv/bin/python demo/manage.py runserver # catalogue at http://127.0.0.1:8000/orca/ The tests check that every guide item is covered, every element has a general description, its when/how and a rendering example, documented classes and tokens exist, text and control contrast hold in all three themes, and generated files are current.
ORCA's code is MIT. Token values, component measurements and 106 icon shapes come from Canonical's Vanilla framework 4.59 (LGPL-3.0) through Tangerine; Ubuntu Sans fonts are under the Ubuntu Font Licence 1.0; the vendored Chart.js 4.4.7 is MIT, highlight.js 11.10 is BSD-3-Clause and JetBrains Mono is under the SIL Open Font Licence 1.1. ORCA is not affiliated with Canonical. See THIRD_PARTY_NOTICES.md.
MIT AND LGPL-3.0-only AND LicenseRef-Ubuntu-Font-1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




