Cito

Powered by web-standards, native HTML elements and common sense

Welcome to Cito! 👋 This is a collection of UI elements built with native HTML and CSS, with just a small amount of JavaScript. Cito is designed as a drop-in starting point for any UI project. You can use it directly in web-based applications, with or without UI frameworks, or as a fast way to prototype interfaces for native apps. Cito follows a few simple principles: it uses only web standards (framework and tooling agnostic), and it is simple, functional, easy to modify, and useful out of the box. Have fun using it!



Typography

Cito uses a Major Second type scale with IBM Plex Mono as the default monospace font.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This is a regular paragraph with a link element.

Color System

Cito includes semantic color variables that adapt to light/dark mode:

Primary
Secondary
Success
Warning
Danger
Info

Buttons

Cito provides several button variants:

Form Elements

Styled form groups with labels, inputs, and error states:

This error message is hidden, because the cito-form-group does not have "has-error".
This is an error message example

Checkboxes

Custom styled checkboxes with clip-path animations:

Key-Value Lists

Display data in structured key-value format using semantic HTML (dl, dt, dd):

Default Style

Name
Scaffold Kit 2000 Pro
Version
1.0.0
Framework
Cito Design System
Optional
Not set

Decorated keys

Status
Active
Environment
Development
Theme
Auto (System)

Emphasized Keys

Author
Cito Team
License
MIT

Alerts

Full-width alert containers for displaying important messages:

Info: This is a default informational alert message.
Success: Your changes have been saved successfully!
Warning: This action may have unintended consequences. Please proceed with caution.
Error: An error occurred while processing your request. Please try again later.

Dropdowns

Interactive menus with complex options using the Popover API:

Dropdowns use the native Popover API for automatic positioning and dismiss behavior.

Popovers

Informational popovers with styled content using the Popover API:

Information

This is an informational popover with helpful context about a feature.

Success!

Your operation completed successfully.

Warning

Please review this information carefully before proceeding.

Error

An error occurred. Please check your input and try again.

This is a simple popover without a title.

Popovers automatically position themselves and dismiss when clicking outside.

Cards

Flexible card components with hover effects:

Default Card

This is a standard card component with title, body, and optional footer actions.

Highlighted Card

Use the "highlighted" variant to emphasize important cards with primary colors.

Compact Card

The "compact" variant reduces padding for denser layouts.

Card Variants

Success Card

Use this variant to indicate successful operations or positive states.

Warning Card

Use this variant to draw attention to cautionary information.

Error Card

Use this variant to highlight errors or critical issues that need attention.

3D Product Carousel

Interactive 3D model viewer with carousel navigation. Drag to rotate, scroll to zoom.

The <cito-3d-carousel> web component is completely self-contained with no other dependencies than ThreeJS. Models are loaded from glTF files and can be rotated interactively. API is simple: just provide an array of model URLs, then use methods: next, prev, goTo, setSize, getCurrentIndex, getModelCount. Use the hide-controls attribute to hide built-in navigation.

Horizontal List Items

Card-style list items with image, content, and actions:

First List Item

This is a horizontal card layout with a placeholder image on the left, content in the middle, and action buttons on the right.

Second List Item

Perfect for displaying lists of items with consistent structure and quick actions.

Third List Item

Hover over items to see the subtle background transition effect.

Tabs (Horizontal)

Horizontal tab navigation with content panels:

This is the Overview tab content. Click on tabs above to switch between different content panels.

This is the Features tab. The active tab is highlighted with a border bottom and bold text.

This is the Settings tab. CSS classes manage visibility while JavaScript handles the click events.

Tabs (Vertical)

Vertical tab navigation with side-by-side layout:

Profile Settings

Manage your profile information and preferences here. The vertical layout works well for settings pages.

Security Settings

Configure your security preferences, passwords, and two-factor authentication.

Notification Settings

Control which notifications you receive and how you're notified.

Advanced Settings

Advanced configuration options for power users.

Collapsible (details/summary)

Native HTML details/summary with animated transitions:

What is Cito Design System?

Cito is a drop-in CSS framework that provides productive and standard-based UI development. It uses CSS custom properties for theming and supports both light and dark color schemes automatically.

How do I use the color system?

Use the semantic color variables like var(--cito-primary-500) for backgrounds and var(--cito-text-900) for text. These automatically adapt to the user's color scheme preference.

Can I customize the components?

Yes! All components use CSS custom properties that you can override. Each component defines its own local variables that you can customize without affecting other components.

This details element is open by default using the open attribute.

Datalist (Autocomplete Input)

Native HTML datalist for autocomplete functionality:

Tables

Responsive tables that transform into card-style layouts on mobile viewports (≤32rem/512px):

Simple

On desktop, tables display in standard grid format. On mobile, each row becomes a vertical card with labels. Note: Each td element requires a data-col attribute for mobile labels.

Project Status Owner Priority Due Date
Cito Design System In Progress Design Team High 2025-12-15
Component Library Planning Dev Team Medium 2025-12-30
Documentation Site Completed Technical Writers Low 2025-11-20
Testing Framework In Progress QA Team High 2025-12-10

Bar Chart

Row backgrounds display as horizontal bar charts. Use data-bar-width (percentage) and data-bar-color (any CSS color) on each tr. Wrap cell content in <span> for text readability.

Revenue ($K) Region Manager Growth
142 North America Sarah Chen +24%
111 Europe Marcus Weber +18%
80 Asia Pacific Yuki Tanaka +31%
60 Latin America Carlos Silva +12%

Comparison

Feature Free Pro Enterprise
Basic Components ✓ ✓ ✓
Advanced Layouts — ✓ ✓
Custom Themes — ✓ ✓
Priority Support — — ✓

Actions

Tables with action buttons - actions stay right-aligned on desktop and appear last on mobile.

Name Email Role Last Active Actions
Aino Esimerkki aino.esimerkki@example.com Admin 2025-11-29
Erik Exempel erik.exempel@example.com Editor 2025-11-28
Sofia Mallikas sofia.mallikas@example.com Viewer 2025-11-30
Mikael Esimerkki mikael.esimerkki@example.com Editor 2025-11-27

Collapsible Drawers

Click "Details" to expand/collapse additional information for each row.

Order ID Customer Total Status Actions
#ORD-2001 Aino Esimerkki $459.99 Shipped

Order Details

Items
Wireless Mouse, Mechanical Keyboard, USB-C Hub
Shipping Address
Mannerheimintie 45, Helsinki 00100, Finland
Tracking Number
1Z999AA10123456784
Est. Delivery
2025-12-05
#ORD-2002 Lars Exempel $89.50 Processing

Order Details

Items
Phone Case, Screen Protector
Shipping Address
Drottninggatan 78, Stockholm 11136, Sweden
Payment Method
Credit Card ending in 4242
Order Date
2025-11-29
#ORD-2003 Elina Mallikas $1,299.00 Delivered

Order Details

Items
Premium Laptop Stand, External Monitor
Shipping Address
Runeberginkatu 22, Tampere 33100, Finland
Delivered On
2025-11-25
Signature
E. Mallikas (Verified)

Resize your browser to see the responsive transformation in action!