Styleguide

This page is here to show off styles for standard page elements such as typography, form elements, and icons. These are hard coded in an alternate page template file, named page.styles.liquid.


  • Typography
  • Colors
  • Buttons
  • Forms
  • Icons

Typography

Heading one

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper.

Heading two

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper.

Heading three

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper.

Heading four

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper.

Heading five

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper.

Heading six

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper.


Paragraphs

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper.

Suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.

Type styles

  • Strong
  • Emphasis
  • Inline link
  • Strike
  • Paragraph text Sup

Blockquotes

Eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.

The author of the quote

Lists

ul (default)
  • One
  • Two
  • Three
  • Four
Numeric bullet ol (default)
  1. One
  2. Two
  3. Three
  4. Four
Child lists (to match the RTE styles)
  • One
  • Two
  • Three, with child list
    • First sub item
    • Second sub item
    • Third sub item, with child list
      • Third level item
      • Another third level item
  • Four

Default form elements


Vertical forms (customer, contact, etc)

No styles for this exist in Slate, but are used in most themes. Style elements inside a form/div with class `form-vertical` to see your styles here.

You cannot add a class directly to most liquid form elements (e.g. {% form 'contact' %}). Instead, wrap the form in a div with the class .form-vertical to achieve the same effect.

Checkboxes

Radios

Notes and form errors

No note styles exist in Slate but are commonly added to handle form errors. Example styles:

	.note {
	  padding: 20px;
	  border: 1px solid #ccc;
	}

	.note--success {
	  border-color: green;
	  background-color: lightgreen;
	}

	.note--error {
	  border-color: red;
	  background-color: lightred;
	}
			

Example usage:

	{% if form.posted_successfully? %}
	  <p class="note note--success">Thanks for submitting the form</p>
	{% endif %}

	{% if form.errors %}
	  <div class="note note--error">
		{{ form.errors | default_errors }}
	  </div>
	{% endif %}
			
This is a standard note
This is a success message

This is an error message.

  • Bullets can offer more insight to the error

SVG icons

Read more about using, creating, and editing SVG icons in Slate's documentation.

Payment icons

  • Liquid error: Could not find asset snippets/icon-amazon_payments.liquid
  • Liquid error: Could not find asset snippets/icon-american_express.liquid
  • Liquid error: Could not find asset snippets/icon-bitcoin.liquid
  • Liquid error: Could not find asset snippets/icon-cirrus.liquid
  • Liquid error: Could not find asset snippets/icon-dankort.liquid
  • Liquid error: Could not find asset snippets/icon-diners_club.liquid
  • Liquid error: Could not find asset snippets/icon-discover.liquid
  • Liquid error: Could not find asset snippets/icon-dogecoin.liquid
  • Liquid error: Could not find asset snippets/icon-dwolla.liquid
  • Liquid error: Could not find asset snippets/icon-forbrugsforeningen.liquid
  • Liquid error: Could not find asset snippets/icon-interac.liquid
  • Liquid error: Could not find asset snippets/icon-jcb.liquid
  • Liquid error: Could not find asset snippets/icon-litecoin.liquid
  • Liquid error: Could not find asset snippets/icon-maestro.liquid
  • Liquid error: Could not find asset snippets/icon-master.liquid
  • Liquid error: Could not find asset snippets/icon-paypal.liquid
  • Liquid error: Could not find asset snippets/icon-visa.liquid

Social icons

  • Liquid error: Could not find asset snippets/icon-facebook.liquid
  • Liquid error: Could not find asset snippets/icon-fancy.liquid
  • Liquid error: Could not find asset snippets/icon-google-plus.liquid
  • Liquid error: Could not find asset snippets/icon-instagram.liquid
  • Liquid error: Could not find asset snippets/icon-pinterest.liquid
  • Liquid error: Could not find asset snippets/icon-snapchat.liquid
  • Liquid error: Could not find asset snippets/icon-tumblr.liquid
  • Liquid error: Could not find asset snippets/icon-twitter.liquid
  • Liquid error: Could not find asset snippets/icon-vimeo.liquid
  • Liquid error: Could not find asset snippets/icon-youtube.liquid

General icons

  • Liquid error: Could not find asset snippets/icon-arrow-down.liquid
  • Liquid error: Could not find asset snippets/icon-close.liquid
  • Liquid error: Could not find asset snippets/icon-hamburger.liquid
  • Liquid error: Could not find asset snippets/icon-minus.liquid
  • Liquid error: Could not find asset snippets/icon-plus.liquid
  • Liquid error: Could not find asset snippets/icon-rss.liquid