2.0.2 • Published 4 months ago

@sukhoi-ui/components v2.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

Indroduction

Sukhoi-ui component is a collection of React components tailwindcss that helps you build your own design system.

Documentation

Visit https://sukhoin-storybook.online for documentation.

Installation

npm install @sukhoi-ui/styles @sukhoi-ui/components
yarn add @sukhoi-ui/styles @sukhoi-ui/components

Configuration

tailwind.config.js

const { withSukhoi } = require("@sukhoi-ui/components/config");

/** @type {import('tailwindcss').Config} */
module.exports = withSukhoi({
  content: ["../styles/**/*.{js,jsx,ts,tsx}"],

  // Toggle dark-mode based on data-mode="dark"
  darkMode: ["class", '[data-mode="dark"]'],
  theme: {
    extend: {},
  },
  plugins: [],
});