Colors
Our color palette draws inspiration from the Swiss Alps: glacier blues, mountain navy shadows, and the iconic Swiss red accent. Each color has a full 50-950 scale for versatility.
Glacier Blue
Primary cool tone inspired by alpine glacier ice.
Sky Blue (Primary)
Primary action color inspired by clear mountain skies.
Alpine Navy (Secondary)
Deep, authoritative tone inspired by mountain shadows.
Alpine Red (Accent)
Bold accent inspired by the Swiss cross - use sparingly for emphasis.
Semantic Colors
Pre-mapped colors for common use cases.
Typography
Clean, readable typography with Inter for UI text and JetBrains Mono for code. Swiss-inspired precision with comfortable line heights.
Type Scale
Monospace
const greeting = "Hello, Alps!";
function calculate(a, b) {
return a + b;
}
Font Weights
Spacing
A consistent spacing scale based on 0.25rem (4px) units. Swiss grid-inspired for clean, geometric layouts.
Shadows
Subtle, minimal shadows for a clean Swiss aesthetic. Use sparingly to indicate elevation.
Cards
Clean surfaces for grouping related content. Use subtle elevation to indicate hierarchy.
Default Card
With header and body
Card content goes here. This is a basic card with a subtle border and shadow.
Elevated Card
More prominent shadow for highlighted content.
Interactive Card
Hover to see the lift effect. Great for clickable items.
Forms
Clean, accessible form elements with clear focus states.
Must be at least 8 characters
Input States
This field is required
Badges
Compact indicators for status, labels, and counts.
Badge Variants
Solid Badges
With Dot
Alerts
Contextual feedback messages for user actions and system status.
Usage
How to integrate the design system into your projects.
CDN Usage (Recommended)
<!-- Fonts (optional - falls back to system fonts) --> <link rel="stylesheet" href="https://static.dsalathe.dev/css/dsalathe-fonts.css"> <!-- Design Tokens (required) --> <link rel="stylesheet" href="https://static.dsalathe.dev/css/dsalathe-tokens.css"> <!-- Theme & Base Styles (recommended) --> <link rel="stylesheet" href="https://static.dsalathe.dev/css/dsalathe-theme.css"> <!-- Pre-built Components (optional) --> <link rel="stylesheet" href="https://static.dsalathe.dev/css/dsalathe-components.css">
Tailwind CSS Integration
// tailwind.config.js
import { dsalatheTheme } from 'https://static.dsalathe.dev/js/tailwind-theme.js';
// Or download and import locally
export default {
theme: {
extend: dsalatheTheme
}
}
Using CSS Variables
.my-component {
background-color: var(--ds-surface);
color: var(--ds-text-primary);
padding: var(--ds-space-4);
border-radius: var(--ds-radius-lg);
box-shadow: var(--ds-shadow-md);
font-family: var(--ds-font-sans);
}
Framework Integration
The design system works with any framework:
- Next.js / React: Import CSS in _app.tsx or layout.tsx
- Vue: Import CSS in main.ts or App.vue
- Streamlit: Use st.markdown with unsafe_allow_html
- Keycloak: Add to theme resources
- Static HTML: Link tags in head