You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+93-1
Original file line number
Diff line number
Diff line change
@@ -22,14 +22,106 @@ _Requires ST 4092 or higher._
22
22
23
23
## Usage
24
24
25
+
### CSS
26
+
25
27
This syntax is assigned to files which end with `tailwind.css` by default.
26
28
27
-
You need to assign it to ordinary `*.css` files manually.
29
+
To use it for ordinary `*.css` files manual assignment is needed.
28
30
29
31
1. Click onto the syntax name in the status bar
30
32
2. Navigate to the sub menu `Open all with current extension as...`
31
33
3. Click on `Tailwind CSS`.
32
34
35
+
To add highlighting for Tailwind @-rules to CSS in a way they are also supported within component syntaxes like [Svelte](https://packagecontrol.io/packages/Svelte) or [VueJS](https://packagecontrol.io/packages/Vue%20Syntax%20Highlight)...
36
+
37
+
1. create a custom _Packages/User/CSS (Tailwind).sublime-syntax_
> By assigning `source.css` main scope original PostCSS syntax is augmented.
54
+
>
55
+
> 1. Augmenting syntax must be loaded after CSS in order for this trick to work.
56
+
> 2. Only a single augmenting syntax may exist.
57
+
> 3. Syntaxes, which extend core CSS to add their own rules can't be augmented this way.
58
+
59
+
### PostCSS
60
+
61
+
To add highlighting for Tailwind @-rules to PostCSS in a way they are also supported within component syntaxes like [Svelte](https://packagecontrol.io/packages/Svelte) or [VueJS](https://packagecontrol.io/packages/Vue%20Syntax%20Highlight)...
62
+
63
+
1. create a custom _Packages/User/PostCSS (Tailwind).sublime-syntax_
To add highlighting for Tailwind @-rules to SCSS in a way they are also supported within component syntaxes like [Svelte](https://packagecontrol.io/packages/Svelte) or [VueJS](https://packagecontrol.io/packages/Vue%20Syntax%20Highlight)...
95
+
96
+
1. create a custom _Packages/User/SCSS (Tailwind).sublime-syntax_
0 commit comments