Skip to content

Commit

Permalink
minor documentation updates and demo project changes
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrassier authored and Justin Rassier committed Jul 24, 2020
1 parent 960e88d commit 1abea37
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ PostCSS is going to still kick out a generated CSS file, you can either leverage
### Include CSS normalize file
Tailwind operates and generates a built in [normalize.css](https://github.com/necolas/normalize.css/) file. This plugin only generates the utilities, you will still want to include a normalize CSS to get the expected behavior. For convenience, you can grab the `tailwind-base.css` file from this repo directly, which is just the `@tailwind base` output.

### Use your utilities!

You can now import your `TW` module and use all the utilities. Remember that these are elm-css utilities, so you must be using the `Html.Styled` module instead of the standard `Html` module.

## Developing
Coming Soon!
Expand Down
2 changes: 1 addition & 1 deletion demo/postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ const postcssElmTailwind = require("../index.js");
module.exports = {
plugins: [
require("tailwindcss")("./tailwind.config.js"),
// postcssElmTailwind(),
postcssElmTailwind(),
],
};
2 changes: 1 addition & 1 deletion demo/src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ update msg model =

buttonStyle: Css.Style
buttonStyle =
Css.batch[TW.bg_blue_500, TW.hover__bg_blue_700, TW.text_white, TW.font_bold, TW.py_2 ,TW.px_4, TW.rounded]
Css.batch[TW.bg_blue_500, TW.hover__bg_blue_700, TW.text_white, TW.font_bold, TW.py_2,TW.px_4, TW.rounded]
---- VIEW ----


Expand Down
4 changes: 2 additions & 2 deletions demo/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

@tailwind base;

/* @tailwind components;
@tailwind components;

@tailwind utilities; */
@tailwind utilities;

0 comments on commit 1abea37

Please sign in to comment.