-
I am trying to use strict tokens, but I cannot figure out how to define allowed values for border width. I tried adding: sizes: {
'1px': {
value: '1px',
},
}, but it still does not allow This is how I try to reference it: const TableBox = styled('div', {
base: {
borderColor: 'border.1',
borderRadius: '8px',
borderWidth: '1px',
overflow: 'hidden',
},
}); Documentation has this example, but I don't understand what's the relationship to just defining const theme = {
tokens: {
borders: {
// string value
subtle: { value: '1px solid red' },
// string value with reference to color token
danger: { value: '1px solid {colors.red.400}' },
// composite value
accent: { value: { width: '1px', color: 'red', style: 'solid' } }
}
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
anubra266
Jan 7, 2024
Replies: 1 comment 1 reply
-
@adaboese there's a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
adaboese
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@adaboese there's a
borderWidths
token https://play.panda-css.com/GJtrwOSzqw?tab=configIt works but the types were not in panda yet. Here's a PR to add it to the Panda types.