Skip to content

Commit e8b91d3

Browse files
committed
Small docs tweaks
1 parent b1b9656 commit e8b91d3

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

source/docs/container.blade.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,8 @@ If you'd like to center your containers by default or include default horizontal
7676
To center containers by default, set the `center` option to `true` in the `theme.container` section of your config file:
7777

7878
```js
79-
// ...
80-
79+
// tailwind.config.js
8180
module.exports = {
82-
// ...
83-
8481
theme: {
8582
container: {
8683
center: true,
@@ -94,15 +91,12 @@ module.exports = {
9491
To add horizontal padding by default, specify the amount of padding you'd like using the `padding` option in the `theme.container` section of your config file:
9592

9693
```js
97-
// ...
98-
94+
// tailwind.config.js
9995
module.exports = {
100-
// ...
101-
10296
theme: {
10397
container: {
10498
padding: '2rem',
105-
}
99+
},
106100
},
107101
}
108102
```

source/docs/plugins.blade.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,6 @@ module.exports = {
498498
variants: ['responsive', 'hover', 'focus'],
499499
plugins: [
500500
function ({ config, variants }) {
501-
502501
config('variants.customPlugin')
503502
// => undefined
504503

@@ -522,9 +521,9 @@ For example, here's a plugin *(extracted to its own module)* for creating simple
522521
// ./plugins/gradients.js
523522
const _ = require('lodash')
524523

525-
module.exports = function({ addUtilities, e, config }) {
524+
module.exports = function({ addUtilities, e, config, variants }) {
526525
const gradients = config('theme.gradients', {})
527-
const variants = config('variants.gradients', [])
526+
const variants = variants('gradients', [])
528527

529528
const utilities = _.map(gradients, ([start, end], name) => ({
530529
[`.bg-gradient-${e(name)}`]: {

0 commit comments

Comments
 (0)