Semantic Forms

A pattern library of forms based on semantic HTML enhanced with a modern UX.

High flow (JavaScript enabled) styling

Password should be at least 8 characters long.

Password should be at least 8 characters long.

Password should be at least 8 characters long.

Fieldset legend
Nested fieldset

Here is some subtext.

Here's some small subtext.

Here's some bold subtext.

Here is some subtext.

Here is some more subtext.

Another nested fieldset
A final nested fieldset with colspan
Colspan classes
colspan-1
colspan-2
colspan-3
colspan-full
Detail element
Another detail element

Flexbox button layout pattern with two submit buttons:

  • Flexbox button layout pattern with three submit buttons:

  • P tag elements

    Some regular text with other elements inside of it

    Non-form related HTML elements

    This is some regular HTML that should not be affected by any semantic forms styles

    This is a div
    This is a block quote
    A link to the semantic forms repo
    • unordered list 1
    • unordered list 2
    • unordered list 3
    1. ordered list 1
    2. ordered list 2
    3. ordered list 3
  • menu list 1
  • menu list 2
  • menu list 3
  • description list title
    description list value
    Details summary

    Some detail text


    Low flow (JavaScript disabled) styling

    Adding the lowFlow class to the form element removes all JS enhancements.

    Password should be at least 8 characters long.

    Fieldset legend
    Nested fieldset

    Here is some subtext.

    Here's some small subtext.

    Here's some bold subtext.

    Here is some subtext.

    Here is some more subtext.

    Another nested fieldset
    Colspan classes
    colspan-1
    colspan-2
    colspan-3
    colspan-4
    colspan-5
    Details summary
    Another details element
    P tag elements

    Some regular text with other elements inside of it

    Flexbox button layout pattern with two submit buttons:

  • Flexbox button layout pattern with three submit buttons:

  • Non-form related HTML elements

    This is some regular HTML that should not be affected by any semantic forms styles

    This is a div
    This is a block quote
    A link to the semantic forms repo
    • unordered list 1
    • unordered list 2
    • unordered list 3
    1. ordered list 1
    2. ordered list 2
    3. ordered list 3
  • menu list 1
  • menu list 2
  • menu list 3
  • description list title
    description list value
    Details summary

    Some detail text