{% extends layout %} {% import '_layout/icons.twig' as icons %} {% block title %}Style Guide{% endblock %} {% block description %}A showcase of this theme's default styling for headings, lists, tables, code, and other common HTML elements.{% endblock %} {% block robots %}index, follow{% endblock %} {% block canonical %}{{ request_path|default('/') }}{% endblock %} {% block og_type %}article{% endblock %} {% block og_title %}{{ block('title') }}{% endblock %} {% block og_description %}{{ block('description') }}{% endblock %} {% block og_url %}{{ block('canonical') }}{% endblock %} {% block twitter_card %}summary{% endblock %} {% block twitter_title %}{{ block('title') }}{% endblock %} {% block twitter_description %}{{ block('description') }}{% endblock %} {% block blog_content %}

Style Guide

A plain page, like {{ icons.book() }}the Twig Syntax Guide, this time showing off the default styling every element on this site gets for free from novaconium/sass/main.sass — no per-page CSS involved. If you've changed App/sass/_colors.sass (see {{ icons.book() }}Styling), this page is the fastest way to see the new palette applied across everything at once.

Headings

Heading level 1

Heading level 2

Heading level 3

Heading level 4

Heading level 5
Heading level 6

Paragraph & inline text

A normal paragraph, with bold, italic, inline code, and a link mixed in. Small print, like this, is used for captions and secondary detail throughout the site.

Blockquote

Design is not just what it looks like and feels like. Design is how it works.

Lists

Unordered

Ordered

  1. Write a Twig template
  2. Optionally add a sidecar
  3. Visit the URL

Nested

Table

ElementStyled by
Headingsh1, h2, h3, h4, h5, h6
Linksa, a:hover
Codecode, pre
Tablestable, th, td

Code

Inline: (new Mailer())->send($old['name'], $old['email'], $old['message']);

{% verbatim %}{% extends layout %}

{% block content %}
    ...
{% endblock %}{% endverbatim %}

Horizontal rule

Above this line:


Below this line.

Form elements




Radio buttons


Icons

{{ icons.home() }} {{ icons.git() }} {{ icons.book() }} {{ icons.link() }} {{ icons.sitemap() }} {{ icons.email() }} {{ icons.search() }} {{ icons.rss() }} {{ icons.tag() }} {{ icons.lock() }} {{ icons.trash() }} {{ icons.external_link() }} {{ icons.menu() }} {{ icons.back_to_top() }} — every inline SVG icon in novaconium/pages/_layout/icons.twig, all inheriting the surrounding text color via currentColor.

{% endblock %}