Simple card
Hover with translateY(-4px) and enhanced shadow for a subtle depth effect. Fully overridable by theme.
A clean, modular CSS framework built for performance-first showcase sites. No heavy JavaScript dependencies. One single stylesheet with customizable design variables and a mobile-first approach, no compromise.
Fluid type scale with clamp(), fine-tuned tracking, and a unique black (900) weight available.
s2-tagline
.s2-lead — A subtitle or section intro, slightly larger and in muted grey.
.s2-text-xs / .s2-text-sm / .s2-text-base / .s2-text-lg
light · normal · medium · bold · black
primary · secondary · accent · muted
Text utilities — coloring, alignment, transformation
Fixed grids (2, 3, 4 columns) or auto-fit responsive grids, with unified spacing via --s2-space-* variables.
.s2-grid-4 — 4 columns
Column
Column
Column
Column
.s2-grid-auto — auto-fit, from 260px to 1fr
.s2-container caps width at 1320px with .s2-container-sm, .s2-container-md, and .s2-container-lg variants for tighter or wider layouts.
8 spacing levels from --s2-space-1 (4px) to --s2-space-8 (96px) keep vertical rhythm consistent across every section.
Fixed grids collapse to a single column on mobile with zero JavaScript, relying purely on CSS media queries.
Use .s2-col-span-2 or .s2-col-span-3 to let a single cell stretch across multiple grid columns.
Grid utilities
Cards, features, alerts, badges, callouts — each component follows the structure / theme principle.
Hover with translateY(-4px) and enhanced shadow for a subtle depth effect. Fully overridable by theme.
Cards accept images, lists, forms, or any content you place inside .s2-card-body for maximum flexibility.
Hover effects are pure CSS, and animations stay smooth thanks to GPU-accelerated custom properties.
.s2-feature stacks icon and text vertically in a flex column with full-height alignment.
.s2-feature--row places the icon on the left side, making it ideal for services and feature lists.
Variants: --primary --outline --ghost · Sizes: --sm --lg
Highlight block with a side border. Perfect for quotes, tips, or warnings.
.s2-box-highlight
Primary-light background + generous padding. Ideal for CTAs or stats.
Over 80 utility classes covering spacing, colors, display, flexbox, borders, shadows, and animations.
Margins and padding across 8 levels.
Full layout control without additional CSS.
Animations & Scroll reveal
.s2-animate-fade-in .s2-animate-fade-in-up .s2-reveal .s2-delay-1…5 — Staggered delays let you animate cards in sequence as they scroll into view.
Inputs, textarea, select — with focus states, placeholders, and multi-column grid .s2-form-row-2. Compatible with SmartForms for submission without a backend.
Form classes
Sections accept the --light, --white, --dark, --primary modifiers and --sm / --lg size variants.
The contact block uses .s2-contact-wrapper with a 2-column grid configurable via --s2-contact-cols.
A complete, responsive contact block with info and form integrated.
📧 hello@example.com
📞 +41 00 000 00 00
📍 Lausanne, Switzerland