Skip to content

Commit

Permalink
Fix broken links to default config file (#1550)
Browse files Browse the repository at this point in the history
  • Loading branch information
colourgarden committed Mar 16, 2023
1 parent e208abb commit d8940d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/pages/blog/tailwindcss-v2/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ And we've also extended the default opacity scale with steps of 10, as well as 5
</figure>
```

Peruse the entire [default config file](https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/defaultConfig.stub.js) to see exactly what's available.
Peruse the entire [default config file](https://unpkg.com/browse/tailwindcss@^2/stubs/defaultConfig.stub.js) to see exactly what's available.

---

Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ If you'd rather scaffold a complete configuration file that includes all of Tail
npx tailwindcss init --full
```

You'll get a file that matches the [default configuration file](https://unpkg.com/browse/tailwindcss@latest/stubs/defaultConfig.stub.js) Tailwind uses internally.
You'll get a file that matches the [default configuration file](https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/config.full.js) Tailwind uses internally.

---

Expand Down
4 changes: 2 additions & 2 deletions src/pages/docs/presets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: Creating your own reusable configuration presets.
import { TipGood, TipBad } from '@/components/Tip'
import { ThemeReference } from '@/components/ThemeReference'

By default, any configuration you add in your own `tailwind.config.js` file is intelligently merged with the [default configuration](https://unpkg.com/browse/tailwindcss@^2/stubs/defaultConfig.stub.js), with your own configuration acting as a set of overrides and extensions.
By default, any configuration you add in your own `tailwind.config.js` file is intelligently merged with the [default configuration](https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/config.full.js), with your own configuration acting as a set of overrides and extensions.

The `presets` option lets you specify a _different_ configuration to use as your base, making it easy to package up a set of customizations that you'd like to reuse across projects.

Expand Down Expand Up @@ -94,7 +94,7 @@ module.exports = {
}
```

By default, presets themselves extend Tailwind's [default configuration](https://unpkg.com/browse/tailwindcss@^3/stubs/defaultConfig.stub.js) just like your own configuration would. If you'd like to create a preset that completely replaces the default configuration, include an empty `presets` key in the preset itself:
By default, presets themselves extend Tailwind's [default configuration](https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/config.full.js) just like your own configuration would. If you'd like to create a preset that completely replaces the default configuration, include an empty `presets` key in the preset itself:

```js
// Example preset
Expand Down
4 changes: 2 additions & 2 deletions src/pages/docs/theme.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,13 @@ You'll notice that using a key of `DEFAULT` in the theme configuration created t

To learn more about customizing a specific core plugin, visit the documentation for that plugin.

For a complete reference of available theme properties and their default values, [see the default theme configuration](https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/defaultConfig.stub.js).
For a complete reference of available theme properties and their default values, [see the default theme configuration](https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/config.full.js).

---

## Customizing the default theme

Out of the box, your project will automatically inherit the values from [the default theme configuration](https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/defaultConfig.stub.js). If you would like to customize the default theme, you have a few different options depending on your goals.
Out of the box, your project will automatically inherit the values from [the default theme configuration](https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/config.full.js). If you would like to customize the default theme, you have a few different options depending on your goals.

### Extending the default theme

Expand Down

1 comment on commit d8940d9

@vercel
Copy link

@vercel vercel bot commented on d8940d9 Mar 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.