Skip to main content
{/}codefunc
← All articles

CSS & Design

Layout, motion, accessibility, and modern CSS techniques.

Layout, motion, typography, and accessibility from a working developer's angle — patterns you can paste into production, not abstract theory.

Articles link to live CSS tools on codefunc so you can try clamp values, contrast ratios, and animation timing in the browser.

Topics covered

  • Fluid typography with clamp() and responsive type scales
  • WCAG color contrast ratios and accessible palettes
  • Modern CSS techniques for layout and motion

Articles

6
CSS & Design

CSS Transitions, Keyframes, and Units: Motion That Stays Maintainable

Choose transitions vs @keyframes, pick units that scale, and build reusable motion snippets — with performance and accessibility rules that keep UI snappy.

Aug 1, 20266 minRead
CSS & Design

CSS Gradients, Shadows, and Easing: Visual Tokens That Perform

Build practical gradient and shadow design tokens, pick easing curves that feel right, and avoid paint-heavy effects that tank scroll performance.

Jul 20, 20266 minRead
CSS & Design

Vanilla Extract: Zero-Runtime CSS-in-TypeScript

A practical guide to Vanilla Extract — type-safe styles at build time, theming with CSS variables, recipes and sprinkles, and when to pick it over Tailwind or CSS Modules.

Jul 8, 20269 minRead
CSS & Design

CSS Flexbox and Grid: When to Use Each and How They Work Together

A practical guide to modern CSS layout — flexbox for one-dimensional alignment, grid for two-dimensional structure, and patterns for combining them in production components.

Jul 7, 20269 minRead
CSS & Design

CSS clamp() Explained: Fluid Typography and Spacing Without Media Query Hell

Master the clamp() function for responsive font sizes, gutters, and component dimensions — with formulas, real examples, and common mistakes that break layouts.

Jun 28, 20265 minRead
CSS & DesignFeatured

A11y Color Contrast: WCAG AA vs AAA and How to Fix Failing UI

A practical a11y guide to color contrast ratios, WCAG 2.2 success criteria, and a step-by-step workflow for auditing text, icons, and interactive states.

Jun 25, 20265 minRead

Search tools

Find a developer tool