twbs/icons

Feature request: CSS variables for icons

Open

#1760 aperta il 11 lug 2023

Vedi su GitHub
 (1 commento) (1 reazione) (0 assegnatari)JavaScript (1049 fork)batch import
docsenhancementhelp wanted

Metriche repository

Star
 (6955 star)
Metriche merge PR
 (Merge medio 2m) (1 PR mergiata in 30 g)

Descrizione

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).

Guida contributor