@govconnex/ui-tailwind

0.0.2 • Public • Published

GovConnex UI — Tailwind Theme

npm

This project is a utility for generating a Tailwind CSS configuration object based on the GovConnex Figma token theme objects. Tailwind CSS is a utility-first CSS framework for rapidly building custom user interfaces. This utility is suitable for use in non-React projects, such as static HTML sites where want to use the same theme tokens as in the UI library.

Prerequisites

You need to have Node.js and npm installed on your machine.

Installing

npm i --save-dev @govconnex/ui-tailwind tailwindcss

Usage

In the CLI:

npx tailwindcss -c node_modules/@govconnex/ui-tailwind/tailwind.config.js -i node_modules/@govconnex/ui-tailwind/tailwind-theme.css 

Guidelines

Rem/em/px guidelines

  • Border width (px)
  • Icon size (em) - Inline with text.
  • Margin for typography (rem)
  • Padding for typography (em)
  • Font size (rem or %)
  • Line height (em or rem)

https://www.youtube.com/watch?v=vy-lRUMpEOs

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @govconnex/ui-tailwind

    Weekly Downloads

    2

    Version

    0.0.2

    License

    UNLICENSED

    Unpacked Size

    19.5 kB

    Total Files

    7

    Last publish

    Collaborators

    • dcarrasco
    • njombwe
    • symonomicon
    • sbracegirdle.gcx
    • pvavich
    • beanpup.py