{% extends "base.html" %}
{% load i18n static ui charts %}
{% block title %}{% translate "Pattern library" %}{% endblock %}
{% block head %}{% chart_scripts %}{% endblock %}
{% block content %}
{% translate "Design system" %} {% blocktranslate trimmed %}
Every component of the web app, in both themes, for design review and the accessibility
audit. Components are template includes in {% translate "Pattern library" %}
core/templates/components; each
file lists its parameters.
{% endblocktranslate %}
{% blocktranslate trimmed %}
One accent and neutral surfaces. Every text and background pair meets WCAG AA in both
themes (checked by a test from the token values). Chart colours are colour-blind safe
and assigned in a fixed order; status colours are never used for data series and
always come with an icon and a label. Charts outside the browser read
chart-palette.json.
{% endblocktranslate %}
{{ token }}{% translate "Eyebrow" %}
{% translate "Heading 1: station results" %}
{% translate "A lead paragraph introduces a page in a sentence or two." %}
{% blocktranslate trimmed %}
Body text uses the system font of each device, so nothing is downloaded and every
script the operating system supports displays. Lines are kept to a readable length.
A link and inline code.
{% endblocktranslate %}
{% translate "Small, muted text for notes and captions." %}
{% translate "An SVG sprite drawn for this app, inserted with the icon template tag. Icons are decorative unless given a label." %}
{{ name }}{% translate "Labels above inputs, hints under labels, errors inline and summarised at the top. This form is shown after a submission with mistakes." %}
{% translate "A real file input inside a large target. Without JavaScript it is a plain file input; with it, files can be dropped and the chosen file is shown." %}
{% translate "Toasts confirm something that happened in the background and disappear on their own; errors stay until dismissed. Dialogs ask for a decision and keep focus inside until closed." %}
{% translate "Shown under the header during the single-station flow. Completed steps link back. On a narrow screen only the current step is named." %}
{% translate "The chart scripts (#75) draw into the plot area; until then it shows a placeholder. Every chart has a text summary, a legend, a table view and a CSV download." %}
{% translate "TXx, hottest day of the year" as ch_title %}{% translate "Rising by 0.21 °C per decade since 1936 (significant at 5%). Highest 45.8 °C in 2013." as ch_summary %} {% include "components/chart_frame.html" with id="pattern-chart" title=ch_title summary=ch_summary legend=chart_legend csv_href="#charts" table_template="core/patterns_table.html" %}{% translate "The chart frame with a data URL: charts.js draws it with uPlot when it scrolls into view. Drag across the plot to zoom, double-click to show all; the buttons and the keyboard (plus, minus, arrows, 0) zoom and move; PNG and SVG save the current view. The data are the Sydney sample and its run." %}