Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradients #31

Open
new-user-name opened this issue Aug 22, 2023 · 1 comment · May be fixed by #48
Open

Gradients #31

new-user-name opened this issue Aug 22, 2023 · 1 comment · May be fixed by #48

Comments

@new-user-name
Copy link

new-user-name commented Aug 22, 2023

Hi,
bg-gradient-to-r from-purple-500 to-pink-500
gives

background-image: background-image: linear-gradient(to right, var(--tw-gradient-stops)); 
background-color: #8B5CF6; 
background-color: #EC4899;

Shouldn't it be

--tw-gradient-from: #8B5CF6;
  --tw-gradient-to: #EC4899;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  background-image: linear-gradient(to right, var(--tw-gradient-stops));

or even
background-image: linear-gradient(to right, #8B5CF6, #EC4899);

@ADTC
Copy link

ADTC commented Nov 1, 2024

I believe the output should be:

.generated {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
  --tw-gradient-from: #a855f7 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(168 85 247 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  --tw-gradient-to: #ec4899 var(--tw-gradient-to-position)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants