README.md in simple_form-theme-0.1.2 vs README.md in simple_form-theme-0.1.3

- old
+ new

@@ -34,16 +34,34 @@ * Make sure you have installed [simple_form](https://github.com/heartcombo/simple_form) gem. * Make sure you have installed the decired css framework. ## Usage -### Install Tailwind CSS initializer +### Install Tailwind CSS files ```bash bin/rails generate simple_form:theme:tailwind install ``` -### Install Bulma CSS initializer +After running this generator, you will see the `config/initializers/simple_form_tailwindcss.rb` file. +This file adds the Tailwind CSS styles to your application. +Additionally, the `config/locales/simple_form_tailwind.en.yml` file will add the "required" mark to the required fields. +However, you need to communicate Tailwind to "watch" those files by adding the following configuration: + +```js +# tailwind.config.js + +module.exports = { + ... + content: [ + './config/initializers/simple_form_tailwindcss.rb', + './config/locales/simple_form*.yml', + ... + ], +} +``` + +### Install Bulma CSS files ```bash bin/rails generate simple_form:theme:bulma install ```