@cerberus-design/panda-preset
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

Panda Preset

This is the official Panda-CSS preset for the Cerberus design system.

Installation

pnpm add -D @cerberus-design/panda-preset

Usage

import { defineConfig } from '@pandacss/dev'
import pandaPreset from '@pandacss/preset-panda'
import { cerberusPreset, cerberusConfig } from '@cerberus-design/panda-preset'

export default defineConfig({
  ...cerberusConfig,

  include: ['./src/**/*.{ts,tsx,js,jsx}'],
  exclude: [],

  presets: [pandaPreset, cerberusPreset],
})

Features

NextJS Font Features

If you use NextJS, we recommend the font and settings mentioned below. Unfortunately, NextJS enforces a rule of Font loader values must be explicitly written literals. which means you cannot use a variable to define the font settings or else we would also provide that. 😭

const poppins = Poppins({
  display: 'swap',
  subsets: ['latin'],
  weight: ['400', '600', '700'],
})

Copyright (c) 2024 Digital University, All Rights Reserved

Package Sidebar

Install

npm i @cerberus-design/panda-preset

Weekly Downloads

623

Version

0.3.2

License

ISC

Unpacked Size

379 kB

Total Files

309

Last publish

Collaborators

  • pcleveland
  • leighton-tidwell
  • bahull
  • caseybaggz-og