Design System

A unified, performance-first design language for beautiful interfaces

Color Palette

A carefully crafted color system for consistent visual harmony

Primary

#6366f1

Secondary

#8b5cf6

Accent

#ec4899

Success

#10b981

Warning

#f59e0b

Danger

#ef4444

Neutral Colors

50
100
200
300
400
500
600
700
800
900

Typography

Clear, readable type scales for every use case

Display 1 - 72px

Display 2 - 60px

Heading 1 - 48px

Heading 2 - 36px

Heading 3 - 30px

Heading 4 - 24px

Heading 5 - 20px
Heading 6 - 16px

Large Text - 18px. Perfect for introductions and lead paragraphs.

Body Text - 16px. The standard text size for comfortable reading and optimal legibility.

Small Text - 14px. Ideal for captions, labels, and secondary information.

Tiny Text - 12px. For metadata and fine print.

Spacing System

Consistent spacing based on an 8px grid system

xs - 4px
sm - 8px
md - 16px
lg - 24px
xl - 32px
2xl - 48px
3xl - 64px
4xl - 96px

Components

Reusable UI components for consistent experiences

Buttons

Cards

Basic Card

Cards are versatile containers for grouping related content and actions.

Hover Card

This card has a subtle hover effect for interactive elements.

Form Elements

Badges & Tags

Primary Secondary Success Warning Danger Outline

Animations

Smooth, performant animations using CSS transforms and GPU acceleration

Fade In

Fade In

Slide Up

Slide Up

Scale

Scale

Rotate

Rotate

Bounce

Bounce

Pulse

Pulse

Performance Note

All animations use CSS transforms and opacity for GPU acceleration. Animations respect prefers-reduced-motion for accessibility.

Progress Bars

Flexible progress indicators for loading states and task completion

Sizes & Colors

Small — Primary 40%
Default — Gradient 65%
Large — Success 85%
Warning 50%
Danger 25%

Striped & Animated

Striped70%
Animated Stripes55%
Indeterminate

Spinners

Performant loading indicators using CSS animations

Border Spinner

Small

Default

Large

Dual Ring

Success

Warning

Danger

Dots

Bouncing Dots

Ping / Ripple

Ping

Bars

Audio Bars

Dialog / Modal

Accessible modal dialogs with focus trapping and keyboard support

Variants

Scrollbar

Themed scrollbars that adapt to light and dark mode automatically

Custom Scrollbar

This container has a custom-styled scrollbar. Scroll down to see it.

The scrollbar thumb turns primary-colored on hover, integrating seamlessly with the design system.

Scrollbar width is intentionally slim (8px) to avoid occupying too much space while remaining easily grabbable.

The track uses var(--color-background-alt) and the border provides a gap between thumb and track edge for a modern floating effect.

Firefox support is included via the scrollbar-width and scrollbar-color properties.

Dark mode automatically adjusts thumb color to var(--neutral-600) for proper contrast against the dark background.

Line 7 of demo content.

Line 8 of demo content.

Line 9 of demo content.

Line 10 of demo content — end of scroll.

Integration Guide

How to use this design system in your project

1. Quick Start

Link the stylesheet in your HTML <head>:

<link rel="stylesheet" href="https://theme.sardelka.cc/styles.css">

2. JavaScript (Optional)

Include the script for interactive features like dark mode:

<script src="https://theme.sardelka.cc/script.js"></script>

3. Usage Example

Use pre-defined classes to style your content:

<button class="btn btn--primary">Primary</button>
<button class="btn btn--secondary">Secondary</button>