Skip to content

Investigate css-only usage (no tailwindcss by user) #259

@techniq

Description

@techniq

While fully removing tailwindcss is unlikely as it enables simplified integration with Svelte UX, shadcn-svelte, Skeleton, etc, I could foresee exposing a prebuilt layerchart.css export using tailwindcss cli.

Something like:

tailwindcss -i ./src/main.css -o ./dist/layerchart.css --minify

Would need to create a separate tailwind.config.cjs file with something like...

module.exports = {
  content: ['./src/lib/**/*.svelte'],
}

and main.css with

@tailwind base;
@tailwind components;
@tailwind utilities;

since this is currently defined in +layout.svelte for the docs (and includes some additional global styles for the docs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions