Skip to content

ThomasJButler/css-showcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎨 The Ultimate CSS Showcase v1.1

An interactive showcase of CSS capabilities - from fundamentals to cutting-edge features. Pure CSS, no frameworks.

image

✨ Version 1.1 Released! - Enhanced UX, search functionality, accessibility improvements, and micro-interactions.

Pure CSS Vanilla JS No Frameworks British English


🌟 Features

🎮 Interactive CSS Playground

Write CSS code and see live results instantly. Perfect for learning and experimentation.

🚀 Modern CSS (2024-2025)

Explore the latest CSS features including:

  • :has() selector - The parent selector we've been waiting for
  • Container Queries - Responsive components based on container size
  • CSS Nesting - Native nesting without preprocessors
  • Scroll Animations - Scroll-driven effects without JavaScript
  • Anchor Positioning - Position elements relative to others
  • New Colour Spaces - OKLCH, LAB, and more vibrant colours
  • CSS Subgrid - Align nested grids perfectly

🎨 Pure CSS Components

  • Icons - No icon fonts needed, pure CSS icons with animations
  • Buttons - 50+ button styles from simple to spectacular
  • Forms - Beautiful, accessible form designs
  • Cards - Versatile card layouts and effects
  • Tables - Data presentation that's both functional and beautiful

🌓 Dark/Light Mode

Fully themed with CSS custom properties. Respects system preferences.

📱 Fully Responsive

Mobile-first design that looks brilliant on every device.

Accessible

Semantic HTML, ARIA labels, keyboard navigation, and focus states throughout.

🇬🇧 British English

Properly spelt with a dash of British charm and personality!

🚀 Quick Start

  1. Clone the repository

    git clone https://github.com/ThomasJButler/css-showcase.git
    cd css-showcase
  2. Open in browser

    # Open directly
    open index.html
    
    # Or serve with any static server
    python -m http.server 8000
    # Visit http://localhost:8000

That's it! No build process, no dependencies, just pure web technologies.

📚 What's Included

Core Concepts

  • Fundamentals - Selectors, cascade, specificity, units
  • Box Model - Padding, margins, borders explained visually
  • Typography - Beautiful text styling techniques
  • Layout - Flexbox, Grid, positioning, floats

Visual Effects

  • Gradients - Linear, radial, conic gradients
  • Transitions - Smooth state changes
  • Animations - Keyframe animations and effects
  • Filters & Blend Modes - Instagram-worthy effects
  • 3D Transforms - Add depth to your designs

Advanced Features

  • Custom Properties - CSS variables and theming
  • Shapes & Clips - Break free from rectangles
  • Modern Functions - min(), max(), clamp(), calc()
  • Progressive Enhancement - Fallbacks and feature detection

Interactive Demos

Every concept includes:

  • Live, interactive examples
  • Colour-coded syntax highlighting
  • Copy-to-clipboard functionality
  • Browser support indicators

🗂️ Project Structure

css-showcase/
├── index.html                 # Landing page with feature grid
├── playground.html            # Interactive CSS editor
├── 
├── 📁 Modern CSS Features
│   ├── has-selector.html      # :has() selector demos
│   ├── container-queries.html # Container query examples
│   ├── css-nesting.html       # Native CSS nesting
│   └── ...more
├── 
├── 📁 Components
│   ├── buttons.html           # Button showcase
│   ├── forms.html             # Form styling
│   ├── icons.html             # Pure CSS icons
│   └── ...more
├── 
├── 📁 styles/
│   ├── main.css              # Global styles & theming
│   ├── playground.css        # Playground specific
│   ├── modern-features.css   # Modern CSS demos
│   └── ...component styles
└── 
└── 📁 scripts/
    ├── main.js               # Core functionality
    ├── playground.js         # Editor functionality
    └── ...component scripts

🛠️ Technical Details

No Build Process

  • Pure HTML, CSS, and JavaScript
  • No frameworks or libraries
  • No compilation or bundling required
  • Just open and edit!

CSS Architecture

  • CSS Custom Properties for theming
  • BEM-inspired naming conventions
  • Mobile-first responsive approach
  • Progressive enhancement

Browser Support

  • ✅ Chrome/Edge 106+
  • ✅ Firefox 110+
  • ✅ Safari 16+
  • ✅ Mobile browsers
  • Graceful fallbacks for older browsers

Performance

  • Minimal JavaScript (enhancement only)
  • Lazy loading for interactive demos
  • Optimised for fast initial load
  • Zero runtime dependencies

📋 Changelog

v1.1 (Current Release)

New Features

  • 🔍 Global Search (Cmd/Ctrl + K) - Instantly find any CSS feature
  • 🍞 Breadcrumb Navigation - Better orientation on all pages
  • Syntax Highlighting - Custom lightweight code highlighting
  • 📋 Copy Code Buttons - One-click copying for all examples
  • 🎭 Micro-interactions - Subtle animations throughout
  • Accessibility Overhaul - WCAG compliant with full keyboard support

Improvements

  • Enhanced mobile navigation with backdrop and smooth animations
  • Improved header with auto-hide on scroll
  • Better spacing and typography for readability
  • Refined card designs with hover effects
  • Ripple effects on interactive elements
  • Parallax effects in hero sections
  • Reveal animations on scroll
  • Performance optimizations for smooth 60fps

v1.0

  • Initial release with 20+ showcase pages
  • Interactive playgrounds for Flexbox, Grid, and Filters
  • Dark mode support
  • Responsive design

🎯 Learning Path

Beginners

Start with Basic CSSBox ModelTypographyFlexbox

Intermediate

Explore GridTransitionsCustom PropertiesResponsive Design

Advanced

Dive into Modern CSSContainer Queries:has() selector3D Transforms

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

See CONTRIBUTING.md for more details.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details. Feel free to use any code or techniques from this showcase in your own projects!

🙏 Acknowledgments

  • Inspired by the amazing CSS community
  • Built with passion and far too much tea ☕
  • Special thanks to all who provided feedback and suggestions

🎪 Easter Egg

Try the Konami Code (↑↑↓↓←→←→BA) on any page for a surprise!


Crafted with passion by Thomas Butler

GitHubTwitterMIT License

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •