Skip to content

Instantly share code, notes, and snippets.

@konstantinmuenster
Created August 22, 2022 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konstantinmuenster/4d030905a88245b91dab4af11a4a9b53 to your computer and use it in GitHub Desktop.
Save konstantinmuenster/4d030905a88245b91dab4af11a4a9b53 to your computer and use it in GitHub Desktop.
const Button = styled('button', {
// base styles
variants: {
color: {
background: { backgroundColor: '$background' },
surface50: { backgroundColor: '$surface50' },
surface100: { backgroundColor: '$surface100' },
surface250: { backgroundColor: '$surface250' },
surface500: { backgroundColor: '$surface500' },
secondary50: { backgroundColor: '$secondary50' },
secondary100: { backgroundColor: '$secondary100' },
secondary250: { backgroundColor: '$secondary250' },
secondary500: { backgroundColor: '$secondary500' },
...
},
},
});
() => <Button color="violet">Button</Button>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment