⏱️ 8 min read

Fluid UI

Modern CSS Framework (for gh_docs_bot)
Logo

Fluid UI is a lightweight, modern CSS framework built for performance and flexibility. It leverages OKLCH colors for better perceptional consistency, Fluid typography using clamp(), and a modular layout system.

ToC (Alternative Navigation)

Alternative Navigation with different (Mobile) Layout

Theme Preview

Fluid UI supports multiple themes out-of-the-box

Blue

Standard Theme (Cool Blue)

Emerald

Natural Green

Amber

Warm & Friendly

Berry

Rose & Fruity

Violet

Deep Purple & Elegant

Slate

Neutral Industrial Slate

Cyan

Refreshing Teal

Blue2

Indigo (Legacy Port)

Matrix

Terminal Neon Green

Tron

Futuristic Electric Cyan

Design Tokens

Core design properties are managed via CSS variables for consistency and easy customization.

Radius

--radius-xs: 4px;
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 18px;
--radius-pill: 999px;

Spacing

--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.5rem;
--space-6: 2rem;

Typography (Fluid)

--font-size-root: clamp(16px, 1.2vw + 0.5rem, 22px);
--font-size-small: clamp(0.8rem, 0.96vw + 0.4rem, 1.1rem);
--font-size-smaller: clamp(0.7rem, 0.84vw + 0.35rem, 0.96rem);
--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-bold: 600;

Motion

--transition-fast: 0.18s ease-out;
--transition-normal: 0.25s ease;

Colors & Themes

Fluid UI uses semantic variables that automatically adapt to light/dark modes and selected themes.

Backgrounds

--bg, --bg-alt, --bg-elevated

Brand Colors

--color-primary, -soft, -dark

Text & Border

--text, --text-muted, --border

Typography

Fluid UI uses clamp() for responsive heading sizes that scale smoothly between mobile and desktop.

Heading 1 (Hero)

Heading 2 (Section)

Heading 3 (Sub-section)

Heading 4

Heading 5
Heading 6

Standard paragraph text using --font-family-sans. It aims for high readability with proper line height (1.75 on large text blocks).

Muted text for secondary information.

Brief text with an indicator prefix.

Layout System

App Shell

The .app-shell provides a classic Header-Main-Footer structure using CSS Grid.

<div class="app-shell">
  <header class="site-header">...</header>
  <main class="site-main">...</main>
  <footer class="site-footer">...</footer>
</div>

The .layout-with-sidebar component handles responsive sidebars (side-by-side on desktop, stacked on mobile).

Desktop (> 900px)
Mobile (< 900px)

Utilities

A collection of utility classes for quick styling without writing custom CSS.

Flexbox

.flex, .inline-flex, .flex-col, .flex-row, .flex-wrap
.items-center, .justify-between, .gap-2

Grid

.grid, .grid-cols-2, .grid-gap-3
.grid-auto-sm (180px), .grid-auto-md (240px), .grid-auto-lg (320px)

Spacing

.m-0, .mt-2, .mb-4, .p-3, .px-2, .py-2

Typography & Text

.text-center, .text-muted, .text-bold, .text-smaller

Buttons

Buttons include smooth transitions and hover effects using design tokens.

<button class="btn btn-primary">Primary</button>
<button class="btn btn-outline btn-sm">Small Outline</button>

Forms

Newsletter

Cards

Cards are the primary container for content blocks, using --bg-elevated.

Classic Card
v1.0

This is a standard card with a header, title and subtitle. It uses --radius-lg and a soft shadow.

Badges & Chips

Default BadgeSoft BadgeInteractive ChipActive Chip

Tabs

System Overview

gh_docs_bot ist darauf ausgelegt, Dokumentationen extrem schnell zu bauen.

Core Features

  • C++23 Core Engine
  • Plugin System Architecture
  • Fluid UI Framework Integration

Latest Changes

v2.2.1: Support für ODT/DOCX Dateien hinzugefügt.

Accordion

What is Fluid UI?
A modern CSS framework for fast SSG sites.
Is it responsive?
Yes, it uses fluid typography and grid systems.

Toasts & Tooltips

Supports lazy loading, figcaptions, and a built-in modal gallery.

Tables

Clean, themed tables with zebra striping and hover effects.

TokenValueDescription
--bg-table-oddvar(--bg-alt)Background for odd rows
--bg-table-evenvar(--bg-elevated)Background for even rows

Status Variants & Message Boxes

System OK

The service is running normally.

Pending

A new update is available.

Alert

Database connection lost.

Operation completed successfully.
Please note that maintenance is scheduled for tonight.
Your subscription expires in 3 days.
Authentication failed. Please try again.