twbs/icons

Feature request: CSS variables for icons

Open

#1,760 opened on Jul 11, 2023

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

Repository metrics

Stars
 (6,955 stars)
PR merge metrics
 (Avg merge 1d 5h) (2 merged PRs in 30d)

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