Skip to content

Commit 96cc5dc

Browse files
authored
Merge pull request #45 from substancelab/tweak_install
Tweak install instructions
2 parents 2f9ca07 + d8fcd0e commit 96cc5dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Flowbite Components provides a comprehensive library of UI components following
2222
Add the gem to your application's Gemfile:
2323

2424
```ruby
25-
gem 'flowbite-components'
25+
gem "flowbite-components"
2626
```
2727

2828
Then execute:
@@ -31,9 +31,9 @@ Then execute:
3131
bundle install
3232
```
3333

34-
### Configuration
34+
### tailwindcss-rails
3535

36-
Make sure you have Tailwind CSS installed in your Rails application. We recommend using the [tailwindcss-rails](https://github.com/rails/tailwindcss-rails) gem:
36+
Tailwind needs to be able to look through your code in order to generate the final CSS file with the class names you actually use. To allow Tailwind to find CSS class names inside flowbite-components you need to use [tailwindcss-rails](https://github.com/rails/tailwindcss-rails) gem:
3737

3838
```ruby
3939
gem "tailwindcss-rails", ">= 4.3.0"
@@ -44,7 +44,7 @@ gem "tailwindcss-rails", ">= 4.3.0"
4444
Install Flowbite as an npm dependency:
4545

4646
```bash
47-
npm install flowbite
47+
yarn add flowbite
4848
```
4949

5050
Add Flowbite to your Tailwind CSS configuration. In your `app/assets/tailwind/application.css`:

0 commit comments

Comments
 (0)