@nib/css-framework

1.0.0 • Public • Published

Build status

CSS Framework

Tailwind-powered CSS Framework.

This documentation was written using Svelte.

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:

    <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:

     git clone git@github.com:nib-group/css-framework.git
  2. Install the dependencies:

    # Using npm
    npm install
    
    # Using Yarn
    yarn
  3. Build the dist folder:

    # 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 has been used for the minified styles.

  4. Start the development server:

    # Using npm
    npm run dev
    
    # Using Yarn
    yarn run dev

Now you should be able to see the project running at localhost:5000.

Any questions?

If there are any questions about this process you can ask us at the #designops slack channel.

Package Sidebar

Install

npm i @nib/css-framework

Weekly Downloads

92

Version

1.0.0

License

MIT

Unpacked Size

1.29 MB

Total Files

4

Last publish

Collaborators

  • nnattawat
  • s.bista
  • aadams-rasa
  • rgstephens
  • abilioh
  • sdarshy
  • smdabrar
  • anylyne
  • pmv-npm
  • aiswaryarajendran
  • kemila-nib
  • dermotosullivannib
  • xunsavior
  • chaulagainajeet
  • daron.robinson
  • davetapsonnib
  • zainab.saif
  • indira.ramachandra
  • williamgonzaleznib
  • shane-w
  • amir.rudd
  • anandmampuzhakal
  • vaanim
  • sarahyapnib
  • varindernib
  • lguan
  • nib-daniel
  • paritoshdhebar_endava
  • fe_nib
  • l.lourenco
  • nicknguyennib2
  • sam-jacobson
  • sanjaydholakiya.nibtravel
  • vinualwisnib
  • sobitha
  • tom-endava
  • satkaur
  • dean-nib
  • brettalcorn
  • steevtee
  • wstolp
  • daniel-nib
  • sachin.patil79
  • phil.a.hawkins
  • csfrank-nib
  • davidvnib
  • ts1654
  • artem.shkumat
  • jezz-jon
  • nib-vish
  • anandmenon
  • jbayer
  • rasberghout
  • tkemp
  • csol94
  • nmaffioldnib
  • zi_choong
  • kim-mckenna-endava
  • xhua026
  • reallandal
  • brodee
  • dlegaspi-nib
  • nadeeth-nib1
  • digio-shanefitzgerald
  • darcymerrickmudbath
  • saranya-nibtravel
  • trentontws
  • krut
  • eddylj
  • georgia-batson
  • adamgonlag
  • paul-neville-thompson
  • terencesunendava
  • nathanpiper-nib
  • sylvia.zh
  • dluong.mud
  • karlb_nz
  • neon-inkblast
  • bencoll
  • amelialuwia
  • cooldesignluke
  • julie.li
  • connorpmcbride
  • tarantoj
  • samreedy
  • caleb.faith
  • shirleyshao
  • kieranjogrady
  • samjwillis-nib
  • nathan.ford-nib
  • sumo_nib
  • domcorso-nib
  • jmatas
  • mthamyeeznib
  • swaff-y
  • nathananstess.nib
  • parisa.heyd
  • stephen.wong
  • thomasc42
  • sameer-e-digio
  • fiona.wang
  • elias.tran.nib
  • pkernaghan
  • ruilunli
  • alankirknibtravel
  • mgw114
  • gaurijadhav
  • sannat-digar
  • bradley.williams
  • sheren
  • ash-tulett-nib
  • damodaran
  • joshgermon-nib
  • joshua.coleiro
  • juliexxvi
  • john.hartmann.nib
  • johnpaulvaughan
  • georgia.batson
  • blakehattingh
  • chris.close.nib
  • dsmitham
  • c.rhind
  • tristancampbellmb
  • danieltran-nib
  • dguilbert
  • tejaswikota
  • tjodzio-nib
  • mitchellharrold
  • billthomas-nib
  • harshahr1994
  • dimi7ri
  • akash.prakash
  • vivien_clifford_nib
  • pallavi.barna
  • bendharvey
  • s.hossain
  • brad.turner
  • scottwalkerau
  • johanjarvi
  • msikkema
  • alunarzewski
  • jnwest
  • mleontieff
  • amy.tait.nib
  • aschofield-nib
  • ian.darroch
  • syed.husain
  • nib-admin
  • lauriejones
  • cmayson
  • ken-ky-wong
  • stribs
  • wng-services
  • eastwood
  • mattbourke
  • narcher
  • tmcclenahan
  • nib-nz-build
  • tgoldthorpe-nib
  • nib-build-agent
  • jackmennienib
  • dariasu
  • bennettsolnet
  • airfan
  • rovacsek
  • gnguyennib
  • tom.mok
  • tbrown-nib
  • vicvinegar
  • oshan.kottege
  • xiaoxinghu
  • rbowen006
  • seanw.nib
  • anishmat27
  • sean0x42
  • zander-mudbath
  • sbeliak-nib
  • c.lassen
  • dmitrymatveev
  • vaishalibhakhar
  • alejop-mudbath
  • r3gm1
  • maraza1721
  • d-martin-nib
  • apnib
  • siyengar94