Skip to content
Discussion options

You must be logged in to vote

it looks like an escaping issue happening because of the ., which leads to invalid CSS syntax
this might happen if some tokens are not found (and therefore won't be replaced at build-time to their CSS variable equivalent)

can you try without using token( when not necessary (e.g composite values like border), ex:

const buttonRecipe = cva({
  base: {
    border: '0',
    cursor: 'pointer',
    display: 'inline-block',
    lineHeight: '1',
    fontStyle: 'normal',
    fontWeight: '400',
  },
  variants: {
    colorType: {
      none: {
        color: 'coldBlack900',
        backgroundColor: 'coldBlackG100',
      },
      whiteRound: {
        border: '1px solid token(grayscale.coldBlack300)',

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NoelYoon96
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