3.0.4 • Published 28 days ago

@shuriken-ui/tailwind v3.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
28 days ago

Shuriken UI - Tailwind CSS

Shuriken UI is a free and open-source Tailwind CSS UI Kit. It is a collection of components and templates that you can use to build your next Tailwind CSS project.

This package contains the Tailwind CSS preset, components, and shared utils like custom colors used in Shuriken UI.

Installation

pnpm install -D @shuriken-ui/tailwind

Usage

The simplest way to register Shuriken UI is to use withShurikenUI helper function.

// tailwind.config.ts
import { withShurikenUI } from '@shuriken-ui/tailwind'

export default withShurikenUI({
  // your tailwind config
  content: [],
})

You can also direcly import the preset and use it in your config.

// tailwind.config.ts
import type { Config } from 'tailwindcss'
import preset from '@shuriken-ui/tailwind/preset'

export default {
  // your tailwind config, with the preset
  content: [],
  presets: [preset],
} satisfies Config

Also, you can import only the components and utils you needs.

// tailwind.config.ts
import type { Config } from 'tailwindcss'
import { fontFamily } from 'tailwindcss/defaultTheme'
import colors from 'tailwindcss/colors'

import { input, button } from '@shuriken-ui/tailwind/plugins'

export default {
  // your tailwind config, with only the components you need
  plugins: [input, button],
  theme: {
    fontFamily: {
      sans: fontFamily.sans,
      heading: fontFamily.sans,
      alt: fontFamily.sans,
      mono: fontFamily.mono,
    },
    extend: {
      colors: {
        primary: colors.violet,
        'primary-invert': colors.white,
        muted: colors.slate,
        info: colors.sky,
        success: colors.teal,
        warning: colors.amber,
        danger: colors.rose,
      },
    },
  },
} satisfies Config

Customization

Shuriken UI is fully customizable. You can override components by using the theme option.

export default withShurikenUI({
  theme: {
    extend: {
      nui: {
        // your customizations
      },
    },
  },
})

note: Documentation is coming soon!

3.0.4

28 days ago

3.0.3

30 days ago

3.0.2

1 month ago

3.0.1

1 month ago

3.0.0

2 months ago

3.0.0-next.6

2 months ago

3.0.0-next.2

3 months ago

3.0.0-next.1

3 months ago

3.0.0-next.4

3 months ago

3.0.0-next.3

3 months ago

3.0.0-next.5

3 months ago

3.0.0-next.0

3 months ago

2.0.3

3 months ago

2.0.2

3 months ago

2.0.1

4 months ago

2.0.0

4 months ago

2.0.0-next.12

4 months ago

2.0.0-next.9

5 months ago

2.0.0-next.10

5 months ago

2.0.0-next.11

5 months ago

2.0.0-next.8

5 months ago

2.0.0-next.6

5 months ago

2.0.0-next.7

5 months ago

2.0.0-next.4

5 months ago

2.0.0-next.5

5 months ago

2.0.0-next.3

5 months ago

2.0.0-next.2

5 months ago

2.0.0-next.1

5 months ago

2.0.0-next.0

5 months ago

1.2.0

8 months ago

1.0.2

9 months ago

1.1.0

8 months ago

1.0.1

9 months ago

1.0.0

9 months ago

1.5.3

5 months ago

1.2.6

7 months ago

1.5.2

5 months ago

1.2.5

7 months ago

1.5.1

6 months ago

1.2.4

7 months ago

1.5.0

6 months ago

1.2.3

8 months ago

1.4.0

7 months ago

1.2.2

8 months ago

1.2.1

8 months ago

1.0.0-beta.2

9 months ago

1.0.0-beta.3

9 months ago

1.0.0-beta.4

9 months ago

1.0.0-beta.5

9 months ago

1.0.0-beta.0

9 months ago

1.0.0-beta.1

9 months ago

0.1.1

10 months ago

1.0.0-beta.6

9 months ago

1.0.0-beta.7

9 months ago

1.0.0-beta.8

9 months ago

0.1.0

11 months ago

0.0.5

11 months ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago