Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simonpadbury/baselayer-3

A modern starter CSS library with container queries, a real CSS grid system, clamp() powered typography and spacing sizes, color-mix() shade utilities, and custom properties.
https://github.com/simonpadbury/baselayer-3

cascade-layers color-mix container-queries css cssgrid documentation eleventy-site postcss responsive-layout variables

Last synced: 27 days ago
JSON representation

A modern starter CSS library with container queries, a real CSS grid system, clamp() powered typography and spacing sizes, color-mix() shade utilities, and custom properties.

Awesome Lists containing this project

README

        

## Baselayer 3

v.3.3.0 • 22.5 KB (minified) • MIT licence.

A modern starter CSS library with container queries, a real CSS grid system, clamp() powered typography and spacing sizes, color-mix() color utilities, and custom properties.

Designed as a good place to start, Baselayer may be all you need — for small web projects. Or you may use it as a _baselayer_ to quick-start your mega project.

Ready to use as-is, Baselayer gives you all this and more:

* A modern CSS reset
* Foundational accessibility features
* A lightweight system of utility classes for controlling dimensions, positioning, spacing, borders, text, images, and colors
* Container-responsive typography and spacing
* Container query responsive layouts using grid and flexbox
* Styled form elements and buttons
* A color system based on `color-mix()` shades for for text, borders, and backgrounds
* Built-in dark mode (requires a simple JavaScript theme toggler — example provided)
* Control of many of these things using CSS variables (custom properties)

Baselayer uses some modern web technologies such as CSS Grid, CSS math functions (e.g. clamp), CSS variables, CSS cascade layers, and the color-mix function. Therefore it supports only up-to-date (2023 forward) evergreen web browsers (Safari, Firefox, Chrome, Edge, etc.).

(If you would rather use media queries instead of media queries, or if you need to support older browsers a while longer, all you need to do is search-and-replace `@container` → `@media`.)

**Documentation:** [https://simonpadbury.github.io/baselayer-3/](https://simonpadbury.github.io/baselayer-3/)

**Changelog:** [https://github.com/SimonPadbury/baselayer-3/blob/main/README.md](https://github.com/baselayer/blob/main/CHANGELOG.md)