-
Notifications
You must be signed in to change notification settings - Fork 824
feat(tailwind): update to tailwind v4 #2425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
gabrielmfern
wants to merge
164
commits into
canary
Choose a base branch
from
chore/try-using-tailwind-v4-at-runtime
base: canary
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
164 commits
Select commit
Hold shift + click to select a range
1c09f5f
make mapReactTree support promise function components
gabrielmfern f76feb3
new standalone generateRootForClasses with tailwindcss v4's compile …
gabrielmfern c1910c3
update types
gabrielmfern c9b22f8
fix module resoltuion
gabrielmfern 3162df5
update tailwind
gabrielmfern 3d31304
use tsup
gabrielmfern 8418fe9
attempt at fixing inline style resolution
gabrielmfern 2df5e95
don't treat @layer at rules as media queries
gabrielmfern 6839d74
filter for 'media' at ruels
gabrielmfern 68d07e3
some initial work that runs at least
gabrielmfern c92e4e6
Merge branch 'main' into chore/try-using-tailwind-v4-at-runtime
gabrielmfern 3079d5a
lint
gabrielmfern 73439df
temporary change to build script for testing purposes
gabrielmfern 6ea656f
refactored css variable resolution for simplicity and removing uneces…
gabrielmfern e0a6f6e
update generateRootForClasses tests
gabrielmfern 8df61d6
WIP sanitize declarations dealing with oklch
gabrielmfern 06ea3e3
get oklch to rgba conversion
gabrielmfern 4932b04
remove safelist test, since there's no safelist anymore
gabrielmfern cbbd4f4
omit content from tailwind config
gabrielmfern 32b8fdd
use a snapshot for first test
gabrielmfern e1a7164
fix layer at rules being ignored when inlining
gabrielmfern 21a40cc
fix config not being loaded when generating styles
gabrielmfern 90a4c6d
disable preflight
gabrielmfern aa161f3
update sanitize non inlinable classes to work with the new media quer…
gabrielmfern e4c7475
update style inlining with new checks for a rule being inlinable
gabrielmfern a8c0311
update plugin usage in tests to v4's
gabrielmfern b6c33a3
update snap
gabrielmfern 1411495
separate block-inline shorthand properties into respective left-right…
gabrielmfern 591b333
update snaps, use pretty on all comparisons
gabrielmfern ac8568e
add support for resolving to CSS Varible fallbacks
gabrielmfern 568712d
use css-tree for isRuleInlinable
gabrielmfern 0b898eb
use css-tree for makeInlineStylesFor
gabrielmfern a91da3c
use css-tree for removeRuelDuplicatesFromRoot
gabrielmfern b777038
use css-tree on the Tailwind component itself
gabrielmfern 5a8761a
use css-tree and use toFixed in hex to rgb conversion
gabrielmfern 21f02f1
fix regex for oklch, update tests
gabrielmfern cf23a98
update sanitizeNonInlinableClasses to use csstree
gabrielmfern 31b74f7
use css-tree in resolve-all-css-variables tests
gabrielmfern 82c724c
wip: resolving css variables with css tree 🤩
gabrielmfern c7c69e3
resolving css variables working with deeply nested fallbacks 👍
gabrielmfern bc21f52
use css-tree for generateRootForClasses ☄️
gabrielmfern 946ff82
remove minify-css because csstree already does it
gabrielmfern 291f6c8
update test
gabrielmfern ec867c5
update snap for parents populate
gabrielmfern bb00ef4
update all test snapshots, add todo item
gabrielmfern 6bbfa3c
use in-house clone that ignores the `parent` property to avoid infint…
gabrielmfern 011ad9f
fix types
gabrielmfern 3a209d8
avoid sanitizing escaping \
gabrielmfern 18e4c8c
WIP: update all test results
gabrielmfern dee61f7
increase coverage for sanitizeNonInlinableClasses tests
gabrielmfern 66adff3
lint
gabrielmfern 9fd2a5f
fix nested css rules being removed
gabrielmfern 137d2c9
fix isRuleInlinable not properly separating :focus-like utilities
gabrielmfern aa612c8
update some of the snapshots
gabrielmfern c565b07
remove test that doesn't make sense anymore
gabrielmfern 6634a40
decode class selectors when sanitizing them
gabrielmfern 2b12d24
resolve simple calc expressions, like what tailwind v4 does for spacing
gabrielmfern 15ebe8f
update all snapshots
gabrielmfern 0b849ca
remove debugging log
gabrielmfern 2854c9a
update test snapshots
gabrielmfern 912be48
lint
gabrielmfern b9e4a4b
update remaining failing test snapshots, everything passes!
gabrielmfern 0cbea0c
save parentList and parentListItem to nodes
gabrielmfern 74cdbdd
remove empty parents when resolving variable uses and removing defini…
gabrielmfern 95b80bd
fix clone's infinite loops
gabrielmfern 84b0ef9
update snap
gabrielmfern 5f66231
update snapshots
gabrielmfern bfcd9ac
lint
gabrielmfern 2242771
update build process and dependencies placement
gabrielmfern 113365b
Merge branch 'main' into chore/try-using-tailwind-v4-at-runtime
gabrielmfern a571e33
Merge branch 'main' into chore/try-using-tailwind-v4-at-runtime
gabrielmfern 7f23250
add import.meta to global on preview server running environment
gabrielmfern 19cd2f3
Merge branch 'main' into chore/try-using-tailwind-v4-at-runtime
gabrielmfern 39f86a6
undo workflow change
gabrielmfern 9d3674e
remove tests to fix csstree issue
gabrielmfern 6bc4552
use nodeNext as module resolution instead of bundler
gabrielmfern 4459b4b
remove dangling tsup.config
gabrielmfern 2a37b87
Merge branch 'canary' into chore/try-using-tailwind-v4-at-runtime
gabrielmfern 412cdf7
bundle css tree and hoist JSON imports throuhg a rolldown plugin
gabrielmfern 49814c0
only use a single compiler from tailwindcss, and also reuse the same …
gabrielmfern d18142c
remove console.logs
gabrielmfern b9d55d5
fix non inline rules not being returned
gabrielmfern 32c3af0
don't use async in mapReactTree anymore
gabrielmfern d7de09c
use the new setupTailwind, and new functions for a speed up
gabrielmfern e5f5730
lint
gabrielmfern 060c2ca
remove now unused clone
gabrielmfern 0511f1e
use css tree's parsing to sanitize declarations for performance
gabrielmfern 12a65fb
remove hooks
gabrielmfern 115b85b
update to using the new compat option that's cached
gabrielmfern 90a1b74
don't use arrow functions for easier profiling
gabrielmfern dff22d3
lint
gabrielmfern bf8793c
update test snapshot
gabrielmfern 8d72cb9
update snap
gabrielmfern 6c38251
remove stale test
gabrielmfern 6521fc4
first iteration of trying to only parse CSS once
gabrielmfern 00497b1
Merge branch 'canary' into chore/try-using-tailwind-v4-at-runtime
gabrielmfern 99b7ba8
add tailwindTreatAsElement for our components, and don't inline style…
gabrielmfern 2a8af98
remove now useless comment
gabrielmfern 6336899
do compatibility fixes in the Tailwind component directly
gabrielmfern 7e2546d
don't treat all components as elements
gabrielmfern 6f12b11
update tests
gabrielmfern 03ebb9a
lint
gabrielmfern 2cc5949
fix integration tests?
gabrielmfern 4c32519
update snapshots
gabrielmfern 11b3aeb
improve tests naming for sanitizeDeclarations
gabrielmfern 105936e
fix function naming not being camel case
gabrielmfern 8bda851
add support for percentage values for rgb channels
gabrielmfern 9169023
add support for multiple values defined in margin-inline and margin-b…
gabrielmfern cfe50e3
do the same for padding-block and padding-inline, dedupe code
gabrielmfern 521539a
support deg dimension for hue in oklch
gabrielmfern 66b8c65
fix broken css tests for calc expressions
gabrielmfern f9d3024
fix test naming and remove outdated property
gabrielmfern 43caa9d
use push, pop to avoid O(n) operations
gabrielmfern c62fc66
split classes in a more robust manner
gabrielmfern ab670a9
add sanitization to convert border-radius:calc(Infinity*1px) to 9999p…
gabrielmfern 9603452
improve grammar
gabrielmfern ae5686c
fix alpha 0 on oklch being ignored
gabrielmfern 75d3a29
improved test description
gabrielmfern b394cc5
improve test description
gabrielmfern b20abae
update snaps
gabrielmfern b94cfa7
lint
gabrielmfern 3fbb824
fix border-radius: calc(Infinity * 1px) missing some cases because of…
gabrielmfern 246754f
lint
gabrielmfern fd52f8b
update snapshots
gabrielmfern 9a011b3
Merge branch 'canary' into chore/try-using-tailwind-v4-at-runtime
gabrielmfern aae5f85
Merge branch 'canary' into chore/try-using-tailwind-v4-at-runtime
gabrielmfern 92ce8c8
initial version of shared tailwindcss instance for all component calls
gabrielmfern 62ba18f
update the tests to be more stable with new API
gabrielmfern ab52bab
fix types
gabrielmfern b515178
fix variable resolution failing because of @layer (properties)
gabrielmfern 2ffc51b
update snapshots
gabrielmfern 67ddfb3
revert shared Tailwind component API
gabrielmfern 2ce87dd
use a custom hook to handle suspending the tailwind setup promise
gabrielmfern 4429bfc
lint
gabrielmfern c087837
Merge branch 'canary' into chore/try-using-tailwind-v4-at-runtime
gabrielmfern e169325
add proper treatment for wildcard selectors, without just matching as…
gabrielmfern 5cf9e63
update ensuring that division of equal units resolves into just a number
gabrielmfern 81edfcd
return 0 as evaluation when dividing by zero
gabrielmfern f662e24
improve error message
gabrielmfern 9930898
lint
gabrielmfern d233d57
Merge branch 'canary' into chore/try-using-tailwind-v4-at-runtime
gabrielmfern f9f0eed
move css-tree to dev dependencies
gabrielmfern 43b5fa6
update lock
gabrielmfern 81a54d7
use tailwindv4.0 preview version
gabrielmfern fbe5f3f
missing update to tailwind dependency
gabrielmfern b3eb751
update lock
gabrielmfern 8a807f0
fix tailwind config type being empty
gabrielmfern c51c147
bump to next testing version
gabrielmfern 8e7596f
Revert "fix tailwind config type being empty"
gabrielmfern 1041543
bump other components that were changed
gabrielmfern 3acab21
update components dependencies
gabrielmfern bc778e2
Merge branch 'canary' into chore/try-using-tailwind-v4-at-runtime
gabrielmfern a1c860a
disable polyfills becuase they overcomplicate things
gabrielmfern 01760cc
handle conversion of color-mix for transparency to just rgb(r,g,b,alpha)
gabrielmfern 451958c
update snaps
gabrielmfern f18c1c2
add failing test
gabrielmfern 41d36b9
add support for percentage in calc expressions
gabrielmfern 5895a6c
don't keep any decimal portion to oklch converted numbers
gabrielmfern d95f0ed
lint
gabrielmfern 9c62259
use extend for pixelBasedPreset
gabrielmfern 6e3e58f
Merge branch 'canary' into chore/try-using-tailwind-v4-at-runtime
gabrielmfern 0545536
update snaps
gabrielmfern c79502b
bump versions with fixes
gabrielmfern 438d703
update snaps
gabrielmfern File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,7 @@ exports[`getEmailComponent() > with a demo email template 1`] = ` | |
<meta name="x-apple-disable-message-reformatting" /> | ||
<!--$--> | ||
</head> | ||
<body | ||
style='margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;background-color:rgb(255,255,255);padding-left:8px;padding-right:8px;font-family:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"'> | ||
<body style="background-color:rgb(255,255,255)"> | ||
<table | ||
border="0" | ||
width="100%" | ||
|
@@ -24,7 +23,7 @@ exports[`getEmailComponent() > with a demo email template 1`] = ` | |
<tbody> | ||
<tr> | ||
<td | ||
style='margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;background-color:rgb(255,255,255);padding-left:8px;padding-right:8px;font-family:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"'> | ||
style='margin-right:auto;margin-left:auto;margin-bottom:auto;margin-top:auto;background-color:rgb(255,255,255);padding-right:8px;padding-left:8px;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'> | ||
<div | ||
style="display:none;overflow:hidden;line-height:1px;opacity:0;max-height:0;max-width:0" | ||
data-skip-in-text="true"> | ||
|
@@ -40,7 +39,7 @@ exports[`getEmailComponent() > with a demo email template 1`] = ` | |
cellpadding="0" | ||
cellspacing="0" | ||
role="presentation" | ||
style="margin-left:auto;margin-right:auto;margin-top:40px;margin-bottom:40px;max-width:465px;border-radius:0.25rem;border-width:1px;border-color:rgb(234,234,234);border-style:solid;padding:20px"> | ||
style="max-width:465px;margin-right:auto;margin-left:auto;margin-bottom:40px;margin-top:40px;border-radius:0.25rem;border-style:solid;border-width:1px;border-color:rgb(234,234,234);padding:20px"> | ||
<tbody> | ||
<tr style="width:100%"> | ||
<td> | ||
|
@@ -59,26 +58,26 @@ exports[`getEmailComponent() > with a demo email template 1`] = ` | |
alt="Vercel Logo" | ||
height="37" | ||
src="/static/vercel-logo.png" | ||
style="margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;display:block;outline:none;border:none;text-decoration:none" | ||
style="display:block;outline:none;border:none;text-decoration:none;margin-right:auto;margin-left:auto;margin-bottom:0;margin-top:0" | ||
width="40" /> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<h1 | ||
style="margin-left:0;margin-right:0;margin-top:30px;margin-bottom:30px;padding:0;text-align:center;font-weight:400;font-size:24px;color:rgb(0,0,0)"> | ||
style="margin-right:0;margin-left:0;margin-bottom:30px;margin-top:30px;padding:0;text-align:center;font-weight:400;font-size:24px;color:rgb(0,0,0)"> | ||
Join <strong>Enigma</strong> on <strong>Vercel</strong> | ||
</h1> | ||
<p | ||
style="font-size:14px;color:rgb(0,0,0);line-height:24px;margin-top:16px;margin-bottom:16px"> | ||
style="font-size:14px;line-height:24px;color:rgb(0,0,0);margin-top:16px;margin-bottom:16px"> | ||
Hello | ||
<!-- -->alanturing<!-- -->, | ||
</p> | ||
<p | ||
style="font-size:14px;color:rgb(0,0,0);line-height:24px;margin-top:16px;margin-bottom:16px"> | ||
style="font-size:14px;line-height:24px;color:rgb(0,0,0);margin-top:16px;margin-bottom:16px"> | ||
<strong>Alan</strong> (<a | ||
href="mailto:[email protected]" | ||
style="color:rgb(37,99,235);text-decoration-line:none" | ||
style="color:rgb(21,93,252);text-decoration-line:none" | ||
target="_blank" | ||
>[email protected]</a | ||
>) has invited you to the <strong>Enigma</strong> team on<!-- --> | ||
|
@@ -110,7 +109,7 @@ exports[`getEmailComponent() > with a demo email template 1`] = ` | |
alt="alanturing's profile picture" | ||
height="64" | ||
src="/static/vercel-user.png" | ||
style="border-radius:9999px;display:block;outline:none;border:none;text-decoration:none" | ||
style="display:block;outline:none;border:none;text-decoration:none;border-radius:9999px" | ||
width="64" /> | ||
</td> | ||
<td | ||
|
@@ -130,7 +129,7 @@ exports[`getEmailComponent() > with a demo email template 1`] = ` | |
alt="Enigma team logo" | ||
height="64" | ||
src="/static/vercel-team.png" | ||
style="border-radius:9999px;display:block;outline:none;border:none;text-decoration:none" | ||
style="display:block;outline:none;border:none;text-decoration:none;border-radius:9999px" | ||
width="64" /> | ||
</td> | ||
</tr> | ||
|
@@ -153,7 +152,7 @@ exports[`getEmailComponent() > with a demo email template 1`] = ` | |
<td> | ||
<a | ||
href="https://vercel.com" | ||
style="border-radius:0.25rem;background-color:rgb(0,0,0);padding-left:20px;padding-right:20px;padding-top:12px;padding-bottom:12px;text-align:center;font-weight:600;font-size:12px;color:rgb(255,255,255);text-decoration-line:none;line-height:100%;text-decoration:none;display:inline-block;max-width:100%;mso-padding-alt:0px" | ||
style="line-height:100%;text-decoration:none;display:inline-block;max-width:100%;mso-padding-alt:0px;border-radius:0.25rem;background-color:rgb(0,0,0);padding-right:20px;padding-left:20px;padding-bottom:12px;padding-top:12px;text-align:center;font-weight:600;font-size:12px;color:rgb(255,255,255);text-decoration-line:none" | ||
target="_blank" | ||
><span | ||
><!--[if mso]><i style="mso-font-width:500%;mso-text-raise:18" hidden>  </i><![endif]--></span | ||
|
@@ -169,19 +168,19 @@ exports[`getEmailComponent() > with a demo email template 1`] = ` | |
</tbody> | ||
</table> | ||
<p | ||
style="font-size:14px;color:rgb(0,0,0);line-height:24px;margin-top:16px;margin-bottom:16px"> | ||
style="font-size:14px;line-height:24px;color:rgb(0,0,0);margin-top:16px;margin-bottom:16px"> | ||
or copy and paste this URL into your browser:<!-- --> | ||
<a | ||
href="https://vercel.com" | ||
style="color:rgb(37,99,235);text-decoration-line:none" | ||
style="color:rgb(21,93,252);text-decoration-line:none" | ||
target="_blank" | ||
>https://vercel.com</a | ||
> | ||
</p> | ||
<hr | ||
style="margin-left:0;margin-right:0;margin-top:26px;margin-bottom:26px;width:100%;border-width:1px;border-color:rgb(234,234,234);border-style:solid;border:none;border-top:1px solid #eaeaea" /> | ||
style="width:100%;border:none;border-top:1px solid #eaeaea;margin-right:0;margin-left:0;margin-bottom:26px;margin-top:26px;border-style:solid;border-width:1px;border-color:rgb(234,234,234)" /> | ||
<p | ||
style="color:rgb(102,102,102);font-size:12px;line-height:24px;margin-top:16px;margin-bottom:16px"> | ||
style="font-size:12px;line-height:24px;color:rgb(102,102,102);margin-top:16px;margin-bottom:16px"> | ||
This invitation was intended for<!-- --> | ||
<span style="color:rgb(0,0,0)">alanturing</span>. This | ||
invite was sent from | ||
|
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It informs the Tailwind component that the component should have its classes inlined, and shouldn't have to be called to run on what it returns, I explain it a bit more in depth in the Performance section of the PR. We have this for the components that do style manipulation like Text, Button and the Body