feat: update icon size options and stroke width#26
Merged
Conversation
YounixM
commented
Feb 23, 2026
Member
- Update icon size options and stroke width handling in SVGR template
- Add docs
…er readability in documentation
There was a problem hiding this comment.
Pull request overview
This PR updates the icon sizing system to include more granular presets and adds automatic stroke width scaling. The changes shift to smaller base sizes (xs is now 10px instead of 16px) and introduce a new xxxl preset at 24px. Each size preset now has an associated stroke width to maintain visual consistency across sizes.
Changes:
- Added
xxxlsize preset and updated all size presets to smaller pixel values (xs: 16px→10px, sm: 18px→12px, md: 20px→14px, lg: 22px→16px, xl: 24px→18px, xxl: 28px→20px, xxxl: 24px new) - Introduced automatic stroke width mapping based on size presets with ~12:1 ratio
- Added comprehensive documentation page explaining fixed size presets and custom sizing
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| svgr-template.js | Added xxxl to IconSize type, updated ICON_SIZE_MAP values, added STROKE_WIDTH_MAP, and implemented automatic stroke width resolution based on size preset |
| stories/Icons.stories.tsx | Updated IconSizePreset type and dropdown options to reflect new size values and xxxl option; improved documentation reference |
| stories/Docs.mdx | New documentation page with installation instructions, usage examples, preset reference table, and custom sizing guidance |
| .storybook/main.ts | Added Docs.mdx as first story for sidebar ordering (with unintentional quote style reformatting) |
| .gitignore | Added storybook-static build output directory |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
… when size is null; format Storybook config for consistency
SagarRajput-7
previously approved these changes
Feb 23, 2026
…n-config module; update index template and SVGR template to utilize new configurations
ahrefabhi
approved these changes
Feb 23, 2026
AshwinBhatkal
approved these changes
Feb 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.