Internal reference

Design system

Every colour, type style and component on the PETALS marketing site, with copy-paste markup. Use this (and docs/design-system.md) before inventing new styles.

Colour

All colours are CSS variables defined in :root at the top of styles.css. Use the variable, never the raw hex. Teal is the brand; yellow and orange are the petal accents.

Brand

Teal--petals-teal#5ECDB6
Teal light--petals-teal-light#E8F8F4
Green dark (links)--petals-primary-dark#4A9B7F
Green forest--petals-green-forest#3D8B6E
Button primary--petals-button-primary-bg#227A61
Button primary hover--petals-button-primary-bg-hover#1B6350

Petal accents

Yellow--petals-yellow#F5C842
Yellow light--petals-yellow-light#FDF4D7
Orange--petals-orange#F5A623
Orange light--petals-orange-light#FEF0DB
Goldenrod on yellow--petals-goldenrod-on-yellow-light#8A6408

Text

Text dark (headings)--petals-text-dark#1a2534
Text body--petals-text-body#4a5568
Text muted--petals-text-muted#5C6879
Muted on dark--petals-text-muted-on-dark#8F9BAD

Surfaces and borders

Page background--petals-bg#edf2f7
Background alt--petals-bg-alt#f7fafc
White / card--petals-white#ffffff
Dark background--petals-background-dark#1a2534
Border--petals-border-gray#e2e8f0

Heatmap (scores 1 to 5)

1 redscore shortcode#F0524F
2 orangescore shortcode#FFA629
3 yellowscore shortcode#FFCD2A
4 limescore shortcode#BBCC00
5 greenscore shortcode#15AD5D

Shadows

--petals-shadow-sm
--petals-shadow-md
--petals-shadow-lg

Radii in use: 8px buttons, 12px cards and banners, 16px swipeable cards and quote bubbles, 100px pills and tags.

Typography

Lilita One for h1, h2, .petals-heading, big quotes, card numbers and card headings. It is never bold. Plus Jakarta Sans (400 to 700) for everything else, including h3 to h6. Body is 16px, line height 1.7.

Page title (h1, uk-heading-medium)

Section heading (h2, uk-heading-small)

Sub heading (h3, Plus Jakarta Sans bold)

Lead paragraph, used under a section heading.

Body copy in Plus Jakarta Sans. Keep it plain, warm and short. Links use the UIkit default; inside blog posts they turn green and underlined.

Muted small text for meta lines and captions.

<h1 class="uk-heading-medium petals-heading">Page title (h1, uk-heading-medium)</h1>
<h2 class="uk-heading-small petals-heading">Section heading (h2, uk-heading-small)</h2>
<h3>Sub heading (h3, Plus Jakarta Sans bold)</h3>
<p class="uk-text-lead">Lead paragraph, used under a section heading.</p>
<p>Body copy in Plus Jakarta Sans. Keep it plain, warm and short. <a href="#type">Links</a> use the UIkit default; inside blog posts they turn green and underlined.</p>
<p class="uk-text-muted uk-text-small">Muted small text for meta lines and captions.</p>

Section headings usually sit in a centred block: <div class="uk-text-center uk-margin-large-bottom"> with the h2, then <p class="uk-text-lead petals-section-lead">.

Buttons

Always pair the UIkit class with the PETALS class. One primary action per section; the secondary sits beside it.

<a href="#buttons" class="uk-button uk-button-primary petals-button-primary">Primary</a>
<a href="#buttons" class="uk-button uk-button-default petals-button-secondary">Secondary</a>
<a href="#buttons" class="uk-button uk-button-primary petals-button-primary uk-button-large">Large primary</a>
<a href="#buttons" class="uk-button uk-button-default petals-button-secondary uk-button-large">Large secondary</a>
<a href="#buttons" class="uk-button uk-button-default petals-button-secondary uk-button-small">Small</a>
<a href="#buttons" class="uk-button uk-button-text">Text link button</a>

Badges and tags

Trust badge, VAT notice, category tags

Category tag classes are generated from the post's category front matter (lowercased, spaces to hyphens), so a new category needs a new .petals-category-* rule in styles.css.

7-day free trial on all plans All prices shown exclude VAT Articles Changelog Dev Time
<span class="petals-trust-badge"><span uk-icon="icon: check; ratio: 0.8"></span> 7-day free trial on all plans</span>
<span class="petals-vat-notice">All prices shown exclude VAT</span>
<span class="petals-category-tag petals-category-articles">Articles</span>
<span class="petals-category-tag petals-category-changelog">Changelog</span>
<span class="petals-category-tag petals-category-dev-time">Dev Time</span>

Page sections

Every page is a stack of <section class="uk-section ..."> blocks with a uk-container inside. Alternate backgrounds so sections read as separate bands.

Section backgrounds

uk-section uk-section-default (white)
uk-section uk-section-muted (UIkit muted grey)
uk-section on the page background (--petals-bg, used by the hero and flower sections)
petals-video-section style: dark background for contrast

Factor list

Coloured left border per item (--yellow, --orange, --teal). Used for the five feeling factors.

  • 🚀 Productivity: are we getting things done?
  • 📚 Learning: are we growing as we go?
  • ⚖️ Average: a balanced view overall.
<ul class="petals-factors-list">
  <li class="petals-factor-item petals-factor-item--yellow">
    <span class="petals-factor-emoji">🚀</span>
    <span class="petals-factor-text"><strong>Productivity:</strong> are we getting things done?</span>
  </li>
  <li class="petals-factor-item petals-factor-item--orange">
    <span class="petals-factor-emoji">📚</span>
    <span class="petals-factor-text"><strong>Learning:</strong> are we growing as we go?</span>
  </li>
  <li class="petals-factor-item petals-factor-item--teal">
    <span class="petals-factor-emoji">⚖️</span>
    <span class="petals-factor-text"><strong>Average:</strong> a balanced view overall.</span>
  </li>
</ul>

Cards

Benefit card (three-up)

Used for benefits and the "how it works" steps (the step cards put a numbered circle in the SVG instead). Always uk-grid-match so heights line up.

Yellow card

Coloured top border and a matching icon circle. Keep copy to one or two sentences.

Orange card

Icons are 32x32 line drawings, stroked in the card colour.

Teal card

Cycle yellow, orange, teal when there are three in a row.

<div class="uk-grid uk-child-width-1-1 uk-child-width-1-3@m uk-grid-match" uk-grid>
  <div>
    <div class="uk-card uk-card-default uk-card-body petals-benefit-card petals-benefit-card--yellow">
      <div class="petals-benefit-icon">
        <span class="petals-benefit-icon-circle" aria-hidden="true">
          <svg class="petals-benefit-icon-svg" viewBox="0 0 32 32" role="presentation" focusable="false">
            <circle cx="16" cy="16" r="11" /><line x1="16" y1="9" x2="16" y2="16" /><line x1="16" y1="16" x2="20" y2="20" />
          </svg>
        </span>
      </div>
      <h3 class="petals-benefit-title">Yellow card</h3>
      <p class="petals-benefit-copy">Coloured top border and a matching icon circle. Keep copy to one or two sentences.</p>
    </div>
  </div>
  <div>
    <div class="uk-card uk-card-default uk-card-body petals-benefit-card petals-benefit-card--orange">
      <div class="petals-benefit-icon">
        <span class="petals-benefit-icon-circle" aria-hidden="true">
          <svg class="petals-benefit-icon-svg" viewBox="0 0 32 32" role="presentation" focusable="false">
            <rect x="7" y="17" width="4" height="8" rx="1" /><rect x="14" y="13" width="4" height="12" rx="1" /><rect x="21" y="9" width="4" height="16" rx="1" />
          </svg>
        </span>
      </div>
      <h3 class="petals-benefit-title">Orange card</h3>
      <p class="petals-benefit-copy">Icons are 32x32 line drawings, stroked in the card colour.</p>
    </div>
  </div>
  <div>
    <div class="uk-card uk-card-default uk-card-body petals-benefit-card petals-benefit-card--teal">
      <div class="petals-benefit-icon">
        <span class="petals-benefit-icon-circle" aria-hidden="true">
          <svg class="petals-benefit-icon-svg" viewBox="0 0 32 32" role="presentation" focusable="false">
            <path d="M9 8h14a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-3l-5 4v-4H9a3 3 0 0 1-3-3v-7a3 3 0 0 1 3-3z" />
          </svg>
        </span>
      </div>
      <h3 class="petals-benefit-title">Teal card</h3>
      <p class="petals-benefit-copy">Cycle yellow, orange, teal when there are three in a row.</p>
    </div>
  </div>
</div>

Plain UIkit card, blog card, trust card, pricing card

Blog cards are in the Blog section. The trust card (petals-trust-card) and plan cards (petals-pricing-card, --featured) are data driven from _data/pricing.json; copy the markup from src/content/pricing.njk rather than rebuilding it.

Banners

Try it free. Teal banner for reassurance and calm information.
Flash sale. Orange banner for time-limited promotions only (gate with the isSaleActive filter).
<div class="petals-trial-banner">
  <span uk-icon="icon: clock; ratio: 1.2" class="petals-trial-icon"></span>
  <span><strong>Try it free.</strong> Teal banner for reassurance and calm information.</span>
</div>

<div class="petals-sale-banner" style="margin-top: 1rem;">
  <span uk-icon="icon: tag; ratio: 1.2" class="petals-sale-banner-icon"></span>
  <span><strong>Flash sale.</strong> Orange banner for time-limited promotions only (gate with the <code>isSaleActive</code> filter).</span>
</div>

FAQ accordion

Native <details>, no JavaScript. On the real pages it loops over the faq data file.

How long does a snapshot take?

About two minutes per person.

Is it anonymous?

Answers go into the team heatmap without names attached.

<div class="petals-faq-list">
  <details class="petals-faq-item">
    <summary class="petals-faq-question">How long does a snapshot take?</summary>
    <div class="petals-faq-answer"><p>About two minutes per person.</p></div>
  </details>
  <details class="petals-faq-item" open>
    <summary class="petals-faq-question">Is it anonymous?</summary>
    <div class="petals-faq-answer"><p>Answers go into the team heatmap without names attached.</p></div>
  </details>
</div>

Video and images

Video embed

Sits in a dark petals-video-section on the homepage. 16:9 responsive wrapper, caption underneath.

<section class="uk-section petals-video-section">
  <div class="uk-container">
    <div class="petals-video-container">
      <div class="petals-video-embed">
        <iframe src="https://www.youtube.com/embed/VIDEO_ID" title="Describe the video" frameborder="0" allowfullscreen></iframe>
      </div>
    </div>
    <p class="uk-text-center petals-video-caption">One-line caption.</p>
  </div>
</section>

Images

Put images in src/assets/images/ (blog images in blog/), prefer .webp, always write real alt text, and set width, height and loading="lazy". Brand logos live in images/brands/ as PNGs. Mascot: petals-bee-*.webp.

Blog

Blog index card

Image (optional), category tag, title, description, date and author, "Read more" footer. Generated by blog/index.njk.

Articles

Example post title

One-sentence description that sells the post.

Post body typography

Everything below renders inside .petals-post-body, which layouts/post.njk adds automatically. In Markdown just write h2, h3, paragraphs, lists, tables, bold, italics and links. Blog components (cards, quotes, scores, sources) only look right inside it.

Second-level heading

Body paragraph with bold, italic and a link. Posts are written in British English, in a casual, human voice.

Third-level heading

  • Bullet lists work, though use cards for lists of points or steps.
  • Second item.
Team sizeConnections
5 people10
8 people28

After a horizontal rule.

Blog components

Shortcodes live in src/_11ty/shortcodes.js and are registered in .eleventy.js. Use them in Markdown posts.

Score: {% score 3.5 %}

Whenever a post mentions a specific PETALS score, use this instead of plain text. Colour follows the whole number reached (1 red, 2 orange, 3 yellow, 4 lime, 5 green). Whole numbers show without a decimal; pass a string to keep one ({% score "5.0" %}).

Serenity dropped to 1.9, then 2 and 3.5, then 4.2 and finally 5.

Serenity dropped to {% score 1.9 %}, then {% score 2 %} and {% score 3.5 %}, then {% score 4.2 %} and finally {% score 5 %}.

Numbered cards: {% cards "Label" %}

Use instead of ordered lists for steps. Each card starts with ### . Put <span class="petals-card-num">1</span> before the heading text and drop any "1." prefix. The label is for screen readers.

1Ask one real question

Pick something you can't get from a dashboard, like "what's felt hardest this sprint?".

2Do it together

Use the whole team, not just the lead. Bold works inside cards.

3Act on one thing

Choose a single change and make it visible. Add a 3 baseline to measure against.

4Repeat next month

Habits beat one-off workshops.

Swipe or scroll for more

{% cards "Four steps to try this month" %}
### <span class="petals-card-num">1</span>Ask one real question
Pick something you can't get from a dashboard.

### <span class="petals-card-num">2</span>Do it together
Use **the whole team**, not just the lead.
{% endcards %}

Icon cards (unordered lists)

Use instead of bullet lists. One Feather-style 24x24 stroke icon per card, placed before the heading text, so icons share the same position and height. Feather icons: feathericons.com.

It is quick

Two minutes per person, so it survives busy weeks.

It is shared

Everyone sees the same flower, so the conversation starts level.

It starts talking

Scores are a prompt, not a verdict.

Swipe or scroll for more

{% cards "Why this works" %}
### <svg class="petals-card-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/></svg>It is quick
Two minutes per person, so it survives busy weeks.
{% endcards %}

Quote: {% quote "Name", "Role", "/avatar.webp", "big" %}

Speech bubble with the speaker's avatar and name underneath. Omit the last argument for a normal quote; pass "big" for a pull quote in Lilita One. Blank lines split paragraphs. Content is HTML-escaped, so no markup inside.

PETALS gives us a shared language for how the team is feeling.

Ollie StevensonOllie StevensonHead of Frontend Engineering, Huel

A normal-sized quote suits longer remarks.

A second paragraph is fine too.

Ollie StevensonOllie StevensonHead of Frontend Engineering, Huel
{% quote "Ollie Stevenson", "Head of Frontend Engineering, Huel", "/assets/images/blog/ollie-stevenson.webp", "big" %}
PETALS gives us a shared language for how the team is feeling.
{% endquote %}

Sources block

Cite sources at the end of a post, before the newsletter signup. Author headshots (80x80 webp) sit on the right and are shown greyscale automatically. Write it as a single line of HTML in Markdown so it isn't re-parsed. The italic note is optional.

Sources

The revised rules of engineering management
Gergely Orosz with Will Larson, The Pragmatic Engineer

Gergely OroszWill Larson

Quotes and figures are from the write-ups of each piece, and the views on PETALS are our own.

<div class="petals-sources"><p class="petals-sources-title">Sources</p><div class="petals-source"><p><a href="https://leaddev.com/management/long-live-the-engineering-manager">Long live the engineering manager</a><br>Liz de Moll, LeadDev</p><span class="petals-source-people"><img class="petals-author" src="/assets/images/blog/liz-de-moll.webp" alt="Liz de Moll" width="80" height="80" loading="lazy"></span></div><div class="petals-source"><p><a href="https://newsletter.pragmaticengineer.com/p/the-revised-rules-of-engineering">The revised rules of engineering management</a><br>Gergely Orosz with Will Larson, The Pragmatic Engineer</p><span class="petals-source-people"><img class="petals-author" src="/assets/images/blog/gergely-orosz.webp" alt="Gergely Orosz" width="80" height="80" loading="lazy"><img class="petals-author" src="/assets/images/blog/will-larson.webp" alt="Will Larson" width="80" height="80" loading="lazy"></span></div><p class="petals-sources-note">Quotes and figures are from the write-ups of each piece, and the views on PETALS are our own.</p></div>

Post images and the newsletter form

Inline screenshots are plain <img> tags with style="display: block; margin: 0 auto; max-width: 100%;" and descriptive alt text. Posts end with a short nudge and the Brevo signup <iframe>; copy it verbatim from the most recent post rather than retyping the URL. YouTube embeds go in a <div> with an iframe and a title.

Blog post front matter

Files are named YYYY-MM-DD-slug.md in src/content/blog/. Layout, tags and permalink come from blog.11tydata.js.

KeyRequiredNotes
titleYesSentence case.
dateYesYYYY-MM-DD.
categoryYesArticles, Changelog or Dev Time. A new category needs a CSS rule.
descriptionYesOne or two sentences. Shown on the blog card, under the title, and in meta tags.
authorNoDefaults to "PETALS Team".
featuredImageNoPath like /assets/images/blog/x.webp. Also the card image and social share image. Adds a full-width hero with the title overlaid.
featuredImageAltWith imageDescribe what is in the picture.
featuredImageMobileNoTaller, phone-shaped hero used under 640px.
heroPositionNoCSS background-position, for example 95% 85%.
heroOverlayNolight for photos already dark at the bottom.
statusNodraft skips the post entirely (no page, blog index, RSS or sitemap).

Not shown here

These are bespoke, script driven or data driven, so copy from the source rather than from this page.

ComponentClassesSource
Logo orbit (homepage hero)petals-orbit-*content/index.njk, animated by assets/js/main.js
Five factors flowerpetals-flower-*Inline SVG in content/index.njk
Sticky scroll animationpetals-scroll-*, petals-sticky-containercontent/what.njk
Pricing cards, billing toggle, comparison table, trust cardspetals-pricing-*, petals-comparison-*, petals-trust-*content/pricing.njk, _data/pricing.json
Post heropetals-post-hero*layouts/post.njk (driven by front matter)
Header, footer, nav, social linkspetals-nav-*components/ and partials/
Cookie bannerpetals-cookie-banner*components/cookie-banner.njk, assets/js/cookie-consent.js