The JIT release #514
ben-rogerson
started this conversation in
Releases
Replies: 1 comment 1 reply
-
Hi, how can I disable twin.macro/src/config/globalStyles.js Lines 77 to 86 in ac7b194 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This release brings the same special features we all love from the Tailwind JIT release! (v2.2.0-2.2.7) 🎉🌮
As this is the same feature set as Tailwind, you can read some more information about each feature in the Tailwind release notes.
Larger features
A bunch of new variants
peer-*:
variants for styling sibling elements (PR)first-letter:
andfirst-line:
pseudo-elements (PR)selection:
for styling text selections (PR)marker:
for styling list markers (PR)autofill:
,in-range:
,out-of-range:
,first-letter:
,first-line:
,only:
,empty:
,selection:
,marker:
,rtl:
andltr:
(PR)Check the variant config for a full list →
Shorthand color opacity syntax (PR)
Add a slash opacity value to set the opacity on any color classes:
This slash value comes from your opacity setting in your tailwind config.
For custom slash opacity values, use square brackets:
Extended arbitrary value support (PR)
The "dash square bracket" syntax adds custom values on just about every dynamic class (like
bg-red-500
, notblock
):This feature almost replace twin's "short css" feature but short css is still great for more obscure css as you can specify custom properties too:
Per-side border color utilities (PR)
You can now specify border color and border width on a specific border direction:
Smaller features
before:
andafter:
variants now automatically addcontent: ''
(PR)No more requirement for the
content
class every time we use pseudo classesNow there's no need to add
transform
orfilter
to make your actual transform or filter classes work (Possible breaking change - check Adams PR notes)transform-cpu
classThis class uses
translateX
andtranslateY
instead oftranslate3d
which is added bytransform-gpu
Classes for controlling how an element's background is positioned relative to borders, padding, and content - Docs
Specify the color of the carat in textareas/inputs/contenteditables (eg:
tw`caret-red-500`
)Support
If you’re kicking ass with twin - especially if you’re in a team - then please consider becoming a sponsor.
It will really help out with the continued development of twin - cheers! 🍻
This discussion was created from the release The JIT release.
Beta Was this translation helpful? Give feedback.
All reactions