@alamantus/lighter

a ridiculously small css framework

Usage no npm install needed!

<script type="module">
  import alamantusLighter from 'https://cdn.skypack.dev/@alamantus/lighter';
</script>

README

lighter 🔥

npm min+gzipped size install size Downloads

a ridiculously small responsive css framework.

ajusa challenged themself to see how small they could go, but preserve everything Skeleton, Milligram, and other micro frameworks have to offer.

Features

  • 12 Column Responsive Grid
  • Typography for h1-h6, and body text
  • Three types of buttons
  • Cards
  • Inputs
  • Table Styles

and a little bit more...

fuel

fuel is an atomic css addon for lighter. Check it out at https://alamantus.github.io/lighter/docs/fuel.html, and check back occasionally for new features!

Getting Started

  1. Install lighter.css with one of the following:
  • NPM: npm install --save @alamantus/lighter
  • CSS3: <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/alamantus/lighter@1.1.0/dist/lighter.css" />
  • CSSNext: <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/alamantus/lighter@1.1.0/src/lighter.css" />
  1. Read the Docs to see usage

Note: lighter uses node-sass to transform from SCSS to CSS3. Each element of lighter and fuel is split into separate "modules" in src/modules, so you can pick and choose what elements to use if you want to customize your style with Sass by @importing what you need.
There is also a CSSNext version preserved and updated from the fork from lit. If you are comfortable outright using CSSNext, you can directly include the lighter.css file in the src directory. Otherwise, use the dist/lighter.css file.

Supported Browsers

lighter supports most modern browsers (Chrome, Firefox, Edge, Opera) but it also has impressive support for older browsers. lighter has been tested on Internet Explorer 11 with no issues.

Development Setup

  1. Clone this repository (https://www.github.com/alamantus/lighter)
  2. Make sure you have npm installed
  3. Run npm install in the root directory of lighter
  4. Once that is completed, run npm run build to build the minified version and the gzipped file.
  5. If you are making changes live, use npm run watch. watch will build the minified css file in ./dist whenever there is a change in ./src/lighter.css.