{% 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 tags %}css, reference{% 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 %}
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.
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.
Design is not just what it looks like and feels like. Design is how it works.
| Element | Styled by |
|---|---|
| Headings | h1, h2, h3, h4, h5, h6 |
| Links | a, a:hover |
| Code | code, pre |
| Tables | table, th, td |
Inline: (new Mailer())->send($old['name'], $old['email'], $old['message']);
{% verbatim %}{% extends layout %}
{% block content %}
...
{% endblock %}{% endverbatim %}
Above this line:
Below this line.
{{ 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.