Skip to content

Presets not merging #1014

Answered by anubra266
lalexdotcom asked this question in Q&A
Discussion options

You must be logged in to vote

@lalexdotcom I don't fully understand your issue, but one correction in your codebase, is that the presets should use the extend keyword

presets: [
    definePreset({
      theme: {
        extend:{
          tokens: {
            colors: { 'test.light': { value: '#112233' } }
          }
        }
      }
    }),
    definePreset({
      theme: {
        extend:{
          tokens: {
            colors: { 'test.dark': { value: '#112233' } },
            sizes: { '3xs': { value: '1px' } }
          }
        }
      }
    })],

for https://github.com/lalexdotcom/panda-presets/blob/d9f6ee07803bedb3c76259e2dc90e5087d5ab5f8/panda.config-with-two-presets.ts#L19

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by segunadebayo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1011 on July 10, 2023 15:30.