0.31.3 • Published 5 months ago

@utima/ui v0.31.3

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

@utima/ui

Collection of React components based on shadcn/ui and Radix Primitives with some modifications. It is essentially a growing collection of components which try to provide higher level API, while still being customizable and composable.

All components are styled using Tailwind CSS. They are theemable through custom tailwind colors + override functionality. Which allows you to add custom styles to the components without the need of wrapping and styling them in your application.

Features

  • 💪 Accessible: All components are built with accessibility in mind (thanks to the great work of Radix Primitives).
  • 🧱 Composable: Components are built to be composable and customizable.
  • 🖼️ Themeable: We use custom css classes which allow theeming, there's also capability to override the default styles entirely.
  • 🛠️ TypeScript: All components are written in TypeScript.
  • 🪓 Tree-shakable: Imports are tree-shakable in all major bundlers, so you only bundle what you use.

Documentation

Visit https://utima-solutions.github.io/ui/ storybook, which is automatically generated from the source code. It serves as a documentation and playground for all components.

Installation

First init tailwindcss in your project, follow instructions on tailwindcss.com and install the @utima/ui package and its peer dependencies.

npm install @utima/ui lucide-react tailwindcss-animate

tailwind.config.js

In your tailwind config file, add the following:

import path from 'node:path';

import tailwindcssAnimate from 'tailwindcss-animate';
import utimaUi from '@utima/ui/plugin';

export default {
  content: [
    // This makes sure tailwind can scan the utima ui component classes
    `${path.dirname(require.resolve('@utima/ui'))}/**/*.js`,
  ],
  /**
   * Init the utima ui plugin and tailwindcss-animate, with optional
   * customizations.
   */
  plugins: [tailwindcssAnimate, utimaUi({
    colors: {
      primary: {
        bg: '#cc0000',
        fg: '#ffffff',
      },
    }
  })],
};

Usage

All imports are available from @utima/ui package. Feel free to browse through public Storybook to see all available components and their props.

import { Button } from '@utima/ui';

function App() {
  return (
    <Button variant='primary' outline>Click me</Button>
  );
}
1.0.0-alpha.4

5 months ago

1.0.0-alpha.3

5 months ago

1.0.0-alpha.2

5 months ago

1.0.0-alpha.1

10 months ago

1.0.0-alpha.0

10 months ago

0.31.3

11 months ago

0.31.2

1 year ago

0.30.0

1 year ago

0.29.0

1 year ago

0.29.1

1 year ago

0.31.1

1 year ago

0.31.0

1 year ago

0.28.0

1 year ago

0.27.3

1 year ago

0.27.2

1 year ago

0.27.1

1 year ago

0.27.0

1 year ago

0.26.1

1 year ago

0.26.0

1 year ago

0.25.0

1 year ago

0.24.2

1 year ago

0.24.1

1 year ago

0.24.0

1 year ago

0.23.0

1 year ago

0.22.1

1 year ago

0.21.4

1 year ago

0.22.0

1 year ago

0.21.3

1 year ago

0.21.2

1 year ago

0.21.1

1 year ago

0.21.0

1 year ago

0.20.0

1 year ago

0.18.5

1 year ago

0.18.4

1 year ago

0.18.1

1 year ago

0.18.2

1 year ago

0.18.3

1 year ago

0.17.0

1 year ago

0.18.0

1 year ago

0.17.1

1 year ago

0.15.0

1 year ago

0.16.0

1 year ago

0.16.1

1 year ago

0.16.2

1 year ago

0.14.0

1 year ago

0.13.4

1 year ago

0.13.5

1 year ago

0.13.0

1 year ago

0.13.1

1 year ago

0.12.2

1 year ago

0.13.2

1 year ago

0.13.3

1 year ago

0.11.0

1 year ago

0.10.1

1 year ago

0.12.0

1 year ago

0.11.1

1 year ago

0.12.1

1 year ago

0.11.2

1 year ago

0.10.0

1 year ago

0.9.0

1 year ago

0.8.0

1 year ago

0.7.0

1 year ago

0.6.1

1 year ago

0.5.0

1 year ago

0.6.0

1 year ago

0.4.5

1 year ago

0.4.4

1 year ago

0.4.3

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.4.2

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.3.1

1 year ago

0.1.0

1 year ago

0.0.2

1 year ago