satnaing / astro-paper

A minimal, accessible and SEO-friendly Astro blog theme
https://astro-paper.pages.dev/
MIT License
2.59k stars 536 forks source link

Feature request: Use icon library #378

Open rkondratowicz opened 2 months ago

rkondratowicz commented 2 months ago

I believe this would simplify the existing code by replacing inlined SVGs with components and also make it easier for user to add new icons on their own.

ie something like

<svg
  xmlns="http://www.w3.org/2000/svg"
>
  <path d="M7 11h2v2H7zm0 4h2v2H7zm4-4h2v2h-2zm0 4h2v2h-2zm4-4h2v2h-2zm0 4h2v2h-2z"></path>
  <path d="M5 22h14c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2h-2V2h-2v2H9V2H7v2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2zM19 8l.001 12H5V8h14z"></path>
</svg>

could be just

<Calendar />

One option is Lucide: https://lucide.dev/

satnaing commented 2 months ago

Yep. I also think of it. There are 2 options I like:

  1. tabler icons
  2. lucide
eerison commented 1 month ago

Tabler icons +1