Listing all avaiable components and provising guidance on typography and other low-level formatting.
Typography
heading level 1
heading level 2
heading level 3
heading level 4
Standard content body text style.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsa quibusdam quaerat iusto fugiat voluptates iure quae cum, minima ea corporis natus similique quia aspernatur impedit fugit doloribus quas totam rem?
Text can include inline code style
with the code
element
Text can also include hypertext links. This is the web, after all.
Cards
Summary card
Encapsualte a small message or summary info worthy of special attention
Example
A regular card
Some html is ok in this content section. the CTA link is optional, and this card doesn't have one.
Usage
<summary-card title="A regular card">
Some <b>html</b> is ok in this content section. the CTA link is optional, and this card doesn't have one.
</summary-card>
Summary card with highlight
Used as to indicate a primary message or give extra emphasisi to the content of the card amoungst other cards on display.
Example
Usage
<summary-card class="highlight"
title="A highlight card"
cta="To the about page"
@url="/about"
>
Some <b>html</b> is ok in this content section
</summary-card>
Buttons and Calls to Action
CTA button
Example
Button textUsage
<cta-button url="/some-url">
Button text
</cta-button>
CTA button - ghost
Example
Button textUsage
<cta-button
class="ghost"
url="/some-url"
>
Button text
</cta-button>
Code and preformatted text
eleventyConfig.addPlugin(pluginWebc, {
components: "site/_includes/components/**/*.webc"
});