Coder Social home page Coder Social logo

Colors broken with UnoCSS v0.57 about anu HOT 7 OPEN

hermit99 avatar hermit99 commented on August 20, 2024
Colors broken with UnoCSS v0.57

from anu.

Comments (7)

jd-solanki avatar jd-solanki commented on August 20, 2024 1

Hi @hermit99

Sorry to say but I don't have enough bandwidth to work on this anymore. Feel free to submit a PR I'll surely merge it.

Thanks for raising the issue.

from anu.

jingyuexing avatar jingyuexing commented on August 20, 2024 1

@jd-solanki

from anu.

hermit99 avatar hermit99 commented on August 20, 2024

Hi @jd-solanki PR 218 raised for your review.
Please be aware that this will be a breaking change version once merged, due to UnoCSS's underlying changes.

from anu.

jingyuexing avatar jingyuexing commented on August 20, 2024

image
the text color:

.text-primary {
    --un-text-opacity: 1;
    color: hsl(var(--a-primary) / var(--un-text-opacity));
}

But such css cannot be parsed correctly. The following code is the code that can be parsed correctly.

.text-primary {
    --un-text-opacity: 1;
    color: hsl(var(--a-primary) , var(--un-text-opacity));
}

image

from anu.

hermit99 avatar hermit99 commented on August 20, 2024

Depending on how --a-primary is defined, it's safer to use hsla() in such cases:

.text-primary {
    --un-text-opacity: 1;
    color: hsla(var(--a-primary), var(--un-text-opacity));
}

That's what #219 was trying to fix anyway.

from anu.

SoCuul avatar SoCuul commented on August 20, 2024

@jd-solanki Would it be possible to merge this in? I'm currently having issues with the library trying to resolve this.

from anu.

SoCuul avatar SoCuul commented on August 20, 2024

I'd also like to add that this is genuinely the best component library I've ever used. The simplicity of it while looking incredible has made it genuinely amazing to develop with.

from anu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.