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.
Blue Theme
Simply changing text color themes everything.
Green Theme
No CSS changes needed, just the text color.
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.
- Unordered list item 1
-
Unordered list item 2
- Nested item
- Another nested item
- Unordered list item 3
- Ordered list item 1
- Ordered list item 2
- Ordered list item 3
Forms
All form elements are styled semantically with focus states and accessibility features.
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.
Badges
Layout Components
Button Groups
Attached Button Group
Stack Layout
Progress Indicators
Alerts
Avatars & Loading
Tables
Tables are styled semantically with proper headers and accessibility features.
| Name | Role | Status | Actions |
|---|---|---|---|
| John Doe | Developer |
|
|
| Jane Smith | Designer |
|
|
| Bob Johnson | Manager |
|
|
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.
Tab 2 Content
This is the content for the second tab. Notice how the styling adapts to ARIA states.
Tab 3 Content
This is the content for the third tab. Everything uses semantic ARIA 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.
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
- Semantic HTML: Uses proper HTML elements and ARIA patterns
- Neutral-first: Everything adapts to text color for complete theming
- Accessible: Built with accessibility as a first-class concern
- Layered: Clear separation between normalization, themes, base styles, and components
-
Custom Elements: Components use
ui-prefix for clarity - Minimal Classes: Relies on semantic HTML instead of utility classes
- Responsive: Mobile-first design that adapts to all screen sizes
- Performance: Lightweight CSS with minimal overhead