Skip to content

Commit

Permalink
fix(readme.md): update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
waldronmatt committed Oct 15, 2023
1 parent 18a8bc0 commit e920d44
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ pnpm add @waldronmatt/demo-ui
Used named imports to enable `js` and `css` treeshaking:

```tsx
// add global tokens
import '@waldronmatt/demo-ui/styles/global.css';
import { Button } from '@waldronmatt/demo-ui';
// or import the component directly
// import { Button } from '@waldronmatt/demo-ui/components/Button/index.js';

function App() {
return (
Expand Down Expand Up @@ -47,10 +43,10 @@ import 'the-new-css-reset/css/reset.css';
import 'sanitize.css';
// app styles
import './index.css';
// add global tokens
// add demo-ui global tokens
import '@waldronmatt/demo-ui/styles/global.css';
// component styles
import { Button } from '@waldronmatt/demo-ui';
// component and component styles
import { Button } from '@waldronmatt/demo-ui/components/Button/index.js';
```

Alternatively, you can use your own css reset/normalize libraries.
Expand Down

0 comments on commit e920d44

Please sign in to comment.