Skip to content

Linear gradient with optionvalue from theme colors #699

Answered by dannytce
yudyananda asked this question in Help
Discussion options

You must be logged in to vote

Hello :) I believe you can use any theme token, the only thing you need to do is to use scale prefixing

const Box = styled('div', {
  gradient: `19deg, $colors$indigo100 0%, $colors$indigo100 100%`,
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yudyananda
Comment options

Answer selected by yudyananda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants