1.0.12 • Published 2 years ago

@tungtung/ui v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

TungTung UI

Installing TungTung UI

To use TungTung UI components, all you need to do is install the @tungtung/ui package:

yarn add @tungtung/ui

Import styles

import '@tungtung/ui/dist/assets/css/styles.css'
import '@tungtung/ui/dist/assets/fonts/all.css'

Add Tailwind preset

// tailwind.config.js
module.exports = {
  ...
  presets: [require("@tungtung/ui/tailwind-preset")],
  ...
};

Development

Install

git clone git@github.com:tungtung-dev/tungtung-design-system.git tungtung-ui
cd tungtung-ui
yarn install

Build

yarn build

Storybook

# Start Storybook
yarn storybook

# Build Storybook
yarn build-storybook

Tailwind

Tailwind style

./src/styles/tailwind.css

Tailwind config

./tailwind-preset/index.js

View Tailwind config

yarn tailwind-config-viewer
# Go to http://localhost:5000/ to view the config