Skip to content
This repository was archived by the owner on Feb 14, 2026. It is now read-only.
This repository was archived by the owner on Feb 14, 2026. It is now read-only.

jaspr_lucide_icons improvements #2

@schultek

Description

@schultek

Hi @fonkamloic . I wanted to reach out to discuss some possible improvements to the icon package. I use lucide icons myself and really like the idea of a icons package for Jaspr. So far I'm not using this package though because it has some disadvantages.

Currently it uses the script from cdn and creates icons at runtime. This doesn't work when using ssg or ssr though.
I think it would be better to use the icon svgs directly. The lucide packages for e.g. react generate separate components for each icon that directly render the icons svg paths. That has two big advantages:

  1. It can be used during ssr with no additional script required.
  2. It can be tree-shaken, and not-used icons are removed from both server and client bundles.

If you look at the code here: https://github.com/lucide-icons/lucide/tree/main/packages/lucide-react it should be possible to use a similar approach for Jaspr to generate all icons from their original sources.

I'd be happy to help and submit a pr for this. I just don't want to be responsible for maintaining it as there is already so much I need to maintain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions