Skip to main content

Civility Framework

Navigation Settings

Component Showcase

Civility Demonstration

This page demonstrates all features of the neutral-first, semantic styles framework. Everything you see uses either semantic HTML or custom elements with the ui- prefix.

Neutral-First Color Philosophy

Civility uses currentColor for everything except links, making it completely themeable by changing text color.

Neutral Theme

Everything inherits this text color.

Badge

Blue Theme

Simply changing text color themes everything.

Badge

Green Theme

No CSS changes needed, just the text color.

Badge

Typography

All typography uses semantic HTML with no classes required.

Heading Level 1

Heading Level 2

Heading Level 3

Heading Level 4

Heading Level 5
Heading Level 6

This is a paragraph with bold text, italic text, and a link. Links are the only elements with color by default.

Here's some inline code and a keyboard shortcut.

// Code block
function example() {
    return "Hello, World!";
}

This is a blockquote. It demonstrates how semantic elements are styled without any classes.

  1. Ordered list item 1
  2. Ordered list item 2
  3. Ordered list item 3

Forms

All form elements are styled semantically with focus states and accessibility features.

Personal Information

Custom Components

Framework components use custom elements with ui- prefix for semantic clarity.

Cards

Basic Card

This is a simple card with some content.

Clickable Card

This card has hover effects and cursor pointer.

Card with Components

Cards can contain other framework components.

Success

Badges

Default Success Warning Error Info

Layout Components

Button Groups

Attached Button Group

Stack Layout

Item 1
Item 2
Item 3

Progress Indicators

Alerts

Success! This is a success message. Warning: This is a warning message. Error: This is an error message. Info: This is an informational message.

Avatars & Loading

JD AB XY

Tables

Tables are styled semantically with proper headers and accessibility features.

Name Role Status Actions
John Doe Developer Active
Jane Smith Designer Pending
Bob Johnson Manager Inactive

ARIA-Aware Components

Civility automatically styles ARIA patterns for accessibility.

Tab Interface

Tab 1 Content

This is the content for the first tab. Civility automatically styles ARIA tab patterns.

Details/Summary

Click to expand

This content is hidden by default and can be expanded using the details/summary elements. Civility provides attractive styling for these semantic HTML elements.

This alert is inside a collapsible section!

Responsive Design

Civility is mobile-first and responsive. Resize your browser to see the layout adapt.

Card 1

Responsive grid

Card 2

Adapts to screen size

Card 3

Mobile-first approach

Card 4

Semantic and accessible

Framework Benefits

Showing all components