/responsive-components

A modern approach to styling elements based on the size of their container

Primary LanguageJavaScriptMIT LicenseMIT

Responsive Components

A working implementation of the strategy outlined in the article Responsive Components: a Solution to the Container Queries Problem

View Site

Viewing the Site Locally

The Responsive Components site can be built with Node.js. If you have Node.js installed on your system, you can run the following commands to build and serve a local version.

# Clone the git repository and cd into the cloned directory.
git clone https://github.com/philipwalton/responsive-components.git
cd responsive-components

# Install the dependencies
npm install

# Build and serve the site at http://localhost:8080
npm start

This starts up a local server on port 8080. To view the site in your browser, navigate to http://localhost:8080.

In addition to building the site and serving it locally, this will also listen for any changes and rebuild the site as needed. This allows you to play around with the code, refresh the browser, and see your changes instantly.