Skip to content

An interactive showcase of modern CSS foundations for learning and education purposes. Pure CSS, no frameworks.

License

Notifications You must be signed in to change notification settings

ThomasJButler/css-showcase

Repository files navigation

CSS Showcase

Interactive showcase of CSS capabilities from fundamentals to cutting-edge features. Built with Next.js and shadcn/ui — a quick reference for checking CSS details and implementation patterns.

Live: https://thomasjbutler.github.io/css-showcase/

image

What It Is

A comprehensive CSS learning resource with 30+ pages of live demos, interactive playgrounds, and real code examples. Everything from basic selectors to modern features like container queries, the :has() selector, scroll-driven animations, and colour spaces. Also built as a practice project for the shadcn/ui component framework.

Layout & Visual Effects

  • Flexbox and Grid with interactive controls
  • Flexbox design patterns
  • CSS layout techniques (positioned, absolute, relative)
  • Responsive design and media queries
  • Gradients (linear, radial, conic) with interactive builder
  • Gradient composition patterns
  • Transitions and keyframe animations
  • Filters and blend modes with interactive playground

Key Features

  • Dark/light mode with system preference detection
  • Interactive playgrounds
  • Global search (Cmd/Ctrl + K)
  • Collapsible code snippets with syntax highlighting
  • Copy-to-clipboard for all code examples
  • Fully responsive mobile-first design
  • WCAG AA compliant accessibility

Tech Stack

  • Framework: Next.js 16 with React 19
  • UI Components: shadcn/ui (Radix UI primitives)
  • Styling: Tailwind CSS 4 + CSS Modules for page-specific demos
  • Syntax Highlighting: Shiki
  • Animations: Motion (Framer Motion)
  • Theming: next-themes with CSS custom properties
  • Fonts: Nunito Sans, Nunito, JetBrains Mono

Browser Support

  • Chrome/Edge 106+
  • Firefox 110+
  • Safari 16+

Contributing

Pull requests welcome. For major changes, open an issue first.

License

MIT License — use anything you want from this project.

Built by Thomas Butler

About

An interactive showcase of modern CSS foundations for learning and education purposes. Pure CSS, no frameworks.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •