feat: Add outline support for new arch#6
Merged
mgcrea merged 3 commits intomgcrea:mainfrom Jan 25, 2026
Merged
Conversation
Contributor
Author
|
Amazing library! Thanks for making it @mgcrea ! Here is a PR that adds support for outline features on New Arch. I opened an issue for that here Best, Evan |
- Add outlines entry to sidebar navigation - Fix formatting regression in borders.md example - Remove duplicate outline documentation from borders.md - Add link to dedicated outlines page
Owner
|
Thanks! Merged! |
Contributor
Author
|
I think the outline feature should use the customColors/scheme/theme data to be dynamic. I can try to test and submit a PR when I have a chance! |
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.
Summary
This PR adds support for outline utilities (
outlineWidth,outlineStyle,outlineOffset,outlineColor) for React Native 0.73+ (New Architecture).Changes
Core Implementation
src/parser/outline.ts- Dedicated parser for outline utilitiesoutline- Shorthand (width: 1, style: solid)outline-{width}- Width utilities (0, 1, 2, 4, 8, + arbitrary)outline-{style}- Style utilities (solid, dashed, dotted)outline-offset-{value}- Offset utilities (scale + arbitrary)outline-none- Reset utilitysrc/parser/colors.ts- Added support foroutline-{color}classessrc/parser/index.ts- RegisteredparseOutlinein parser chainsrc/index.ts- ExportedparseOutlinefor advanced usageTests
src/parser/outline.test.tsAll 9 tests pass (tests width, style, offset, arbitrary values, and edge cases)
Documentation
docs/src/content/docs/reference/outlines.md- Dedicated documentation with compile-time examplesdocs/src/content/docs/reference/borders.md- Removed outline section, added linkCompile-Time Transformation Example