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

output css includes undefined #140

Open
lovetingyuan opened this issue Apr 5, 2024 · 1 comment
Open

output css includes undefined #140

lovetingyuan opened this issue Apr 5, 2024 · 1 comment

Comments

@lovetingyuan
Copy link

image

css input:

.dark\:border-gray-100 {
  --tw-border-opacity: 1;
  border-color: rgb(243 244 246 / var(--tw-border-opacity));
}

output:

.dark\:border-gray-100 {
  border-color: undefined;
}
.dark\:border-gray-100:border-gray-100 {
  border-color: rgb(243 244 246 / 1);
}
@joelmackenzie-lavvi
Copy link

I'm also seeing undefined when variables are set to other variables:
Input:

:root {
  --bs-emphasis-color: #000;
}

.table {
  --bs-table-color: var(--bs-emphasis-color);
  color: var(--bs-table-color);
}

.table>:not(caption) {
  --test-color: #fff;
  color: var(--bs-table-color);
  border-color: var(--test-color, #555);
}

Output:

:root {
  --bs-emphasis-color: #000;
}

.table {
  --bs-table-color: #000;    /* variable is set to the correct value */ 
  color: #000;
}

.table>:not(caption) {
  --test-color: #fff;
  color: undefined;   /* I expected this to be set to `#000`  */
  border-color: #555;    /* I expected this to be set to `#fff`  */
}

.table>:not(caption):not(caption) {     /*  Also, not sure why this was added.  */
  border-color: #fff;
}

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

No branches or pull requests

2 participants