Frontend Design Formulas (2026)
Purpose: Provide production-ready, trend-setting UI patterns for 2026 web applications.
Tech Stack: React 19+, Tailwind CSS v4, CSS Modules (optional), Shadcn/ui.
🎨 1. Aesthetic Formulas (Giao diện)
Formula A: Liquid Glass (Kính Lỏng)
Use for: Modals, Cards, Sticky Headers.
- Core:
backdrop-filter: blur(16px) saturate(180%)
- Surface:
bg-white/10 (Light) or bg-black/20 (Dark)
- Border:
border border-white/20 (Thin, subtle)
- Shadow:
shadow-[0_8px_32px_0_rgba(31,38,135,0.37)] (Soft colored shadow)
- Noise: Add a subtle noise texture overlay
opacity-5.
Formula B: Neo-Brutalism 2.0 (Thô mộc Hiện đại)
Use for: SaaS Dashboards, Developer Tools, Linear-style apps.
- Contrast: High (Black & White base + 1 Neon Accent).
- Border:
border-2 border-slate-900 (Sharp, bold).
- Shadow:
shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] (Hard offset shadow).
- Typography: Inter (Tight tracking) or Space Mono.
- Radius:
rounded-md or rounded-none (No pills).
Formula C: Eco-Dark Mode (Tiết kiệm năng lượng)
Use for: Mobile Apps, Constantly-on screens.
- Bg Base:
#000000 (Pure Black for OLED) or #050505.
- Primary Text:
text-slate-200 (Avoid pure white #FFF -> Eye strain).
- Accent: Use OKLCH colors for vibrancy without heavy brightness.
📐 2. Layout Formulas (Bố cục)
Formula D: Bento Grid (Hộp Cơm)
Use for: Feature Showcases, Analytics, Portfolio.
- CSS Grid:
grid-cols-1 md:grid-cols-3 gap-4.
- Spans: Use
col-span-2 or row-span-2 to create hierarchy.
- Content: Visual-heavy (Image/Chart) + Minimal Text.
- Hover: Subtle scale
hover:scale-[1.02] + Border glow.
Formula E: Container Queries (Card thông minh)
Use for: Reusable Components in unknown layouts.
- Parent:
container-type: inline-size.
- Child CSS:
@container (min-width: 400px) { ... }.
- Benefit: Component adapts to slot size, not screen size.
✨ 3. Interaction Formulas (Tương tác)
Formula F: Scroll-Driven Animation
Use for: Landing Pages, Storytelling.
- Tech: Native CSS
animation-timeline: scroll().
- Effect: Elements fade in, slide up, or scale based on scroll position.
- Perf: Runs on Compositor Thread (No JS Jank).
Formula G: Spring Physics (Vật lý)
Use for: Popovers, Drawers, Toggles.
- Feel: Bouncy, snappy, organic.
- Libraries:
framer-motion (presets like type: "spring", stiffness: 300, damping: 20).
- CSS Alternative:
transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275).
📜 Agent Instructions for Usage
- Identify Context: Choose Formula based on User Request (e.g., "Modern Dashboard" -> Neo-Brutalism + Bento).
- Apply Tokens: Use Tailwind classes listed in formulas.
- Code Snippets: Check
formulas/ directory for ready-to-use React components. Do NOT reinvent wheels.
Example Request:
"Make a modern landing page for my AI tool."
Agent Action:
Apply Formula A (Liquid Glass) for Header, Formula D (Bento Grid) for Features, and Formula F for animations.
1---
2name: frontend-trends-2026
3description: Collection of 2026 Frontend Design Formulas (Liquid Glass, Bento, Neo-Brutalism, Eco-Dark).
4category: ui-ux
5version: 1.0.0
6layer: specialized-skill
7metadata:
8 source: https://skillmd.com/skills/dokhacgiakhoa/frontend-trends-2026
9---
10
11# Frontend Design Formulas (2026)
12
13> **Purpose**: Provide production-ready, trend-setting UI patterns for 2026 web applications.
14> **Tech Stack**: React 19+, Tailwind CSS v4, CSS Modules (optional), Shadcn/ui.
15
16## 🎨 1. Aesthetic Formulas (Giao diện)
17
18### Formula A: Liquid Glass (Kính Lỏng)
19*Use for: Modals, Cards, Sticky Headers.*
20- **Core**: `backdrop-filter: blur(16px) saturate(180%)`
21- **Surface**: `bg-white/10` (Light) or `bg-black/20` (Dark)
22- **Border**: `border border-white/20` (Thin, subtle)
23- **Shadow**: `shadow-[0_8px_32px_0_rgba(31,38,135,0.37)]` (Soft colored shadow)
24- **Noise**: Add a subtle noise texture overlay `opacity-5`.
25
26### Formula B: Neo-Brutalism 2.0 (Thô mộc Hiện đại)
27*Use for: SaaS Dashboards, Developer Tools, Linear-style apps.*
28- **Contrast**: High (Black & White base + 1 Neon Accent).
29- **Border**: `border-2 border-slate-900` (Sharp, bold).
30- **Shadow**: `shadow-[4px_4px_0px_0px_rgba(0,0,0,1)]` (Hard offset shadow).
31- **Typography**: Inter (Tight tracking) or Space Mono.
32- **Radius**: `rounded-md` or `rounded-none` (No pills).
33
34### Formula C: Eco-Dark Mode (Tiết kiệm năng lượng)
35*Use for: Mobile Apps, Constantly-on screens.*
36- **Bg Base**: `#000000` (Pure Black for OLED) or `#050505`.
37- **Primary Text**: `text-slate-200` (Avoid pure white `#FFF` -> Eye strain).
38- **Accent**: Use OKLCH colors for vibrancy without heavy brightness.
39
40## 📐 2. Layout Formulas (Bố cục)
41
42### Formula D: Bento Grid (Hộp Cơm)
43*Use for: Feature Showcases, Analytics, Portfolio.*
44- **CSS Grid**: `grid-cols-1 md:grid-cols-3 gap-4`.
45- **Spans**: Use `col-span-2` or `row-span-2` to create hierarchy.
46- **Content**: Visual-heavy (Image/Chart) + Minimal Text.
47- **Hover**: Subtle scale `hover:scale-[1.02]` + Border glow.
48
49### Formula E: Container Queries (Card thông minh)
50*Use for: Reusable Components in unknown layouts.*
51- **Parent**: `container-type: inline-size`.
52- **Child CSS**: `@container (min-width: 400px) { ... }`.
53- **Benefit**: Component adapts to *slot* size, not screen size.
54
55## ✨ 3. Interaction Formulas (Tương tác)
56
57### Formula F: Scroll-Driven Animation
58*Use for: Landing Pages, Storytelling.*
59- **Tech**: Native CSS `animation-timeline: scroll()`.
60- **Effect**: Elements fade in, slide up, or scale based on scroll position.
61- **Perf**: Runs on Compositor Thread (No JS Jank).
62
63### Formula G: Spring Physics (Vật lý)
64*Use for: Popovers, Drawers, Toggles.*
65- **Feel**: Bouncy, snappy, organic.
66- **Libraries**: `framer-motion` (presets like `type: "spring", stiffness: 300, damping: 20`).
67- **CSS Alternative**: `transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275)`.
68
69## 📜 Agent Instructions for Usage
70
711. **Identify Context**: Choose Formula based on User Request (e.g., "Modern Dashboard" -> Neo-Brutalism + Bento).
722. **Apply Tokens**: Use Tailwind classes listed in formulas.
733. **Code Snippets**: Check `formulas/` directory for ready-to-use React components. Do NOT reinvent wheels.
74
75---
76
77**Example Request:**
78> "Make a modern landing page for my AI tool."
79**Agent Action:**
80> Apply **Formula A (Liquid Glass)** for Header, **Formula D (Bento Grid)** for Features, and **Formula F** for animations.