Giter Club home page Giter Club logo

Comments (7)

jd-solanki avatar jd-solanki commented on May 24, 2024 1

When this started we had object syntax and merging both objects did the job. However, with array value, we have to change how merging is performed.

ATM, I am working on --a-spacing feature. Once I am done with that I will resolve this issue.

from anu.

jd-solanki avatar jd-solanki commented on May 24, 2024 1

It's resolved now, you can try latest updates via edge releases: #114

Please give it a try and let me know πŸ˜‡

from anu.

jd-solanki avatar jd-solanki commented on May 24, 2024

Hi πŸ‘‹πŸ»

Docs needs update, if you look at the source file btn is not a-btn.

Try below and let me know:

shortcutOverrides: {
  'a-btn': 'px-[1.75em] py-[0.375em] rounded-[0.375em] gap-x-[0.375em] whitespace-nowrap',
},

from anu.

brojor avatar brojor commented on May 24, 2024

I used an example from the documentation just for the purpose of the issue. I actually need to override a-base-input-root which I have made sure is contained in the source file. It worked fine until version 0.7.2. In later ones it raises this error until I comment out shortcutOverrides.

from anu.

jd-solanki avatar jd-solanki commented on May 24, 2024

I guess this is because we are no longer using object syntax for shortcuts. It's now array.

Need to dig shortcut options deeper in UnoCSS.

from anu.

brojor avatar brojor commented on May 24, 2024

You mean like this ?

shortcutOverrides: [
  {
    "a-btn": "px-[1.75em] py-[0.375em] rounded-[0.375em] gap-x-[0.375em] whitespace-nowrap",
  },
]

This gives me the same error.
Even this syntax doesn't work:

shortcutOverrides: [
  [/^a-btn$/, () => 'px-[1.75em] py-[0.375em] rounded-[0.375em] gap-x-[0.375em] whitespace-nowrap'],
]

from anu.

husayt avatar husayt commented on May 24, 2024

@jd-solanki shall we keep this open until resolved?

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.