Replies: 3 comments 1 reply
-
currently the solution is to just use javascript and pick/omit whatever you need, as described here we thought of maybe making it easier with a syntax similar to the one you proposed but we're mostly waiting to see if there's enough demand before adding more features, maybe you could make it a feature request ? https://panda-css.canny.io/feature-request |
Beta Was this translation helpful? Give feedback.
-
I thought this was a feature request :) Anyway, I've created a feature request that links here: |
Beta Was this translation helpful? Give feedback.
-
@astahmer, as stated here, the feature request is released. However, returning to my original question, I can't figure out how to remove all the colors that I have the following configuration and it generates both const myPreset = definePreset({
theme: {
extend: {
semanticTokens: {
colors: semanticColors
},
tokens: {
colors: colors
}
}
}
})
export default defineConfig({
// ...
presets: ['@pandacss/preset-panda', myPreset],
hooks: {
'config:resolved': ({ config, utils }) => {
return utils.omit(config, ['theme.colors'])
},
},
}) I found cschroeter/park-ui#227 but the solution is pretty simple because Park UI uses the base preset and basically duplicates a lot from the Could you please provide an example of how to keep custom colors only? I think the current solution of duplicating other tokens is inconvenient. For now, preset managing is kinda unclear. Thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I have a simple scenario:
preset-panda
.Here's my configuration:
With this configuration, I can't use
spacing
tokens:Problem Statement/Justification
preset-panda
. It only extendspreset-base
, which lacksspacing
tokens.preset-panda
.Proposed Solution or API
extend
:Alternatives
preset-panda
.Beta Was this translation helpful? Give feedback.
All reactions