@f97/twilight-ui
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Twilight UI

A super opinionated UI library for React & Tailwind CSS

twilight-toolkit-storybook


Foreword

This project is work in progress.


Storybook

https://ui.twilight-toolkit.ouorz.com →


Default usage (Standalone)

  1. Import the Twilight UI stylesheet (with Tailwind CSS included in the bundle) globally:

    import "./node_module/@twilight-toolkit/ui/dist/index.css"
    
  2. Import components from @twilight-toolkit/ui:

    import { Button } from "@twilight-toolkit/ui"
    

Headless usage

In a Tailwind CSS project, Twilight UI should be used headlessly (to avoid styling conflicts).

  1. Import the Twilight UI stylesheet (without Tailwind CSS included in the bundle) globally:

    import "./node_module/@twilight-toolkit/ui/dist/index-headless.css"
    
  2. Configure tailwind.config.js for Tailwind CSS to compile Twilight UI's styling:

    module.exports = {
      content: [
       // ...
       "./node_module/@twilight-toolkit/ui/dist/index-headless.js",
      ],
    }
  3. Import components from @twilight-toolkit/ui:

    import { Button } from "@twilight-toolkit/ui"
    

Readme

Keywords

none

Package Sidebar

Install

npm i @f97/twilight-ui

Weekly Downloads

0

Version

0.0.3

License

SEE LICENSE IN LICENSE

Unpacked Size

163 kB

Total Files

7

Last publish

Collaborators

  • f97