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
For a deeper dive into configuration, you can check out the [Tailwind Official Documentation](https://tailwindcss.com/docs/configuration).
81
+
82
+
## Add Tailwind directives
83
+
84
+
In your `src/index.css` file, add the following Tailwind directives:
85
+
86
+
```css
87
+
@tailwind base;
88
+
@tailwind components;
89
+
@tailwind utilities;
90
+
```
91
+
92
+
These directives inform PostCSS that you're using Tailwind and establish the order of the directives. You can append custom CSS below these directives.
2. Add `@tailwind/postcss` to the `plugins` in your PostCSS configuration. If you do not have a PostCSS configuration file, create a new one called `postcss.config.mjs`.
51
+
52
+
```js title="postcss.config.mjs"
53
+
exportdefault {
54
+
plugins: {
55
+
"@tailwindcss/postcss": {},
56
+
}
57
+
}
78
58
```
79
59
80
60
For a deeper dive into configuration, you can check out the [Tailwind Official Documentation](https://tailwindcss.com/docs/configuration).
81
61
82
-
## Add Tailwind directives
62
+
## Import TailwindCSS
83
63
84
-
In your `src/index.css` file, add the following Tailwind directives:
64
+
Add an `@import` to your `src/index.css` file that imports Tailwind CSS.
85
65
86
-
```css
87
-
@tailwind base;
88
-
@tailwind components;
89
-
@tailwind utilities;
66
+
```css title="src/index.css"
67
+
@import"tailwindcss";
90
68
```
91
69
92
-
These directives inform PostCSS that you're using Tailwind and establish the order of the directives. You can append custom CSS below these directives.
Copy file name to clipboardExpand all lines: src/routes/solid-router/reference/components/a.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,8 @@
2
2
title: A
3
3
---
4
4
5
-
Solid Router exposes an `<A />` component as a wrapper around the native [`<a />`](https://mdn.io/a) tag.
5
+
Solid Router exposes the `<A />` component as a wrapper around the [native anchor tag ](https://mdn.io/a).
6
+
It relies on the routing context provided by the [`<Router>` component](/solid-router/reference/components/router) and if used outside, will triggers a runtime error..
6
7
7
8
`<A />` supports relative and base paths. `<a />` doesn't. But `<a />` gets augmented
8
9
when JS is present via a top-level listener to the DOM, so you get the
Copy file name to clipboardExpand all lines: src/routes/solid-router/reference/data-apis/query.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ For instance, both `{ name: 'Ryan', awesome: true }` and `{ awesome: true, name:
85
85
86
86
## Return value
87
87
88
-
The return value is a `CachedFunction`, a function that has the same signature as the function you passed to `cache`.
88
+
The return value is a `CachedFunction`, a function that has the same signature as the function you passed to `query`.
89
89
This cached function stores the return value using the cache key.
90
90
Under most circumstances, this temporarily prevents the passed function from running with the same arguments, even if the created function is called repeatedly.
0 commit comments