The CSS gradient displays a smooth transition using two or more specified colors. So when you upgrade to v3.SCROLL TO CONTINUE WITH CONTENT Background Gradients Using CSS Dolor et ad sint voluptate sunt elit mollit officia ad enim sit consectetur enim. Est ut eiusmod consequat irure quis deserunt ex. Est in quis eu dolore occaecat excepteur fugiat dolore nisi aliqua fugiat enim ut cillum. Ut ut sunt laborum ex occaecat eu tempor labore enim adipisicing minim ad. Boost your conversion rate Nulla dolor velit adipisicing duis excepteur esse in duis nostrud occaecat mollit incididunt deserunt sunt. 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: 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. Using new utilities like ms-3 and me-3, you can style the start and end of an element so that your styles automatically adapt in RTL, instead of writing code like ltr:ml-3 rtl:mr-3:īorder-start-start-radius border-end-start-radiusīorder-start-end-radius border-end-end-radius We’ve made it possible to style multi-directional websites using our LTR and RTL variants for a while, but now you can use logical properties to do most of this styling more easily and automatically. Simplified RTL support with logical properties We’re handling this with the wonderful jiti library under the hood, and using Sucrase to transpile the code with the best possible performance while keeping the installation footprint small. It’s a bit easier to understand why this has to happen when you think of the TypeScript case, because of course Tailwind is distributed as JavaScript, and it can’t magically import an uncompiled TypeScript file. To generate a TypeScript config file, use the -ts flag: npx tailwindcss init -tsĪ lot of people assume this is easy because they’re writing their own code in ESM already (even if it’s being transpiled by their build tool) but it’s actually pretty tricky - we literally have to transpile the config file for you on the fly. You can also generate an ESM config file explicitly by using the -esm flag: npx tailwindcss init -esm When you run npx tailwindcss init, we’ll detect if your project is an ES Module and automatically generate your config file with the right syntax. In the grays they act as basically a tinted black, which is great for ultra dark UIs: Well wish granted - in Tailwind CSS v3.3 we’ve added a new 950 shade for every single color. One of the most common feature requests we’ve had over the years is to add darker shades for every color - usually because someone is building a dark UI and just wants more options down in that dark end of the spectrum. Upgrading your projects is as easy as installing the latest version of tailwindcss from npm: npm install -D can also try out all of the new features on Tailwind Play, right in your browser. That covers the most exciting stuff, but check out the release notes for an exhaustive list of every single little improvement we’ve made since the last release. New caption-side utilities: Title your tables with style.New hyphens utilities: For fine-tuning hyphenation behavior.New list-style-image utilities: So you can use horrible clip art for bullet points.Configurable font-variation-settings: Baked directly into your font-* utilities.CSS variables without the var(): New shorthand syntax for arbitrary values.New line-height modifier: Set your font-size and line-height with one class.Line-clamp out of the box: Truncate multi-line text without a plugin.Fine-tune gradient color stop positions: Specify exactly where you want each color stop to go.Simplified RTL support with logical properties: Build layouts that adapt to different directions. ESM and TypeScript support: Write your config file using ESM or TypeScript.
0 Comments
Leave a Reply. |