npm.io
0.1.263 • Published 4d ago

@cleen/ui-core

Licence
MIT
Version
0.1.263
Deps
5
Size
255 kB
Vulns
0
Weekly
0

@cleen/ui-core

Shared foundation for the Cleen UI library — Tailwind CSS configuration, custom hooks, utilities, and theming primitives used by @cleen/ui and @cleen/ui-pro.

Installation

npm install @cleen/ui-core

Tailwind Setup

Extend your Tailwind config with the Cleen preset and import the CSS:

// tailwind.config.js
import cleenPreset from '@cleen/ui-core/tailwind-preset';

export default {
  presets: [cleenPreset],
};
/* your entry CSS */
@import '@cleen/ui-core/tailwind-entry.css';

Or import the pre-built stylesheet directly:

import '@cleen/ui-core/styles.css';

Note: All Tailwind classes use the cleen- prefix. Components must be wrapped in a .cleen element for styles to apply.

Peer Dependencies

  • react ^18.3.1
  • react-dom ^18.3.1