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.
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.
Link to the bundle from unpkg. Copy `); } -->
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/@davidsouther/jiffies-css"
/>
<script src="https://unpkg.com/@davidsouther/jiffies-css/accessibility.js"></script>
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
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.
Primary
Secondary
Tertiary
Error
Surface
Surface variant
Primary container
Secondary container
Tertiary container
Error container
10
20
40
60
80
90
100
Headings are built using <h1> etc tags.
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.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officia molestias ullam quasi est a nemo, accusamus voluptatum autem.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo deleniti, repudiandae rerum nam laborum eligendi aperiam.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Neque cum eum eligendi voluptatum quasi nisi doloremque ipsam unde.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odit voluptatem necessitatibus eos iusto nam deserunt, dicta possimus.
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
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
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-
class Voila {
public:
// Voila
static const string VOILA = "Voila";
}
Validity and editability are read from ARIA and native attributes, not classes.
A pure-CSS toggle: a checkbox or radio painted as a sliding switch.
| 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 |
Styling for <details> and
<summary>.
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.
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.
Native dialog; often dialog > article.
A dl rendered as aligned label/value rows.
A styled native progress, line and round.
A fieldset[role=group] joins adjacent controls into one
segmented row.
article is the elevated card; section is the
flat panel. Each may carry header/main/footer rails.
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.
A flat panel surface. Same rail structure as the card, without the elevation.
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.
A full-bleed page banner: a figure > img plus a
heading inside a page-level header rail.
Class-based helpers in the utility layer:
.flex / .row / .inline /
.flex-{0-4} / .justify-* /
.align-*, and .grid driven by the
--grid-column-count dial.