@ygor-ui/preset
v0.0.1
Published
The preset for PandaCSS that contains the theme for Shadow Panda
Downloads
2
Readme
@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: