Skip to content

Commit

Permalink
tweak theme system
Browse files Browse the repository at this point in the history
  • Loading branch information
piperswe committed Feb 10, 2023
1 parent 2f721a1 commit 9decc40
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ In your Svelte files:
```svelte
<script lang="ts">
// Import a theme in your layout
import LutrisTheme from '@lutris/saline-components/themes/lutris.svelte';
import LutrisTheme from '@lutris/saline-components/themes/LutrisTheme.svelte';
// Import components on your pages
import { Container, Heading, ProjectBadge } from '@lutris/saline-components';
</script>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.8",
"version": "0.0.9",
"license": "ISC",
"homepage": "https://github.com/lutriseng/saline-components",
"author": "Piper McCorkle <[email protected]>",
Expand Down
3 changes: 0 additions & 3 deletions src/lib/themes/Lutris.svelte

This file was deleted.

9 changes: 9 additions & 0 deletions src/lib/themes/LutrisTheme.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script lang="ts">
import 'normalize.css/normalize.css';
import '@fontsource/orelega-one';
import '@fontsource/ovo';
import '@fontsource/readex-pro';
import '@fontsource/overpass-mono';
import '@fontsource/overpass-mono/variable.css';
import './lutris.css';
</script>
7 changes: 0 additions & 7 deletions src/lib/themes/lutris.ts

This file was deleted.

3 changes: 2 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<script lang="ts">
import '$lib/themes/lutris';
import LutrisTheme from '$lib/themes/LutrisTheme.svelte';
import { Container, LoadingIndicator } from '$lib';
</script>

<LutrisTheme />
<LoadingIndicator />
<Container>
<slot />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/example.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default `<script lang="ts">
// Import a theme in your layout
import LutrisTheme from '@lutris/saline-components/themes/lutris.svelte';
import LutrisTheme from '@lutris/saline-components/themes/LutrisTheme.svelte';
// Import components on your pages
import { Container, Heading, ProjectBadge } from '@lutris/saline-components';
</script>
Expand Down

0 comments on commit 9decc40

Please sign in to comment.