{% extends "base.html" %} {% block title %}{{ _('Design') }} · {{ appearance.name }}{% endblock %} {% block content %}

← {{ _('Settings') }}

{{ _('Design') }}

{{ _('Name, colours and texts') }}

{% for message in errors %}{% endfor %} {% for message, ratio in contrast_warnings %}

{{ _(message, ratio=ratio) }}

{% endfor %}
{{ csrf_field(request) }}

{{ _('Appears in the header (without own logo), in the browser tab and in emails.') }}

{% set color_fields = [ ('primary', _('Primary colour'), _('Buttons and links.'), look.primary, defaults.primary), ('accent', _('Accent colour'), _('Markings: bars in the results, stars, selected tiles, info boxes.'), look.accent, look.primary or defaults.primary), ('background', _('Background colour'), _('Page background; cards stay white on light backgrounds.'), look.background, defaults.bg), ('text', _('Text colour'), '', look.text, defaults.text), ] %} {% for key, label, hint, value, fallback in color_fields %}
{% if hint %}

{{ hint }}

{% endif %} {% endfor %}

{{ _('A chosen colour only applies when “Standard” is not ticked. The colours apply to the light display; the dark display derives readable shades of the primary and accent colour. Contrast is checked against WCAG 2.1 (level AA); if it is too low, a warning appears above.') }}

{{ _('Shown to everyone on the start page, e.g. who runs this service. Plain text.') }}

{{ _('Both links appear in the footer of every page, also on forms embedded in other pages.') }}

{{ _('For special cases; loaded after all other styles. External addresses are blocked by the security settings of the page, so fonts and images must come from this server.') }}

{{ csrf_field(request) }}

{{ _('Font') }}

{% if look.font_format %}

{{ _('An own font is used (%(format)s).', format=look.font_format | upper) }}

{% else %}

{{ _('The system font of each device is used.') }}

{% endif %}
{{ csrf_field(request) }}

{{ _('WOFF2 (recommended), WOFF, TTF or OTF, at most 2 MB, for example Open Sans. The font is delivered by this server, never loaded from elsewhere. Make sure its licence allows use on a website.') }}

{% if look.font_format %}
{{ csrf_field(request) }}
{% endif %}

{{ _('Export and import') }}

{{ _('The design – settings, logos and font – as one file, e.g. to transfer it to a second instance.') }}

{{ _('Export design') }}

{{ csrf_field(request) }}

{{ _('Replaces name, colours, texts and own CSS. Logo and font are replaced only if the file contains them. Images are checked and re-encoded as with an upload.') }}

{% endblock %}