# Panel design guidelines Core and Premium share one panel interface. Core owns the workspace layout, theme tokens, and reusable UI patterns. Both editions follow this guide. Reuse Core's templates and classes before adding a new style. If a pattern belongs in both editions, add it to Core and document it here. Premium should only use shared components available in its supported Core versions. ## Page structure - Extend [the workspace template][workspace] for signed-in pages. Follow **HTTP Settings** for pages with tabs. Put the page title and any page-wide actions first, then local tabs, then an account or domain selector if needed. The workspace divider separates these controls from the content. - Keep the page title stable across tabs. Mark the current tab with `aria-current="page"` and give the tab navigation an accessible label. - Use `.live-sections` to space stacked sections. Keep live status refreshes separate from forms so they cannot erase edits or move keyboard focus. - Use `.surface` for sections, `.section-heading` for ordinary section headers, and `.table-scroll` around tables. Keep horizontal overflow in the table wrapper and give empty or pending states an explicit label. - Extensions may add their running software versions to **About Coulobre** through the optional `panel_extension_versions` template context. Pass pairs of plain-text labels and versions only after checking access to the extension. Core does not load or inspect extension packages. ## Forms and actions For a compact editor, use `.surface.editor-surface` on the card and `.editor` on the form. Render Django fields with `form.as_div` so each field, label, and validation message occupies one row in the shared grid. Put the explanation and submit action inside the same grid. Don't add a padded `.section-heading` inside an already padded editor card. The heading, help, fields, and actions should share a left edge. ```django
{% csrf_token %}

Edit settings

Explain what these settings affect.

{{ form.as_div }}
``` - Use one clear primary action per form. Put secondary actions such as Cancel in the same `.form-actions` row when they apply to that form. - Use short, sentence-case action labels. Keep field errors beside their inputs. Use visible labels and keep essential instructions available without relying on pointer hover. - Prefer the shared compact type and spacing. Use [the panel stylesheet][css] and its theme tokens for type, color, spacing, and focus states. Avoid fixed control widths, inline styles, and page-specific font sizes. ### Resource actions - Style explicit resource actions as buttons. Use `.button secondary compact` for row-level actions such as **Import mail**, **Change password**, and **Manage logins**. Use `.button danger compact` for opening a removal workflow. Keep the final destructive confirmation visually distinct. - Group row actions in a wrapping `.table-actions` or `.form-actions` container. Keep a single, full-size primary action in the page or section header when the page offers one, such as **Add mailbox**. - Keep ordinary navigation, record names, and contextual help as links. An action that opens a form, confirmation page, or download is still an `` styled as a button. An action that submits the change uses a native `