From 8d3e4b50eadb70a1c021615332ebff3b8630860c Mon Sep 17 00:00:00 2001 From: MinamiFunakoshiTR Date: Mon, 14 Jul 2025 10:20:05 -0400 Subject: [PATCH] renames Theme and CustomTheme types #326 --- src/components/Theme/@types/component.ts | 4 ++-- src/components/Theme/Theme.svelte | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Theme/@types/component.ts b/src/components/Theme/@types/component.ts index 325faed0..74de2bdf 100644 --- a/src/components/Theme/@types/component.ts +++ b/src/components/Theme/@types/component.ts @@ -42,12 +42,12 @@ export interface CustomFont { size?: Partial; } -export interface Theme { +export interface ThemeConfig { colour: Colour; font: Font; } -export interface CustomTheme { +export interface CustomThemeConfig { colour?: Partial; font?: Partial; [customProperty: string]: unknown; diff --git a/src/components/Theme/Theme.svelte b/src/components/Theme/Theme.svelte index 002dfcb7..dbea6cb5 100644 --- a/src/components/Theme/Theme.svelte +++ b/src/components/Theme/Theme.svelte @@ -14,7 +14,7 @@ import mergeThemes from './utils/merge.js'; // Types - import type { CustomTheme, Theme } from './@types/component'; + import type { CustomThemeConfig, ThemeConfig } from './@types/component'; import type { Snippet } from 'svelte'; type Base = 'light' | 'dark'; @@ -22,7 +22,7 @@ /** Custom theme object. Can be a partial theme with just * what you want to change. */ - theme?: CustomTheme | Theme; + theme?: CustomThemeConfig | ThemeConfig; /** * Base theme is one of `light` or `dark` and will be merged * with your custom theme to fill in any values you don't