Skip to content

Commit 4ed2dda

Browse files
author
David Heinemeier Hansson
committed
Add plugins for forms, aspect-ratio, and typography
1 parent c103eef commit 4ed2dda

File tree

5 files changed

+633
-0
lines changed

5 files changed

+633
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
/test/dummy/log/*.log
99
/test/dummy/storage/
1010
/test/dummy/tmp/
11+
/node_modules
1112
.byebug_history
1213
*.gem

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Tailwind CSS for Rails makes it easy to use this CSS framework with the asset pi
66

77
This gem just gives access to the standard Tailwind CSS framework. If you need to customize Tailwind, you will need to install it the traditional way using [Webpacker](https://github.com/rails/webpacker) instead. This gem is purely intended for those who wish to use Tailwind CSS with the asset pipeline.
88

9+
The version of Tailwind included in this gem has been configured for dark mode, forms, aspect-ratio, and typography.
910

1011
## Installation
1112

package.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"dependencies": {
3+
"@tailwindcss/aspect-ratio": "^0.2.0",
4+
"@tailwindcss/forms": "^0.2.1",
5+
"@tailwindcss/typography": "^0.4.0",
6+
"autoprefixer": "^10.2.1",
7+
"tailwindcss": "^2.0.2"
8+
}
9+
}

tailwind.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
module.exports = {
22
darkMode: 'media',
3+
plugins: [
4+
require('@tailwindcss/forms'),
5+
require('@tailwindcss/aspect-ratio'),
6+
require('@tailwindcss/typography'),
7+
]
38
}

0 commit comments

Comments
 (0)