diff --git a/src/lib/runes.ts b/src/lib/runes.ts index 716d7289..8854aaa3 100644 --- a/src/lib/runes.ts +++ b/src/lib/runes.ts @@ -2,14 +2,15 @@ import type { Lo, Course } from "$lib/services/models/lo-types"; import { rune } from "./services/utils/runes.svelte"; export const transitionKey = rune(""); + export const layout = rune("expanded"); export const lightMode = rune("light"); +export const currentTheme = rune("tutors"); export const currentLo = rune(null); export const currentCourse = rune(null); export const courseUrl = rune(""); export const currentLabStepIndex = rune(0); -export const currentTheme = rune("tutors"); export const cardHeight = rune("380px"); export const headingText = rune("!text-lg font-semibold"); diff --git a/src/lib/services/models/course-utils.ts b/src/lib/services/models/course-utils.ts index dc53f0f7..f32a58c9 100644 --- a/src/lib/services/models/course-utils.ts +++ b/src/lib/services/models/course-utils.ts @@ -1,4 +1,4 @@ -import { addIcon } from "$lib/ui/themes/theme-controller"; +import { addIcon } from "$lib/ui/themes/theme-controller.svelte"; import type { Composite, Course, IconNav, Lo, LoType, Topic } from "./lo-types"; import { filterByType, setShowHide } from "./lo-utils"; diff --git a/src/lib/ui/components/Card.svelte b/src/lib/ui/components/Card.svelte index 91ecfecd..aa069656 100644 --- a/src/lib/ui/components/Card.svelte +++ b/src/lib/ui/components/Card.svelte @@ -12,7 +12,7 @@ textSize } from "$lib/runes"; - import { getTypeColour } from "../themes/theme-controller"; + import { getTypeColour } from "../themes/theme-controller.svelte"; import type { CardDetails } from "$lib/services/types.svelte"; import Icon from "$lib/ui/components/Icon.svelte"; diff --git a/src/lib/ui/components/Icon.svelte b/src/lib/ui/components/Icon.svelte index f0aea537..033f93ca 100644 --- a/src/lib/ui/components/Icon.svelte +++ b/src/lib/ui/components/Icon.svelte @@ -2,7 +2,7 @@ import Icon from "@iconify/svelte"; import { Tooltip } from "@skeletonlabs/skeleton-svelte"; - import { getIcon } from "../themes/theme-controller"; + import { getIcon } from "../themes/theme-controller.svelte"; interface Props { type?: string; diff --git a/src/lib/ui/learning-objects/content/Video.svelte b/src/lib/ui/learning-objects/content/Video.svelte index 338f2563..2b8c8e5e 100644 --- a/src/lib/ui/learning-objects/content/Video.svelte +++ b/src/lib/ui/learning-objects/content/Video.svelte @@ -2,7 +2,7 @@ import { onMount } from "svelte"; import type { Lo } from "$lib/services/models/lo-types"; import { currentCourse } from "$lib/runes"; - import { getIcon } from "../../themes/theme-controller"; + import { getIcon } from "../../themes/theme-controller.svelte"; let firefox = $state(false); diff --git a/src/lib/ui/themes/LayoutMenu.svelte b/src/lib/ui/themes/LayoutMenu.svelte index a7ac35dc..a041d6d0 100644 --- a/src/lib/ui/themes/LayoutMenu.svelte +++ b/src/lib/ui/themes/LayoutMenu.svelte @@ -1,17 +1,13 @@ diff --git a/tailwind.config.ts b/tailwind.config.ts index e51c8f16..6451e083 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,11 +1,11 @@ import forms from "@tailwindcss/forms"; import typography from "@tailwindcss/typography"; import { skeleton, contentPath } from "@skeletonlabs/skeleton/plugin"; -import * as themes from "@skeletonlabs/skeleton/themes"; +import { nouveau, rose, cerberus } from "@skeletonlabs/skeleton/themes"; import tutors from "./src/lib/ui/themes/styles/tutors"; import classic from "./src/lib/ui/themes/styles/classic"; import dyslexia from "./src/lib/ui/themes/styles/dyslexia"; -import festive from "./src/lib/ui/themes/styles/festive"; +import festive from "./src/lib/ui/themes/events/festive"; import type { Config } from "tailwindcss"; export default { @@ -33,24 +33,7 @@ export default { typography, forms, skeleton({ - // NOTE: each theme included will be added to your CSS bundle - themes: [ - themes.cerberus, - themes.rose, - themes.nosh, - themes.mona, - themes.nosh, - themes.fennec, - tutors, - classic, - dyslexia, - festive, - themes.concord, - themes.nouveau, - themes.vintage, - themes.seafoam, - themes.wintry - ] + themes: [tutors, classic, dyslexia, festive, nouveau, rose, cerberus] }) ] } satisfies Config;