@twilight-toolkit/ui
v0.0.2
Published
A super opinionated UI library for React & Tailwind CSS
Downloads
1
Readme
Twilight UI
A super opinionated UI library for React & Tailwind CSS
Foreword
This project is work in progress.
Storybook
https://ui.twilight-toolkit.ouorz.com →
Default usage (Standalone)
Import the Twilight UI stylesheet (with Tailwind CSS included in the bundle) globally:
import "./node_module/@twilight-toolkit/ui/dist/index.css"
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).
Import the Twilight UI stylesheet (without Tailwind CSS included in the bundle) globally:
import "./node_module/@twilight-toolkit/ui/dist/index-headless.css"
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", ], }
Import components from
@twilight-toolkit/ui
:import { Button } from "@twilight-toolkit/ui"