Skip to content

[bug] Tailwind version issue? #180

@larryh-23andme

Description

@larryh-23andme

Have you seen anyone hit a snag when importing RangeSlider 4 into a Svelte 5 app that uses Tailwind 3? That's what I'm working with and I get this error:
RangeSlider.svelte.vite-preprocess.css:6:3: '@layer base' is used but no matching '@tailwind base' directive is present.
My project has TW base imported and also has a custom base layer. Seems like a TW version compat issue, or perhaps your use of base is not aligning? Would a custom layer name work better here?
Thoughts? I can't upgrade the app to TW 4 at the moment to see if that fixes it on my side. But it would be nice if RangeSlider 4 could slide right in. ;-)
Thanks for building this component, hope to use it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibilitydocumentationImprovements or additions to documentationinvestigatingNot quite sure if it's valid, yetquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions