Skip to content

Commit

Permalink
Add installation instructions to get Tailwind working
Browse files Browse the repository at this point in the history
  • Loading branch information
joelzwarrington committed Jul 9, 2024
1 parent 8cb6cb0 commit 8a8d349
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@ gem "atomic_view"
bundle install
```

In your `tailwind.config.js`, add:

```js
const execSync = require("child_process").execSync;
const atomicViewPath =
execSync("bundle show atomic_view", { encoding: "utf-8" }).trim() +
"/lib/atomic_view/components/**/*.{erb,rb}";

module.exports = {
content: [
// other paths...
atomicViewPath,
],
};
```

## Getting Started

There isn't anything to get started on yet!
Expand Down

0 comments on commit 8a8d349

Please sign in to comment.