twbs/icons

Feature request: CSS variables for icons

Open

#1760 opened on Jul 11, 2023

View on GitHub
 (1 comment) (1 reaction) (0 assignees)JavaScript (6,955 stars) (1,049 forks)batch import
docsenhancementhelp wanted

Description

Using Bootstrap Icons from HTML means one can use nice readable names, whereas using them in CSS means authors have to deal with cryptic Unicode codes like \F4CA. It would be lovely if the CSS file also set CSS variables for all icons, so they can be also used with nice readable names like var(--bi-pencil-square).

Contributor guide