Skip to content

What is the difference? #3239

Discussion options

You must be logged in to vote

You can effectively remove the token(...) fns since you're using the object syntax.

const StyledTest = styled(Test, {
  base: {
    display: 'flex',
    alignItems: 'center',
    gap: '12px',
    '& span': {
      '&.line': {
-        backgroundColor: token('colors.neutral.neutral6'),
+        backgroundColor: 'neutral.neutral6',
      },
      '&.description': {
        textStyle: 'admin.typography.body.medium',
-       color: token('colors.neutral.neutral6'),
+       color: 'neutral.neutral6',
      },
    },
  },
})

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@pharma-bros-lucas
Comment options

@segunadebayo
Comment options

@pharma-bros-lucas
Comment options

@pharma-bros-lucas
Comment options

Answer selected by segunadebayo
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