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
.
Components
Image Object
The snippet image-object.liquid
is utilitzed for rendering images as background images at predefined aspect ratios. There are several options available to pass into the image object, including overlays, border-radius, and more.
Icon List - Check
The snippet icon-list.liquid
is utilitzed for icon lists.
Eyebrow
The snippet eyebrow-text.liquid
is utilitzed for eyebrow text.
Eyebrow Text
Display Text
The snippet display-text.liquid
is utilitzed for large display text.
Display Text
Paragraph Text
The snippet paragraph-text.liquid
is utilitzed for paragraph text.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Audeo dicere, inquit. Id mihi magnum videtur. Duo Reges: constructio interrete. Ut pulsi recurrant? Idem iste, inquam, de voluptate quid sentit? Respondeat totidem verbis.
Ita prorsus, inquam; Suo genere perveniant ad extremum; Quis est tam dissimile homini. Quid est igitur, inquit, quod requiras? Recte, inquit, intellegis.
CTA Block
The snippet cta-block.liquid
is utilitzed for CTA links (up to 3).
Background Colors
Theme Colors
bg-primary
bg-secondary
bg-success
bg-info
bg-warning
bg-danger
bg-light
bg-dark
bg-blue-643
Brand Colors
bg-blue-7453
bg-blue
bg-pink-2085
bg-pink-521
bg-purple-2351
bg-purple-2356
bg-blue-7453
bg-blue
bg-red
bg-warm-gray
Brand Patterns
bg-pattern-gold-blue
Text & Link Colors
Theme Colors
Brand Colors
Typography
Headings
H1
H2
H3
H4
H5
H6
Display headings
Display 1
Display 2
Display 3
Display 4
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
- 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
|
|
Numeric bullet
|
|
Child lists (to match the RTE styles) |
|
Responsive tables
Order | Date | Payment Status | Fulfillment Status | Total |
---|---|---|---|---|
#1001 | December 22, 2015 | Authorized | Unfulfilled | $43.03 |
#1002 | December 23, 2015 | Authorized | Unfulfilled | $44.03 |
#1003 | December 24, 2015 | Authorized | Unfulfilled | $45.03 |
#1004 | December 25, 2015 | Authorized | Unfulfilled | $46.03 |
#1005 | December 26, 2015 | Authorized | Unfulfilled | $47.03 |
#1006 | December 27, 2015 | Authorized | Unfulfilled | $48.03 |
Forms
Default form elements
Invisible labels
Add a class of label-hidden
to a label to visually hide it, while keeping it accessible to screen readers. Use the placeholder
attribute as your visible label.
Note: The placeholder
attribute only works in IE10+, so invisible labels are disabled in IE9 and below.
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.
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 an error message.
- Bullets can offer more insight to the error
Buttons
Miscellaneous elements
Horizontal Rules
There are no default hr
styles in Slate, but these are common ones to add.
Default hr
Invisible hr.hr--clear
Small hr.hr--small
SVG icons
Read more about using, creating, and editing SVG icons in Slate's documentation.