feat: update for Deno 2 (#2655)
Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
co-authored by
Luca Casonato
parent
b5389f69a3
commit
de8f1b0c59
@@ -21,12 +21,12 @@ providing a native way to visually differentiate the active link.
|
||||
|
||||
```css
|
||||
/* Give links pointing to the current page a green color */
|
||||
a[aria-current='page'] {
|
||||
a[aria-current="page"] {
|
||||
color: green;
|
||||
}
|
||||
|
||||
/* Color all ancestor links of the current page */
|
||||
a[aria-current='true'] {
|
||||
a[aria-current="true"] {
|
||||
color: peachpuff;
|
||||
}
|
||||
```
|
||||
|
||||
@@ -75,12 +75,12 @@ export default {
|
||||
5. Update your `deno.json` file and add the following `tailwindcss` imports. To
|
||||
make the
|
||||
[vscode Tailwind CSS extension](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss)
|
||||
work, we also need to set `"nodeModulesDir": true`. This will create a
|
||||
work, we also need to set `"nodeModulesDir": "auto"`. This will create a
|
||||
`node_modules` directory in your project folder:
|
||||
|
||||
```diff deno.json
|
||||
{
|
||||
+ "nodeModulesDir": true,
|
||||
+ "nodeModulesDir": "auto",
|
||||
"imports": {
|
||||
"$fresh/": "https://deno.land/x/fresh@1.5.2/",
|
||||
"preact": "https://esm.sh/preact@10.22.0",
|
||||
@@ -106,7 +106,7 @@ That's it! Now you can use Tailwind CSS in your project.
|
||||
> [info]: If you're a vscode user, be sure to install the
|
||||
> [official Tailwind CSS extension](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss)
|
||||
> to get full intellisense support. For it to work you also need to set
|
||||
> `"nodeModulesDir": true` in your `deno.json`.
|
||||
> `"nodeModulesDir": "auto"` in your `deno.json`.
|
||||
|
||||
> [warn]: Tailwind CSS doesn't support the grouping syntax from twind:
|
||||
> `text(lg uppercase gray-100)`. These need to be rewritten to their expanded
|
||||
|
||||
Reference in New Issue
Block a user