Installation
Get Poyraz UI up and running in your project in minutes.
1. Install the package
Install Poyraz UI with your preferred package manager:
pnpm
npm
yarn
2. Peer Dependencies
Poyraz UI requires the following peer dependencies. Make sure they are installed in your project:
| Package | Version | Required |
|---|---|---|
| react | ≥ 18 | Yes |
| react-dom | ≥ 18 | Yes |
| tailwindcss | ≥ 4 | Yes |
3. Import CSS Preset
Add the Poyraz UI CSS preset to your global stylesheet. The preset includes semantic design tokens (colors, fonts), base layer styles, and automatically configures Tailwind to scan Poyraz UI components for utility classes.
You can set this up automatically with the CLI:
Or manually add the import to your CSS file:
4. Start Using Components
Import components directly from the package. You can import from the main entry point or use the tree-shakeable sub-paths:
5. Minimal Example
Here's a complete example using a Button:
6. Theme Support (Optional)
Poyraz UI v2 uses semantic CSS tokens that can be overridden for full theme customization. For dynamic theme switching, install reactive-switcher and use the built-in theme presets:
Install reactive-switcher
Configure themes
The CLI wizard (npx poyraz-ui init) can scaffold this configuration automatically.