About Jiffies CSS

Jiffies CSS is a "postmodern" CSS full-page reset. It uses "cutting edge" 100% pure CSS standards, including layers, native css nesting, and a variable structure to define user and application specific overrides.

This page is the canonical demo and progress tracker for the v2 rewrite. Every component and pattern in DESIGN.md has a demo home below, captured by the screenshot harness as each module lights up.

Usage

Theme with the Intent tier: adjust the controls below to see how a single --brand-color seed drives the whole M3 scheme. Copy the generated snippet into your own :root {} block and you're done.

Intent Properties


              
            

Color

The scheme derives from one --brand-color: five key palettes plus a fixed error, each a tonal ramp, assigned to semantic role tokens with light/dark mappings.

Semantic roles

Primary

Secondary

Tertiary

Error

Surface

Surface variant

Primary container

Secondary container

Tertiary container

Error container

Primary tonal palette

10

20

40

60

80

90

100

Headings

Headings are built using <h1> etc tags.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

hgroup :last-child

First Heading h1

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ea delectus cupiditate minima, magni possimus commodi, eveniet? Rem, adipisci architecto pariatur libero aliquid culpa sunt accusantium.

Second Heading h2

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officia molestias ullam quasi est a nemo, accusamus voluptatum autem.

Third Heading h3

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo deleniti, repudiandae rerum nam laborum eligendi aperiam.

Fourth Heading h4

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Neque cum eum eligendi voluptatum quasi nisi doloremque ipsam unde.

Fifth Heading h5

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odit voluptatem necessitatibus eos iusto nam deserunt, dicta possimus.

Formatting

Formatting uses the appropriate <b> etc inline text tags.

This sentence is bold. If you like semantics, you might go with strong or emphasized text. If not, italic is still around. Small text is for fine print. Your copy can also be subscripted and superscripted, inserted, deleted, or highlighted. You would use a hyperlink to go to a new page.

If you like to write about there are plenty of semantic tags for you. There's the generic code, as well as keyboard input, computer output, and variables.

You might have need of a citation, short quotation, abbr, or definition. It might be .

123 Fake Street
Springfield, USA

Blockquote

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam molestiae et assumenda molestias alias ut saepe doloribus, porro, deleniti neque, harum minus, commodi laudantium quod excepturi nam corrupti odit provident. - Blockquote Citation

Preformatted Text

If you can keep your head when all about you
    Are losing theirs and blaming it on you,
If you can trust yourself when all men doubt you,
    But make allowance for their doubting too;

- Rudyard Kipling, If-
        

Code

class Voila {
public:
  // Voila
  static const string VOILA = "Voila";
}

Horizontal Line


Lists

Unordered list

Ordered list

  1. List item one
    1. Nested list item
  2. List item two
  3. List item three

Definition List

Definition Title One
First definition description
Definition Title Two
Second definition description

Buttons

Button elements, links with role="button", and input elements should all render exactly the same.

Primary

Link

Secondary

Adding a secondary class reads the tonal container pair.

Link

Contrast

Adding a contrast class.

Link

Outline

Adding an outline class creates outlined buttons with no background.

States

Disabled and busy (loading) states.

Forms

Account

States

Validity and editability are read from ARIA and native attributes, not classes.

Form States

Form switch

A pure-CSS toggle: a checkbox or radio painted as a sliding switch.

Tables

Head 1 (sorted) Head 2 Head 3
Footer 1 Footer 2 Footer 3
Description 1 Description 2 Description 3
Description 1 Description 2 Description 3
Description 1 Description 2 Description 3

Accordion

Styling for <details> and <summary>.

Accordion 1

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque urna diam, tincidunt nec porta sed, auctor id velit. Etiam venenatis nisl ut orci consequat, vitae tempus quam commodo.

Accordion 2
  • Vestibulum id elit quis massa interdum sodales.
  • Nunc quis eros vel odio pretium tincidunt nec quis neque.
  • Quisque sed eros non eros ornare elementum.
  • Cras sed libero aliquet, porta dolor quis, dapibus ipsum.

Tabs

Styling for <section role="tablist">.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque urna diam, tincidunt nec porta sed, auctor id velit. Etiam venenatis nisl ut orci consequat, vitae tempus quam commodo.

  • Vestibulum id elit quis massa interdum sodales.
  • Nunc quis eros vel odio pretium tincidunt nec quis neque.
  • Quisque sed eros non eros ornare elementum.
  • Cras sed libero aliquet, porta dolor quis, dapibus ipsum.

Property sheet

A dl rendered as aligned label/value rows.

Name
Jiffies CSS
Version
2.0.0-alpha
License
MIT
Author
David Souther

Progress

A styled native progress, line and round.

Determinate

Indeterminate

Round

Form group

A fieldset[role=group] joins adjacent controls into one segmented row.

Card & Panel

article is the elevated card; section is the flat panel. Each may carry header/main/footer rails.

Card (article)

An elevated surface with header, main, and footer rails.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eu posuere orci. Nulla convallis lectus rutrum quam hendrerit, in facilisis elit sollicitudin.

Footer content for a card.

Panel (section)

A flat panel surface. Same rail structure as the card, without the elevation.

Decorative banner inside a card header

Card-scoped hero

The hero figure sits in a card's header rail. Its parent (the article) decides its scale: it bleeds past the rail padding and clips to the card radius.

Hero (page-scoped)

A full-bleed page banner: a figure > img plus a heading inside a page-level header rail.

Decorative full-bleed page banner

Page-scoped hero

Utilities

Class-based helpers in the utility layer: .flex / .row / .inline / .flex-{0-4} / .justify-* / .align-*, and .grid driven by the --grid-column-count dial.

Flex row — justify & align

Flex grow steps

.flex-1
.flex-2 (2× share)
.flex-0 (holds size)

Grid — 3-column override

1
2
3
4
5
6