0.2.872 • Published 10 months ago

@saharaai/ui v0.2.872

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

Sahara UI System

npm.io

Figma Design

Storybook

Sahara UI Library

1. install package

yarn install @saharaai/ui

or

npm install @saharaai/ui

2. import necessary files

import { SaButton, SaUIContextProvider } from '@saharaai/ui'
import '@saharaai/ui/build/main.css'

3. Use in tsx

<SaUIContextProvider>
  <SaButton>Click me</SaButton>
  <SaButton type="primary">Click me</SaButton>
</SaUIContextProvider>

Optional Tailwind Plugins

This package provides several Tailwind CSS plugins that you can use in your projects. These plugins include font styles and color configurations.

  1. Make sure you have Tailwind CSS installed in your project.

  2. Import the plugins in your tailwind.config.js:

// Option 1: Import all plugins at once
module.exports = {
  // ...your other tailwind config
  plugins: [
    // This will import all plugins (color, font, and fontV2)
    ...require('@saharaai/ui/tailwind-plugins'),
  ],
}

// Option 2: Import specific plugins individually
module.exports = {
  // ...your other tailwind config
  plugins: [
    require('@saharaai/ui/tailwind-plugins/color'),
    require('@saharaai/ui/tailwind-plugins/font'),
    require('@saharaai/ui/tailwind-plugins/fontV2'),
  ],
}

Available Plugins

Color Plugin

Adds color CSS variables based on the theme.value.json file to your project.

require('@saharaai/ui/tailwind-plugins/color')

Font Plugin

Adds utility classes for typography with consistent sizing, weights, and line heights.

require('@saharaai/ui/tailwind-plugins/font')

FontV2 Plugin

An updated version of the font plugin with additional font family configurations.

require('@saharaai/ui/tailwind-plugins/fontV2')

Shortcut Plugin

An shortcut of utilities(Still need discussion)

require('@saharaai/ui/tailwind-plugins/shortcut')
0.2.872

10 months ago

0.2.871

10 months ago

0.2.87

10 months ago

0.2.86

10 months ago

0.2.85

10 months ago

0.2.84

10 months ago

0.2.83

10 months ago

0.2.80

10 months ago

0.2.79

10 months ago

0.2.78

10 months ago

0.2.77

10 months ago

0.2.76

10 months ago

0.2.75

10 months ago

0.2.74

10 months ago

0.2.73

10 months ago

0.2.72

10 months ago

0.2.71

10 months ago

0.2.70

10 months ago

0.2.69

10 months ago

0.2.68

10 months ago

0.2.67

11 months ago

0.2.66

11 months ago

0.2.65

11 months ago

0.2.64

11 months ago

0.2.63

11 months ago

0.2.61

11 months ago

0.2.60

11 months ago

0.2.58

11 months ago

0.2.57

11 months ago

0.2.56

11 months ago

0.2.55

11 months ago

0.2.54

11 months ago

0.2.53

11 months ago

0.2.52

11 months ago

0.2.51

11 months ago

0.2.50

11 months ago

0.2.49

11 months ago

0.2.48

11 months ago

0.2.47

11 months ago

0.2.46

11 months ago

0.2.45

11 months ago

0.2.44

11 months ago

0.2.43

11 months ago

0.2.41

12 months ago

0.2.40

12 months ago

0.2.39

12 months ago

0.2.38

12 months ago

0.2.37

12 months ago

0.2.36

12 months ago

0.2.35

1 year ago

0.2.34

1 year ago

0.2.33

1 year ago

0.2.32

1 year ago

0.2.31

1 year ago

0.2.30

1 year ago

0.2.29

1 year ago

0.2.28

1 year ago

0.2.27

1 year ago

0.2.26

1 year ago

0.2.25

1 year ago

0.2.24

1 year ago

0.2.23

1 year ago

0.2.22

1 year ago

0.2.21

1 year ago

0.2.20

1 year ago

0.2.19

1 year ago

0.2.18

1 year ago

0.2.17

1 year ago

0.2.16

1 year ago

0.2.15

1 year ago

0.2.14

1 year ago

0.2.13

1 year ago

0.2.12

1 year ago

0.2.11

1 year ago

0.2.10

1 year ago

0.2.9

1 year ago

0.2.8

1 year ago

0.2.7

1 year ago

0.2.6

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.9

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago