-
Notifications
You must be signed in to change notification settings - Fork 12
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
v0.9.1 generates wrong css? #58
Comments
I think it's a bug, the output should contain all used theme configuration |
Ah, Now you can send a PR to avoid |
I can think of 3 possibilities.
@media (min-width: 0px){
.xs\:text-xl{font-size:1.25rem;line-height:1.75rem;}
} instead of @media (min-width: var(--un-preset-theme-breakpoints-xs)){
.xs\:text-xl{font-size:1.25rem;line-height:1.75rem;}
} However, this is unexpected if I want different breakpoints for different themes. Another possible way is custom media query which is not launched for now and can not be used here.
Which one do you prefer? If I am wrong, please correct me. Thanks! 🙏 |
I find a new resolution in my case. https://github.com/ModyQyW/unocss-preset-element-plus/blob/main/src/index.ts#L7-L38 If someone is interested in it, please carry on. Thanks! 🙏 |
Looks like good, you can go ahead |
https://unocss.dev/play/?html=DwZwDghgdgBAxgGwiEBeARADxALgC4CmmeAtJgugHyEh7AD040lQA&config=JYWwDg9gTgLgBAbwFBzgEwKYDNgDsMDCEuOA5gDQpxhQYDOGMAqrhJQL5xZQQhwDkAV1YBjOnX5JQkWNVoMYAFQAWGEBi48%2BQ0eIC0Neoz0xV6yUgwAPGfExYAhoIA2d7HkLEyACmSpDCnQAXHAA2lT%2B8owsEN4AlJSokUZKZhi%2BEUmmahghfkkFzsCkyjB5mQWoAEa0DgDWkHgwwYhwVi38AAxgVvzkcHQgIfwA7ABsABw9fXAgaMMAnAsATNP9zqTDAIzLnd29-VbO2yv7-HDsFUnsiZWoaA5QdeV3BTUY9Y24zXltHWf9QbDcZTA6zeYCJarMEbba7AFtY4CLanaYXK6oS53LHXOJUAC6HDxQA&css=Q&options=N4IgLgTghgdgzgMwPYQLYgFwKgGzgUwF8g
It seems that v0.9.1 hasn't generated the css var
--un-preset-theme-breakpoints-xs
but used it.Am I doing wrong or is this a bug?
The text was updated successfully, but these errors were encountered: