UNPKG

3.12 kBMarkdownView Raw
1# lighter 🔥
2
3[![npm](https://img.shields.io/npm/v/@alamantus/lighter.svg)](https://www.npmjs.com/package/@alamantus/lighter)
4[![min+gzipped size](http://img.badgesize.io/https://cdn.jsdelivr.net/npm/@alamantus/lighter@latest/dist/lighter.css.gz)](https://cdn.jsdelivr.net/npm/@alamantus/lighter@latest/dist/lighter.css)
5[![install size](https://packagephobia.now.sh/badge?p=@alamantus/lighter)](https://packagephobia.now.sh/result?p=@alamantus/lighter)
6[![Downloads](https://img.shields.io/npm/dt/@alamantus/lighter.svg)](https://www.npmjs.com/package/@alamantus/lighter)
7
8a ridiculously small responsive css framework.
9
10[ajusa](https://github.com/ajusa) challenged themself to see how small they could go, but preserve everything Skeleton, Milligram, and other micro frameworks have to offer.
11
12## Features
13* 12 Column Responsive Grid
14* Typography for h1-h6, and body text
15* Three types of buttons
16* Cards
17* Inputs
18* Table Styles
19
20and a little bit more...
21
22## fuel
23fuel 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!
24
25## Getting Started
261. Install lighter.css with one of the following:
27 - NPM: `npm install --save @alamantus/lighter`
28 - CSS3: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/alamantus/lighter@1.2.0/dist/lighter.css" />`
29 - CSSNext: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/alamantus/lighter@1.2.0/src/lighter.css" />`
302. (Optional) Add fuel.css if you want more:
31 - CSS3: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/alamantus/lighter@1.2.0/dist/fuel.css" />`
32 - CSSNext: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/alamantus/lighter@1.2.0/src/fuel.css" />`
333. [Read the Docs](https://alamantus.github.io/lighter/) to see usage
34
35Note: lighter uses `node-sass` to transform from SCSS to CSS3. Each element of lighter and fuel is split into separate "modules"
36in `src/modules`, so you can pick and choose what elements to use if you want to customize your style with Sass by `@import`ing
37what you need.
38There is also a CSSNext version preserved and updated from the fork from [lit](https://github.com/ajusa/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.
39
40## Supported Browsers
41lighter supports most modern browsers (Chrome, Firefox, Edge, Opera) but it also has impressive support for older browsers.
42lighter has been tested on Internet Explorer 11 with no issues.
43
44## Development Setup
451. Clone this repository (https://www.github.com/alamantus/lighter)
462. Make sure you have [npm](https://www.npmjs.com/get-npm) installed
473. (for Windows) Install `windows-build-tools` so you can install stuff
484. Run `npm install` in the root directory of `lighter`
495. Once that is completed, run `npm run build` to build the minified version and the gzipped file.
506. 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`.