Skip to content

I couldn't get the example on the documentation site to load the panda-preset without tweaking the format. #66

Answered by cschroeter
wontondon asked this question in Q&A
Discussion options

You must be logged in to vote

@wontondon

Thanks for bringing this to my attention. From v0.20.0 onwards please use the snippet below for a default Park UI preset (neutral: accent and gray)

import { defineConfig } from '@pandacss/dev'

export default defineConfig({
  presets: ['@pandacss/preset-base', '@park-ui/panda-preset'],
  // ...
})

and to customize like shown in the example below:

import { defineConfig } from '@pandacss/dev'
import { createPreset } from '@park-ui/panda-preset'

export default defineConfig({
  presets: [
    '@pandacss/preset-base',
    createPreset({
      accentColor: 'amber',
      grayColor: 'sand',
      borderRadius: 'none',
    }),
  ],
  // ...
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ellynerdstone
Comment options

Answer selected by wontondon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants