# shadcn-primitives

Latest version **0.0.4** (published 2023-06-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install shadcn-primitives
pnpm add shadcn-primitives
yarn add shadcn-primitives
bun add shadcn-primitives
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2023-06-18 |
| First published | 2023-06-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 37 |
| Unpacked size | 318 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ozgur GUL |
| Maintainers | lugrugzo |

## Links

- npm: https://www.npmjs.com/package/shadcn-primitives
- Repository: https://github.com/ozgurrgul/shadcn-primitives
- Homepage: https://github.com/ozgurrgul/shadcn-primitives#readme
- Issues: https://github.com/ozgurrgul/shadcn-primitives/issues
- npm.io page: https://npm.io/package/shadcn-primitives

## Dependencies (37)

- [clsx](https://npm.io/package/clsx.md) ^1.2.1
- [cmdk](https://npm.io/package/cmdk.md) ^0.2.0
- [react](https://npm.io/package/react.md) >=18.2.0
- [date-fns](https://npm.io/package/date-fns.md) ^2.30.0
- [react-dom](https://npm.io/package/react-dom.md) >=18.2.0
- [lucide-react](https://npm.io/package/lucide-react.md) ^0.244.0
- [tailwind-merge](https://npm.io/package/tailwind-merge.md) ^1.13.1
- [react-day-picker](https://npm.io/package/react-day-picker.md) ^8.7.1
- [tailwindcss-animate](https://npm.io/package/tailwindcss-animate.md) ^1.0.6
- [@radix-ui/react-slot](https://npm.io/package/@radix-ui/react-slot.md) ^1.0.2
- [@radix-ui/react-tabs](https://npm.io/package/@radix-ui/react-tabs.md) ^1.0.4
- [@radix-ui/react-label](https://npm.io/package/@radix-ui/react-label.md) ^2.0.2
- [@radix-ui/react-toast](https://npm.io/package/@radix-ui/react-toast.md) ^1.1.4
- [@radix-ui/react-avatar](https://npm.io/package/@radix-ui/react-avatar.md) ^1.0.3
- [@radix-ui/react-dialog](https://npm.io/package/@radix-ui/react-dialog.md) ^1.0.4
- [@radix-ui/react-select](https://npm.io/package/@radix-ui/react-select.md) ^1.2.2
- [@radix-ui/react-slider](https://npm.io/package/@radix-ui/react-slider.md) ^1.1.2
- [@radix-ui/react-switch](https://npm.io/package/@radix-ui/react-switch.md) ^1.0.3
- [@radix-ui/react-toggle](https://npm.io/package/@radix-ui/react-toggle.md) ^1.0.3
- [@radix-ui/react-menubar](https://npm.io/package/@radix-ui/react-menubar.md) ^1.0.3
- [@radix-ui/react-popover](https://npm.io/package/@radix-ui/react-popover.md) ^1.0.6
- [@radix-ui/react-tooltip](https://npm.io/package/@radix-ui/react-tooltip.md) ^1.0.6
- [@radix-ui/react-checkbox](https://npm.io/package/@radix-ui/react-checkbox.md) ^1.0.4
- [@radix-ui/react-progress](https://npm.io/package/@radix-ui/react-progress.md) ^1.0.3
- [class-variance-authority](https://npm.io/package/class-variance-authority.md) ^0.6.0
- [react-simple-star-rating](https://npm.io/package/react-simple-star-rating.md) ^5.1.7
- [@radix-ui/react-accordion](https://npm.io/package/@radix-ui/react-accordion.md) ^1.1.2
- [@radix-ui/react-separator](https://npm.io/package/@radix-ui/react-separator.md) ^1.0.3
- [@radix-ui/react-hover-card](https://npm.io/package/@radix-ui/react-hover-card.md) ^1.0.6
- [@radix-ui/react-collapsible](https://npm.io/package/@radix-ui/react-collapsible.md) ^1.0.3
- [@radix-ui/react-radio-group](https://npm.io/package/@radix-ui/react-radio-group.md) ^1.1.3
- [@radix-ui/react-scroll-area](https://npm.io/package/@radix-ui/react-scroll-area.md) ^1.0.4
- [@radix-ui/react-alert-dialog](https://npm.io/package/@radix-ui/react-alert-dialog.md) ^1.0.4
- [@radix-ui/react-aspect-ratio](https://npm.io/package/@radix-ui/react-aspect-ratio.md) ^1.0.3
- [@radix-ui/react-context-menu](https://npm.io/package/@radix-ui/react-context-menu.md) ^2.1.4
- [@radix-ui/react-dropdown-menu](https://npm.io/package/@radix-ui/react-dropdown-menu.md) ^2.0.5
- [@radix-ui/react-navigation-menu](https://npm.io/package/@radix-ui/react-navigation-menu.md) ^1.1.3

## Recent versions

- 0.0.4 (latest) — 2023-06-18
- 0.0.3 — 2023-06-18
- 0.0.2 — 2023-06-18
- 0.0.1 — 2023-06-18

## README

# Shadcn primitives


## Installation

Install the package via following command.

```
npm i shadcn-primitives
```

or 

```
yarn add shadcn-primitives
```

Load CSS from node_modules as well:

```
import "shadcn-primitives/dist/style.css";
```

## Example usage

``` tsx
import { Button } from "shadcn-primitives";
import "shadcn-primitives/dist/style.css";

export const Test = () => (
  <div>
    <Button>Button</Button>
  </div>
);

```

## Font style

Alternatively, you can set the `font-family` to `Inter` and have a slick font. Put this in your main css file:

``` css
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-sans: 'Inter', sans-serif;
}

```

## Theme customize

You can override style with following CSS variables defined by shadcn:

``` css
:root {
    --background: 0 0% 100%;
    --foreground: 222.2 47.4% 11.2%;
 
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
 
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 47.4% 11.2%;
 
    --card: 0 0% 100%;
    --card-foreground: 222.2 47.4% 11.2%;
 
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
 
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
 
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
 
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
 
    --destructive: 0 100% 50%;
    --destructive-foreground: 210 40% 98%;
 
    --ring: 215 20.2% 65.1%;
 
    --radius: 0.5rem;
  }
 
  .dark {
    --background: 224 71% 4%;
    --foreground: 213 31% 91%;
 
    --muted: 223 47% 11%;
    --muted-foreground: 215.4 16.3% 56.9%;
 
    --popover: 224 71% 4%;
    --popover-foreground: 215 20.2% 65.1%;
 
    --card: 224 71% 4%;
    --card-foreground: 213 31% 91%;
 
    --border: 216 34% 17%;
    --input: 216 34% 17%;
 
    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 1.2%;
 
    --secondary: 222.2 47.4% 11.2%;
    --secondary-foreground: 210 40% 98%;
 
    --accent: 216 34% 17%;
    --accent-foreground: 210 40% 98%;
 
    --destructive: 0 63% 31%;
    --destructive-foreground: 210 40% 98%;
 
    --ring: 216 34% 17%;
 
    --radius: 0.5rem;
  }
  ```

  Have fun!

- Shadcn: https://ui.shadcn.com/
- Tailwind: https://tailwindcss.com/

---
_Source: https://npm.io/package/shadcn-primitives · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
