Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

Commit 8d4d0e8

Browse files
committed
Fix broken link
1 parent eaa4fc5 commit 8d4d0e8

File tree

1 file changed

+20
-23
lines changed

1 file changed

+20
-23
lines changed

src/pages/tailwindcss-v2/index.mdx

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Tailwind CSS v2.0 is the first major update ever, including:
4747

4848
Even though Tailwind CSS v2.0 is a new major version, **we've worked really hard to minimize significant breaking changes**, especially ones that would force you to edit tons of your templates. We've renamed two classes, removed three that are no longer relevant in modern browsers, and replaced two with more powerful alternatives. Any other breaking changes that might impact you can be remedied with a couple small additions to your `tailwind.config.js` file. Upgrading shouldn't take more than about 30 minutes.
4949

50-
[Check out the upgrade guide](#) for more details and step-by-step instructions on migrating your project to Tailwind CSS v2.0.
50+
[Check out the upgrade guide](https://tailwindcss.com/docs/upgrading-to-v2) for more details and step-by-step instructions on migrating your project to Tailwind CSS v2.0.
5151

5252
If you'd like to start a brand new project with v2.0, [head over to our updated installation documentation](https://tailwindcss.com/docs/installation) to get started fast.
5353

@@ -66,9 +66,7 @@ The new color palette includes 22 colors _(compared to 10 previously)_ with 10 s
6666
We've added an extra light `50` shade for every color, so they go from 50–900 now:
6767

6868
```html
69-
<div class="bg-gray-50">
70-
I can't believe it's not white.
71-
</div>
69+
<div class="bg-gray-50">I can't believe it's not white.</div>
7270
```
7371

7472
The palette even includes 5 different shades of gray now, so you can choose "blue gray" if you want something really cool, or go all the way to "warm gray" for something with a lot more brown in it.
@@ -125,7 +123,9 @@ Boom — now just add `dark:` to the beginning of a class like `bg-black` and it
125123
Works with hover and stuff too:
126124

127125
```html
128-
<button class="bg-gray-900 hover:bg-gray-800 dark:bg-white dark:hover:bg-gray-50">
126+
<button
127+
class="bg-gray-900 hover:bg-gray-800 dark:bg-white dark:hover:bg-gray-50"
128+
>
129129
<!-- ... -->
130130
</button>
131131
```
@@ -157,9 +157,7 @@ I'm pretty sure they make an iPhone that is 1280px wide now, so it's time to ste
157157
We've added a new `2xl` breakpoint out-of-the-box that lets you target things at 1536px and above:
158158

159159
```html
160-
<h1 class="... 2xl:text-9xl">
161-
Godzilla
162-
</h1>
160+
<h1 class="... 2xl:text-9xl">Godzilla</h1>
163161
```
164162

165163
Exciting I know but also let's be serious [you've been able to add this yourself](https://tailwindcss.com/docs/responsive-design#customizing-breakpoints) for like three years. Now it's blessed though, I get it.
@@ -173,15 +171,19 @@ You know how the `outline` property ignores border radius and pretty much just a
173171
They work a lot like the `border` utilities, except they add a solid box-shadow rather than a border so they don't impact the layout:
174172

175173
```html
176-
<button class="... focus:outline-none focus:ring-2 focus:ring-blue-300 focus:ring-opacity-50">
174+
<button
175+
class="... focus:outline-none focus:ring-2 focus:ring-blue-300 focus:ring-opacity-50"
176+
>
177177
<!-- ... -->
178178
</button>
179179
```
180180

181181
You can even offset them to create a sort of halo effect with `ring-offset-{width}` utilities:
182182

183183
```html
184-
<button class="... focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-300 focus:ring-opacity-50">
184+
<button
185+
class="... focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-300 focus:ring-opacity-50"
186+
>
185187
<!-- ... -->
186188
</button>
187189
```
@@ -208,7 +210,10 @@ Alongside Tailwind CSS v2.0, we're releasing a brand new official plugin called
208210

209211
```html
210212
<!-- This will be a nice rounded checkbox with an indigo focus ring and an indigo checked state -->
211-
<input type="checkbox" class="h-4 w-4 rounded border-gray-300 focus:border-indigo-300 focus:ring-2 focus:ring-indigo-200 focus:ring-opacity-50 text-indigo-500"/>
213+
<input
214+
type="checkbox"
215+
class="h-4 w-4 rounded border-gray-300 focus:border-indigo-300 focus:ring-2 focus:ring-indigo-200 focus:ring-opacity-50 text-indigo-500"
216+
/>
212217
```
213218

214219
It's not included out of the box but you can add it to your `tailwind.config.js` file with a single line:
@@ -294,9 +299,7 @@ We've also extended the `inset` (that's top/right/bottom/left for you dinosaurs)
294299
We've extended the default typography scale with new `7xl`, `8xl`, and `9xl` values:
295300

296301
```html
297-
<h1 class="text-9xl font-bold">
298-
What is this, an Apple website?
299-
</h1>
302+
<h1 class="text-9xl font-bold">What is this, an Apple website?</h1>
300303
```
301304

302305
And we've also extended the default opacity scale with steps of 10, as well as 5 and 95 values:
@@ -399,9 +402,7 @@ Check out [the default variants reference](https://tailwindcss.com/docs/configur
399402
Until now, any time you wanted to add a transition in Tailwind you typically needed to add three classes:
400403

401404
```html
402-
<button class="... transition duration-150 ease-in-out">
403-
Count them
404-
</button>
405+
<button class="... transition duration-150 ease-in-out">Count them</button>
405406
```
406407

407408
In v2.0, we've made it possible to specify a default duration and timing function that is used automatically any time any `transitionProperty` utility is added:
@@ -427,17 +428,13 @@ module.exports = {
427428
So now you only need to write a single class if you have a common duration and timing function that you use really frequently:
428429

429430
```html
430-
<button class="... transition">
431-
Count them again
432-
</button>
431+
<button class="... transition">Count them again</button>
433432
```
434433

435434
Of course you can override this by layering on separate duration or timing function utilities:
436435

437436
```html
438-
<button class="... transition duration-300 ease-out">
439-
We're back baby
440-
</button>
437+
<button class="... transition duration-300 ease-out">We're back baby</button>
441438
```
442439

443440
Learn more about transitions in the [transition property documentation](https://tailwindcss.com/docs/transition-property).

0 commit comments

Comments
 (0)