Skip to content

Commit 76b35f1

Browse files
Update main.css stub with more information from Tailwind's default
This should help to clarify using a pre-processor, vs plain CSS. Addresses Adam's comments in #3.
1 parent 763feec commit 76b35f1

File tree

1 file changed

+22
-8
lines changed
  • src/tailwindcss-stubs/resources/assets/css

1 file changed

+22
-8
lines changed

src/tailwindcss-stubs/resources/assets/css/main.css

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,19 @@
88
@tailwind preflight;
99

1010
/**
11-
* Here you would import any custom component classes; stuff that you'd
12-
* want loaded *before* the utilities so that the utilities can still
11+
* Here you would add any of your custom component classes; stuff that you'd
12+
* want loaded *before* the utilities so that the utilities could still
1313
* override them.
1414
*
15-
* @import "my-components/foo";
16-
* @import "my-components/bar";
15+
* Example:
16+
*
17+
* .btn { ... }
18+
* .form-input { ... }
19+
*
20+
* Or if using a preprocessor:
21+
*
22+
* @import "components/buttons";
23+
* @import "components/forms";
1724
*/
1825

1926
/**
@@ -23,9 +30,16 @@
2330
@tailwind utilities;
2431

2532
/**
26-
* Here you would add any custom utilities you need that don't come out of the box with Tailwind.
33+
* Here you would add any custom utilities you need that don't come out of the
34+
* box with Tailwind.
35+
*
36+
* Example :
37+
*
38+
* .bg-pattern-graph-paper { ... }
39+
* .skew-45 { ... }
40+
*
41+
* Or if using a preprocessor..
2742
*
28-
* .bg-hero-image {
29-
* background-image: url('/some/image/file.png');
30-
* }
43+
* @import "utilities/backgrond-patterns";
44+
* @import "utilities/skew-transforms";
3145
*/

0 commit comments

Comments
 (0)