Skip to content

Use sprinkles in a variant #538

Answered by nayaabkhan
nayaabkhan asked this question in Q&A
Discussion options

You must be logged in to vote

I removed the usage of styleVariants and I think it works as expected. Wondering if this is non-idiomatic in any way?

import { atoms } from '@themes/atoms.css'

export const fontVariants = {
  heading: atoms({
    fontSize: 'base',
    fontWeight: 'bold'
  }),
  subheading: atoms({
    fontSize: 'small',
    color: 'text.muted',
  }),
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nayaabkhan
Comment options

@mattcompiles
Comment options

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