Skip to content

Commit

Permalink
expose blobal styles using custom properties
Browse files Browse the repository at this point in the history
  • Loading branch information
mucsi96 committed May 2, 2024
1 parent f201243 commit fc01c79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 8 additions & 0 deletions src/Docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ npm install @mucsi96/ui-elements
import '@mucsi96/ui-elements';
```

```css
body {
background-color: var(--bt-background-color);
color: var(--bt-text-color);
font-family: var(--bt-font-family);
}
```

# Badge

<Canvas of={BadgeStories.Normal} />
Expand Down
3 changes: 0 additions & 3 deletions src/Main/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ export type BTMainProps = {};
:host {
display: block;
background-color: var(--bt-background-color);
color: var(--bt-text-color);
font-family: var(--bt-font-family);
padding: 1px 1rem;
max-width: 90rem;
margin: 0 auto;
Expand Down

0 comments on commit fc01c79

Please sign in to comment.