starter.css

Kitchen sink

Every HTML element, styled by starter.css. Change the look by editing the :root tokens.

Design tokens

Fonts

Choose fonts for body text, headings and code. Google Fonts load when you pick them, and “Generate CSS” adds the matching @import.

Popular pairings:

Colors

Pick a color to update the whole page live. You are editing the light theme; switch with “Toggle theme” to edit dark. Changed tokens get a blue outline. Edits are kept in this browser until you reset them.

Semantic colors

What components use. Many of these point to a palette color, so changing the palette also changes them unless you set them directly.

Palette

Primary scale

50
100
200
300
400
500
600
700
800
900

Shadows

--shadow-xs
--shadow-sm
--shadow-md
--shadow-lg
--shadow-xl
--shadow-2xl

Radii

sm
md
lg
xl
2xl
full

Spacing scale

--space-1
--space-2
--space-4
--space-8
--space-16
--space-24

Typography

Heading 1 - The quick brown fox

Heading 2 - The quick brown fox

Heading 3 - The quick brown fox

Heading 4 - The quick brown fox

Heading 5 - The quick brown fox
Heading 6 - The quick brown fox

This is a lead paragraph (.lead). Use it for introductions right below a page title.

This is a regular paragraph with a normal link, strong text, bold text, emphasised text, italic text, small text, highlighted text, deleted text, inserted text, struck text, unarticulated (spelling), H2O, E = mc2, an HTML abbreviation, a Citation Title, a definition, a short inline quote, the variable x, inline code(), keyboard Ctrl + C, sample output File not found., a date , a value forty-two, bidi إيان, reversed, ruby 漢(kan)字(ji), and a long word with a break opportunity.

A muted paragraph. Success, warning, danger, info.

Blockquote

Design is not just what it looks like and feels like. Design is how it works.

Steve Jobs, The New York Times

A blockquote with a footer inside.

Someone famous

Preformatted & code

:root {
  --color-primary: #2f66f0;
  --radius: 6px;
}

.card {
  padding: var(--pad-card);
  box-shadow: var(--shadow-card);
}

Address

Jane Doe
123 Example Street
1000 AB Somewhere
jane@example.com

Lists

Unordered

  • First item
  • Second item
    • Nested item
    • Nested item
      • Deeper item
  • Third item

Ordered

  1. Step one
  2. Step two
    1. Sub-step a
    2. Sub-step b
      1. Roman i
  3. Step three

Description

Term
Description of the term.
Another term
Its description.

Description grid

Name
starter.css
Version
1.0.0
License
MIT

Menu & inline list

  • Media

    Placeholder landscape
    <figure> with <img> and <figcaption>
    Picture element example
    <picture> with <source>
    <canvas>
    Inline <svg>
    <video> (no source attached)
    <iframe> with 16:9 ratio

    Audio

    Image variants

    Circle image AB CD E

    Tables

    Table with .table-wrap .table-striped .table-hover, thead, tbody, tfoot & caption.
    Product Category Price Status
    KeyboardHardware€ 89.00In stock
    MouseHardware€ 39.50Low
    MonitorDisplay€ 329.00Sold out
    CableAccessory€ 9.95Archived
    Total€ 467.45

    Bordered & compact

    ABC
    123
    456

    Forms

    Text inputs
    Required - shows a red asterisk automatically.
    Date & time
    Select & textarea
    Choices
    Range, color, file, output
    States, sizes & groups
    Please enter a valid email address.
    https://

    Buttons

    Link as button

    Progress & meter

    70% Loading…

    Details, dialog & popover

    What is starter.css?

    A personal base stylesheet that styles every HTML element using design tokens.

    How do I change the colors?

    Edit the --color-* variables in the :root block at the top of the file.

    Does it support dark mode?

    Yes - automatically via prefers-color-scheme, or force it with <html data-theme="dark">.

    Hover for tooltip
    Popover

    Native [popover] element. Click outside to close.

    Dialog title

    This is a native <dialog> with a blurred ::backdrop.

    Components

    Cards

    Card with image

    An <article class="card"> with a full-bleed image on top.

    Simple card

    Padding, radius and shadow all come from tokens.

    Link card

    The whole card is a link and lifts on hover.

    Alerts

    Info. Something you should know.
    Success! Your changes have been saved.

    Badges & tags

    Primary Success Warning Danger Info Neutral Solid #css #html

    Navigation

    Layout: sidebar

    Main content area - collapses under 768px.

    Other elements

    Embed / object elements are styled as block, max-width 100%:

    Generated CSS