Skip to content

background is not supported #10

Open
@kachkaev

Description

@kachkaev

Current Behavior

In [email protected], background: red converts to "", while background-color: red converts to "bg-[red]".

Expected Behavior

It’d be great if CSS like background: red could be mapped to a tailwind class too. I understand that the value of background shorthand can also contain image URL and its placement. It ca be hard to parse, but even supporting simple cases would be great. In practice, a lot of CSS I have seen is using background: color shorthand.

Environment


PS: Great lib @Jackardios! Thanks for working on it 🙌

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions