@ygor-ui/preset
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@ygor-ui/preset

Shadow Panda is created based on shadcn/ui, tailored specifically for developers utilizing Panda CSS as an alternative to Tailwind CSS.

This package is a preset for Panda CSS that allows you to use the same components as shadcn/ui, but with Panda CSS.

Documentation

Visit our documentation: https://shadow-panda.dev/

Install

Install the preset and a utility package (used by most components) by running:

npm i -D @ygor-ui/preset
npm i @ygor-ui/style-context

Add the preset to your panda.config.ts

import { defineConfig } from '@pandacss/dev'

export default defineConfig({
  // Required: Add the preset to your config.
  presets: ['@ygor-ui/preset'],

  // Optional: Enable CSS reset
  preflight: true,

  // Use React
  jsxFramework: 'react',

  // Optional: Emit artifacts to `node_modules` as a package.
  // The copy-paste component examples use `@ygor-ui/styled-system` as the import path of the generated files.
  // If you choose not to use this option, you should rewrite your component imports as needed.
  // @see https://panda-css.com/docs/references/config#emitpackage
  emitPackage: true,
  outdir: '@ygor-ui/styled-system',

  // Other configurations and overrides...
})

Compile Panda CSS, copy components and use it!

Acknowledgement

A huge thanks to the creators of shadcn/ui for providing an excellent set of components and documentation. Most of the components and documentation were taken from shadcn/ui.

Also, a huge thanks to:

Readme

Keywords

none

Package Sidebar

Install

npm i @ygor-ui/preset

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

287 kB

Total Files

7

Last publish

Collaborators

  • yluiz