Skip to content

Commit

Permalink
Add file names to code blocks (#25879)
Browse files Browse the repository at this point in the history
  • Loading branch information
muescha authored Jul 21, 2020
1 parent 91ad0eb commit 69d4a29
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ npm install tailwindcss gatsby-plugin-postcss

2. Add `gatsby-plugin-postcss` to your `gatsby-config.js` file

```javascript
```javascript:title=gatsby-config.js
{
plugins: [`gatsby-plugin-postcss`]
}
```

3. Create a `postcss.config.js` file and add the following snippet to it:

```javascript
```javascript:title=postcss.config.js
module.exports = {
plugins: [require("tailwindcss"), require("autoprefixer")],
}
```

4. Create a `tailwind.config.js` file and add the following snippet to it:

```javascript
```javascript:title=tailwind.config.js
module.exports = {
purge: ["./src/**/*.js"],
theme: {
Expand All @@ -65,7 +65,7 @@ module.exports = {

5. Create a `tailwind.css` file and add the following snippet to it:

```css
```css:title=tailwind.css
@tailwind base;
@tailwind components;
@tailwind utilities;
Expand Down

0 comments on commit 69d4a29

Please sign in to comment.