Skip to content

Commit 23154f8

Browse files
committed
chore: update docs
1 parent 02a2f01 commit 23154f8

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131

3232
## About
3333

34-
A React component library built by the Douglas Neuroinformatics Platform (DNP) using [shadcn/ui](https://github.com/shadcn-ui/ui) with [React](https://react.dev/) and [TailwindCSS](https://tailwindcss.com/). Although primarily intended for internal use in our platforms, it is
35-
designed as a generic implementation.
34+
A React component library built by the Douglas Neuroinformatics Platform (DNP) using [shadcn/ui](https://github.com/shadcn-ui/ui) with [React](https://react.dev/) and [TailwindCSS](https://tailwindcss.com/). Although primarily intended for internal use in our platforms, it is designed as a generic implementation.
3635

3736
## Installation
3837

@@ -42,14 +41,13 @@ pnpm install @douglasneuroinformatics/libui
4241

4342
## Usage
4443

45-
**tailwind.config.cjs**
44+
**globals.css**
4645

47-
```js
48-
const config = require('@douglasneuroinformatics/libui/tailwind/config');
46+
```css
47+
@import '@douglasneuroinformatics/libui/tailwind/globals.css';
4948

50-
module.exports = config({
51-
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}']
52-
});
49+
// adjust as required
50+
@source "../node_modules/@douglasneuroinformatics/libui";
5351
```
5452

5553
**i18n.ts**
@@ -78,7 +76,7 @@ init({ translations: { common } });
7876
**main.tsx**
7977

8078
```js
81-
import '@douglasneuroinformatics/libui/tailwind/globals.css';
79+
import './globals.css';
8280
import './i18n';
8381
```
8482

0 commit comments

Comments
 (0)