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 and KyleAMathews committed Jul 29, 2020
1 parent 13ed8bd commit 16e62ae
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 16e62ae

Please sign in to comment.