Skip to content

How to Leverage the Default CSS Variables in Tailwind #13624

Answered by wongjn
ethan-web-dev asked this question in Help
Discussion options

You must be logged in to vote

It seems you are getting mixed up with Tailwind versions. The code that you quoted (in utilities.ts, not index.ts):

let gradientStopProperties = () => {
return atRoot([
property('--tw-gradient-from', '#0000', '<color>'),
property('--tw-gradient-to', '#0000', '<color>'),
property('--tw-gradient-from', 'transparent', '<color>'),
property('--tw-gradient-via', 'transparent', '<color>'),
property('--tw-gradient-to', 'transparent', '<color>'),
property('--tw-gradient-stops'),
property('--tw-gradient-via-stops'),
property('--tw-gradient-from-position', '0%', '<…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ethan-web-dev
Comment options

Answer selected by ethan-web-dev
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