# @nib/css-framework

> CSS utilities and component styles for non-react projects

Latest version **1.0.0** (published 2022-02-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nib/css-framework
pnpm add @nib/css-framework
yarn add @nib/css-framework
bun add @nib/css-framework
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-02-22 |
| First published | 2019-10-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | @nib |
| Maintainers | jeanvanwyklnz, sreedy, khtat, s.hossain, brad.turner, scottwalkerau, phillip.eade, johanjarvi, msikkema, alunarzewski, ikonnova, jnwest, wdvalena, blake_spiers, sbista, benlex, mleontieff, envoy49, samreedy, amy.tait.nib, muhammed-mudbath, aschofield-nib, dvasiliev, ian.darroch, syed.husain, nib-admin, lauriejones, cmayson, ken-ky-wong, stribs, bchiong, wng-services, eastwood, jason.huang.nib, mattbourke, narcher, eniland, tmcclenahan, gui99, jgarland, nib-nz-build, rlaldius, chloewicks, tgoldthorpe-nib, nib-build-agent, hlee, jackmennienib, dariasu, bennettsolnet, airfan, victor.shi, john.vaughan, samdiamond, rovacsek, roland.molina, gnguyennib, james_mudbath, tom.mok, dnib, gl0206, mstephens, tbrown-nib, vicvinegar, jordancollins, stab, josh.low, oshan.kottege, xiaoxinghu, liaa, kevinping, awadhwa, ben.slater-mudbath, dylan.cawsey, rbowen006, seanw.nib, anishmat27, sean0x42, zander-mudbath, sbeliak-nib, vpurushmudbath, topstar423, sylvainmudbath, c.lassen, baklantat, priyankahassija, antonpolkanov, saxoncameron-mudbath, bzhong, aglazyrin-mb, ajeetchaulagain, nk1337, karamdaddy-solnet, dmitrymatveev, jw1612, vaishalibhakhar, alejop-mudbath, r3gm1, maraza1721, d-martin-nib, apnib, jim.hortle, digio-shanefitzgerald, digio-peterbaldwin, sedrak-digio, digio-nickanderson, kieran.harvey, siyengar94 |
| Keywords | css, framework, css framework |

## Links

- npm: https://www.npmjs.com/package/@nib/css-framework
- Repository: https://github.com/nib-group/css-framework
- Homepage: https://github.com/nib-group/css-framework#readme
- Issues: https://github.com/nib-group/css-framework/issues
- npm.io page: https://npm.io/package/@nib/css-framework

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-02-22
- 0.1.0 — 2021-02-23
- 0.0.5-preview.0 — 2020-02-19
- 0.0.3 — 2019-10-24
- 0.0.2 — 2019-10-24
- 0.0.1 — 2019-10-24

## README

[![Build status](https://badge.buildkite.com/d10236ade7c4093a984b1c17a2a3d3f297ea45d42166ddf1c4.svg?branch=master)](https://buildkite.com/nib-health-funds-ltd/css-framework)

# CSS Framework

Tailwind-powered CSS Framework.

This documentation was written using [Svelte](https://svelte.dev/).

## Guidelines

- We have removed some of the default variants in the `tailwind.config.js` file (to save space)
- Breakpoints: Currently only have 2 (`md` (640px), `xl` (960px))
- Tailwind Intellisense vscode plugin is mint
- Spacing in the theme determines the `w-*` utilities

## Adding the CSS Framework to your App

### Using _CDN_

1. Add the `styles.min.css` via _CDN_ into your `index.html`:

   ```html
   <link
     href="https://unpkg.com/@nib/css-framework@^1.0.0/dist/styles.min.css"
     rel="stylesheet"
   />
   ```

   This will give you version `1.0.0`. To get the latest version, remove `@^1.0.0` from the `href`.

## Getting started

To get started:

1. Clone the repository:

   ```bash
    git clone git@github.com:nib-group/css-framework.git
   ```

1. Install the dependencies:

   ```bash
   # Using npm
   npm install

   # Using Yarn
   yarn
   ```

1. Build the `dist` folder:

   ```bash
   # Using npm
   npm run build

   # Using Yarn
   yarn run build
   ```

   This will build out the `dist/styles.css` and `dist/styles.min.css` files used by the docs.

   To optimise the CSS for production, [cssnano](https://cssnano.co/) has been used for the minified styles.

1. Start the development server:

   ```bash
   # Using npm
   npm run dev

   # Using Yarn
   yarn run dev
   ```

Now you should be able to see the project running at [localhost:5000](http://localhost:5000).

## Any questions?

If there are any questions about this process you can ask us at the [#designops](https://app.slack.com/client/T04G2NPUL/C8W3UEY5C) slack channel.

---
_Source: https://npm.io/package/@nib/css-framework · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
