Skip to content
Discussion options

You must be logged in to vote

Yup! Check out the docs.

const properties = defineProperties({
  conditions: {
    // ...
  },
  properties: {
    textStyle: {
      xs: {
        fontSize: '0.75rem',
        lineHeight: '1rem',
      },
      sm: {
        fontSize: '1rem',
        lineHeight: '1.25rem',
      },
      md: {
        fontSize: '1.25rem',
        lineHeight: '1.5rem',
      },
      // ...
    },
  },
})

Usage:

export const labelText = sprinkles({
  textStyle: 'sm',
})

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mattstobbs
Comment options

@rothsandro
Comment options

@mantagen
Comment options

Answer selected by mattstobbs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants