[GH-ISSUE #1204] provide alternative css to include only one set of the flags (1x1 or 4x3) #560

Closed
opened 2026-03-03 14:39:22 +03:00 by kerem · 1 comment
Owner

Originally created by @thisconnect on GitHub (Dec 31, 2023).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/1204

Currently by importing import "flag-icons"; into a project all 540 icons are included.

As often projects only use one set of icons it would be nice to import only the set that is used.

This could be done by providing additional CSS files that only include those sets.

that way one could do: import "flag-icons/css/flag-icons-4x3.css" (or similar), for those that only need 4x3 icons.

Originally created by @thisconnect on GitHub (Dec 31, 2023). Original GitHub issue: https://github.com/lipis/flag-icons/issues/1204 Currently by importing `import "flag-icons";` into a project all 540 icons are included. As often projects only use one set of icons it would be nice to import only the set that is used. This could be done by providing additional CSS files that only include those sets. that way one could do: `import "flag-icons/css/flag-icons-4x3.css"` (or similar), for those that only need 4x3 icons.
kerem 2026-03-03 14:39:22 +03:00
Author
Owner

@lipis commented on GitHub (Jan 17, 2025):

I would leave that to the end user..

<!-- gh-comment-id:2598567932 --> @lipis commented on GitHub (Jan 17, 2025): I would leave that to the end user..
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flag-icons#560
No description provided.