ndiego / icon-block

Effortlessly add SVG icons and graphics to your website.
https://nickdiego.com/projects/icon-block/
GNU General Public License v2.0
110 stars 15 forks source link

Update color handling to support Global Styles #21

Closed ndiego closed 1 year ago

ndiego commented 1 year ago

Fixes #18

Previously, the icon color and background color were set to a theme's color palette and would not update when the palette was changed. The color hex values were hard coded. This PR keeps the hard-coded color values and adds the relevant CSS classes for the palette colors. The CSS classes override the hard-coded color values. However, if the palette color variable no longer exists, which can occur when switching themes, the hard-coded color values serve as a backup.

icon-block-styles