|
1 | 1 | /** |
2 | | -* This injects Tailwind's base styles, which is a combination of |
3 | | -* Normalize.css and some additional base styles. |
4 | | -* |
5 | | -* You can see the styles here: |
6 | | -* https://github.com/tailwindcss/tailwindcss/blob/master/css/preflight.css |
7 | | -*/ |
8 | | -@import "tailwindcss/preflight"; |
| 2 | + * This injects Tailwind's base styles, which is a combination of |
| 3 | + * Normalize.css and some additional base styles. |
| 4 | + * |
| 5 | + * You can see the styles here: |
| 6 | + * https://github.com/tailwindcss/tailwindcss/blob/master/css/preflight.css |
| 7 | + * |
| 8 | + * If using `postcss-import`, you should import this line from it's own file: |
| 9 | + * |
| 10 | + * @import "./tailwind-preflight.css"; |
| 11 | + * |
| 12 | + * See: https://github.com/tailwindcss/tailwindcss/issues/53#issuecomment-341413622 |
| 13 | + */ |
| 14 | +@import "./tailwind-preflight.css"; |
9 | 15 |
|
10 | 16 | /** |
11 | | -* This injects any component classes registered by plugins. |
12 | | -*/ |
13 | | -@import "tailwindcss/components"; |
| 17 | + * Here you would add any of your custom component classes; stuff that you'd |
| 18 | + * want loaded *before* the utilities so that the utilities could still |
| 19 | + * override them. |
| 20 | + * |
| 21 | + * Example: |
| 22 | + * |
| 23 | + * .btn { ... } |
| 24 | + * .form-input { ... } |
| 25 | + * |
| 26 | + * Or if using a preprocessor or `postcss-import`: |
| 27 | + * |
| 28 | + * @import "components/buttons"; |
| 29 | + * @import "components/forms"; |
| 30 | +**/ |
14 | 31 |
|
15 | | -/** |
16 | | -* Here you would add any of your custom component classes; stuff that you'd |
17 | | -* want loaded *before* the utilities so that the utilities could still |
18 | | -* override them. |
19 | | -*/ |
20 | 32 | @import "./components/*.css"; |
21 | 33 |
|
| 34 | + |
22 | 35 | /** |
23 | | -* This injects all of Tailwind's utility classes, generated based on your |
24 | | -* config file. |
25 | | -*/ |
26 | | -@import "tailwindcss/utilities"; |
| 36 | + * This injects all of Tailwind's utility classes, generated based on your |
| 37 | + * config file. |
| 38 | + * |
| 39 | + * If using `postcss-import`, you should import this line from it's own file: |
| 40 | + * |
| 41 | + * @import "./tailwind-utilities.css"; |
| 42 | + * |
| 43 | + * See: https://github.com/tailwindcss/tailwindcss/issues/53#issuecomment-341413622 |
| 44 | + */ |
| 45 | + |
| 46 | +@import "./tailwind-utilities.css"; |
27 | 47 |
|
28 | 48 | /** |
29 | | -* Here you would add any custom utilities you need that don't come out of the |
30 | | -* box with Tailwind. |
31 | | -*/ |
| 49 | + * Here you would add any custom utilities you need that don't come out of the |
| 50 | + * box with Tailwind. |
| 51 | + * |
| 52 | + * Example : |
| 53 | + * |
| 54 | + * .bg-pattern-graph-paper { ... } |
| 55 | + * .skew-45 { ... } |
| 56 | + * |
| 57 | + * Or if using a preprocessor or `postcss-import`: |
| 58 | + * |
| 59 | + * @import "utilities/background-patterns"; |
| 60 | + * @import "utilities/skew-transforms"; |
| 61 | +**/ |
32 | 62 | @import "./utilities/*.css"; |
0 commit comments