Skip to content

Commit

Permalink
change theme system again
Browse files Browse the repository at this point in the history
  • Loading branch information
piperswe committed Feb 10, 2023
1 parent 9decc40 commit f6ca8f2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ In your Svelte files:
import { Container, Heading, ProjectBadge } from '@lutris/saline-components';
</script>
<LutrisTheme />
<Container>
<Heading level={1}>My Page</Heading>
<ProjectBadge code="FBOX" name="Fleetbox" />
</Container>
<LutrisTheme>
<Container>
<Heading level={1}>My Page</Heading>
<ProjectBadge code="FBOX" name="Fleetbox" />
</Container>
</LutrisTheme>
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lutris/saline-components",
"version": "0.0.9",
"version": "0.0.10",
"license": "ISC",
"homepage": "https://github.com/lutriseng/saline-components",
"author": "Piper McCorkle <[email protected]>",
Expand Down
2 changes: 2 additions & 0 deletions src/lib/themes/LutrisTheme.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
import '@fontsource/overpass-mono/variable.css';
import './lutris.css';
</script>

<slot />
12 changes: 6 additions & 6 deletions src/routes/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export default `<script lang="ts">
import { Container, Heading, ProjectBadge } from '@lutris/saline-components';
</script>
<LutrisTheme />
<Container>
<Heading level={1}>My Page</Heading>
<ProjectBadge code="FBOX" name="Fleetbox" />
</Container>`;
<LutrisTheme>
<Container>
<Heading level={1}>My Page</Heading>
<ProjectBadge code="FBOX" name="Fleetbox" />
</Container>
</LutrisTheme>`;

0 comments on commit f6ca8f2

Please sign in to comment.