Skip to content

Commit

Permalink
fix: add postcss.config.js and tailwind.config.js example in the readme
Browse files Browse the repository at this point in the history
updated postcss.config.js and tailwind.config.js for current usage
  • Loading branch information
TriStarGod authored and Romakita committed Jun 6, 2023
1 parent 60c02f6 commit 882ad17
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/tailwind-formio/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ module.exports = {
}
```

Or:

```diff
export default {
plugins: {
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
},
}
```

### Configure tailwind

Generate the initial `tailwind.config.js` with the following command:
Expand Down Expand Up @@ -214,6 +226,11 @@ module.exports = {
2: "2 2 0%",
3: "3 3 0%"
}
},
outline: {
none: ["2px solid transparent", "2px"],
white: ["2px dotted white", "2px"],
black: ["2px dotted black", "2px"]
}
},
variants: {
Expand Down
6 changes: 6 additions & 0 deletions packages/tailwind/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,12 @@ Object.assign(exports, {
none: "none",
2: "2 2 0%",
3: "3 3 0%"
},

outline: {
none: ["2px solid transparent", "2px"],
white: ["2px dotted white", "2px"],
black: ["2px dotted black", "2px"]
}
},

Expand Down

0 comments on commit 882ad17

Please sign in to comment.