Skip to content

Commit 5ccfe24

Browse files
committed
Resolves #5
1 parent 7bd021f commit 5ccfe24

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ Streamdown powers the [AI Elements Response](https://ai-sdk.dev/elements/compone
2828
npm i streamdown
2929
```
3030

31-
Then, update your Tailwind `globals.css` to include the following:
31+
Then, update your Tailwind `globals.css` to include the following.
3232

3333
```css
3434
@source "../node_modules/streamdown/dist/index.js";
3535
```
3636

37-
This will ensure that the Streamdown styles are applied to your project.
37+
Make sure the path matches the location of the `node_modules` folder in your project. This will ensure that the Streamdown styles are applied to your project.
3838

3939
## Usage
4040

apps/website/app/components/implementation.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,13 @@ export default function Page() {
9292
`;
9393

9494
const cssCode = `/*
95-
* Update your Tailwind globals.css
96-
* to include the following code.
97-
* This will ensure that the Streamdown
98-
* styles are applied to your project.
95+
* Update your Tailwind globals.css to include the
96+
* following code. This will ensure that the
97+
* Streamdown styles are applied to your project.
98+
*
99+
* Make sure the path matches the location of the
100+
* node_modules folder in your project i.e.
101+
* @source "<path-to-node_modules>/node_modules/streamdown/dist/index.js";
99102
*/
100103
101104
@source "../node_modules/streamdown/dist/index.js";`;

packages/streamdown/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Then, update your Tailwind `globals.css` to include the following:
3434
@source "../node_modules/streamdown/dist/index.js";
3535
```
3636

37-
This will ensure that the Streamdown styles are applied to your project.
37+
Make sure the path matches the location of the `node_modules` folder in your project. This will ensure that the Streamdown styles are applied to your project.
3838

3939
## Usage
4040

0 commit comments

Comments
 (0)