1.0.2 • Published 3 months ago

@swapr/ui v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

@swapr/ui

Documentation

For documentation, visit swapr-ui-website, it's still work in progress.

Getting started

Swapr UI will help you build dapp supafast by having a set of web components built with the utility classes from Tailwind CSS.

Install it with npm

npm install @swapr/ui@latest

Install it with bun

bun add @swapr/ui@latest

If are using Tailwind CSS on your project

Add this path to content on tailwind config

Tailwind Config

 content: [
    <!-- other paterns -->
    "./node_modules/@swapr/ui/**/*.{js,ts,js,mjs}",
  ],

Import Colors

You can either import colors or just copy colors.css and tweak it. On Next js, you can import it on a place like layout.js.

  import "@swapr/ui/colors.css";

Not using tailwind css

Import all the needed styles

import "@swapr/ui/styles.css";

Library

Available Scripts

Build the library

This will run rollup with -c command (to check rollup config file)

bun run build

Publish the library

Make sure you run the build command before publishing, also update the lib version package.json

npm publish

Run tailwindcss to compile styles

bun run build:tailwind

Run storybook locally

bun run storybook

Build storybook

bun run build:storybook
1.0.2

3 months ago

1.0.1

3 months ago

1.0.0

3 months ago

1.0.0-beta.2

4 months ago

1.0.3-beta.1

3 months ago

1.0.0-beta.3

4 months ago

1.0.0-beta.4

4 months ago

1.0.2-beta.1

3 months ago

1.0.0-beta.5

4 months ago

1.0.0-beta.0

4 months ago

1.0.0-beta.1

4 months ago

1.0.0-beta.11

3 months ago

1.0.0-beta.12

3 months ago

1.0.0-beta.10

4 months ago

1.0.0-beta.6

4 months ago

1.0.0-beta.7

4 months ago

1.0.0-beta.8

4 months ago

1.0.0-beta.9

4 months ago

1.0.0-beta.13

3 months ago

1.0.0-beta.14

3 months ago

0.1.42

9 months ago

0.1.41

9 months ago

0.1.4

9 months ago

0.1.3

11 months ago

0.0.1

1 year ago