Giter Club home page Giter Club logo

Comments (5)

anubra266 avatar anubra266 commented on May 24, 2024 1

Oh...I see the issue now @tcdw

from panda.

astahmer avatar astahmer commented on May 24, 2024 1

hey, this is because this ordering of conditions generates invalid CSS (Panda mimics how CSS works, where selectors can't be used inside pseudo elements)
https://panda-css.com/docs/concepts/conditional-styles#before-and-after:~:text=in%20double%20quotes.-,Mixing%20with%20Conditions%3A%20When%20using%20condition%20and%20pseudo%20elements%2C%20prefer%20to,is%20because%20it%20generated%20an%20invalid%20CSS%20structure%20that%20looks%20like%3A,-%26%3A%3Abackdrop%20%7B

if you move the gradientFrom outside the _after it will work as expected
https://play.panda-css.com/HHpnRBRNH7/rkMH9bHuur

from panda.

tcdw avatar tcdw commented on May 24, 2024 1

After modification like this, it behaves exactly what I would want. Thanks!

from panda.

anubra266 avatar anubra266 commented on May 24, 2024

@tcdw works well in your reproduction

CleanShot.2024-03-17.at.20.19.18.mp4

from panda.

tcdw avatar tcdw commented on May 24, 2024

Well, I am not sure if I explained clearly before, but here is what I want:

Light Mode Dark Mode
image image

In dark mode, I want the value of gradientFrom is shown as yellow.500, not blue.500.

from panda.

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.