I couldn't get the example on the documentation site to load the panda-preset without tweaking the format. #66
-
I'm not sure if this is a change in panda, or if I'm doing something silly, but I couldn't get the park-ui recipes to generate when using the example from the documentation.
I had to tweak it to this format in order for it to load the preset.
Any one else experience this? using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for bringing this to my attention. From 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',
}),
],
// ...
}) |
Beta Was this translation helpful? Give feedback.
@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)and to customize like shown in the example below: