You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: 'Tailwind CSS v3.3: Extended color palette, ESM support, logical properties, and more',
10
-
description: `It's been months in the making but I'm excited to finally release our next website template — Protocol, a beautiful starter kit for building amazing API reference websites.`,
11
-
date: '2023-03-27T15:00:00.000Z',
9
+
title: 'Tailwind CSS v3.3: Extended color palette, ESM/TS support, logical properties, and more',
10
+
description: `Tailwind CSS v3.3 is here — bringing a bunch of new features people have been asking for forever, and a bunch of new stuff you didn't even know you wanted.`,
11
+
date: '2023-03-28T14:30:00.000Z',
12
12
authors: [adamwathan],
13
13
image: card,
14
14
}
@@ -28,6 +28,7 @@ Tailwind CSS v3.3 is here — bringing a bunch of new features people have been
28
28
-[Extended color palette for darker darks:](#extended-color-palette-for-darker-darks) New darker 950 shades for every color.
29
29
-[ESM and TypeScript support:](#esm-and-typescript-support) Write your config file using ESM or TypeScript.
30
30
-[Simplified RTL support with logical properties:](#simplified-rtl-support-with-logical-properties) Build layouts that adapt to different directions.
31
+
-[Fine-tune gradient color stop positions:](#fine-tune-gradient-color-stop-positions) Specify exactly where you want each color stop to go.
31
32
-[Line-clamp out of the box:](#line-clamp-out-of-the-box) Truncate multi-line text without a plugin.
32
33
-[New line-height modifier:](#new-line-height-shorthand-for-font-size-utilities) Set your font-size and line-height with one class.
33
34
-[CSS variables without the var()](#css-variables-without-the-var): New shorthand syntax for arbitrary values.
@@ -81,7 +82,7 @@ Also pour one out for the 50 shades of gray jokes we used to be able to make.
81
82
Now you can configure Tailwind CSS in ESM, or even in TypeScript:
@@ -278,9 +279,67 @@ Here's a full list of all of the new utilities we've added and what they map to:
278
279
279
280
These should save you a ton of code if you regularly build sites that need to support both LTR and RTL languages, and you can always combine these with the `ltr` and `rtl` variants when you need more control.
280
281
282
+
---
283
+
284
+
<h2id="fine-tune-gradient-color-stop-positions">Fine-tune gradient color stop positions</h2>
285
+
286
+
We've added new utilities like `from-5%`, `via-35%`, and `to-85%` that let you adjust the actual position of each color stop in your gradients:
We've included every value from 0% to 100% in steps of 5 out of the box, but you can of course use arbitrary values to get exactly the effect you want:
For more details, check out the [gradient color stops documentation](/docs/gradient-color-stops#specifying-stop-positions).
281
339
282
340
---
283
341
342
+
284
343
<h2id="line-clamp-out-of-the-box">Line-clamp out of the box</h2>
285
344
286
345
We released our [official line-clamp plugin](https://tailwindcss.com/blog/multi-line-truncation-with-tailwindcss-line-clamp) just over two years ago and even though it uses a bunch of weird deprecated `-webkit-*` stuff, it works in every browser and it's going to work forever, so we decided to just bake it into the framework itself.
@@ -338,7 +397,7 @@ One thing we've found over years and years of designing beautiful stuff with Tai
338
397
339
398
So inspired by our color opacity modifier syntax, we decided to make it possible to save a few characters by setting them together with a single utility:
@@ -387,7 +446,7 @@ When using custom fonts, you'll often want to configure things like `font-featur
387
446
388
447
We've made it easy to do this for `font-feature-settings` for a while, but now you can do the same thing with `font-variation-settings` by providing a value for it in the sort-of options object you can plop after the font list in your config file:
0 commit comments