add author field

This commit is contained in:
7w1 committed 2026-04-01 23:29:11 -05:00
1 parent 02e64039f8
commit eba0a4ccad
1 file changed
+4
+4
View File
@@ -5,6 +5,7 @@ export type SableThemeContrast = 'low' | 'high';
export type SableThemeMetadata = {
id: string;
name: string;
author?: string;
kind: ThemeKind;
contrast: SableThemeContrast;
tags: string[];
@@ -36,6 +37,9 @@ export function parseSableThemeMetadata(cssText: string): Partial<SableThemeMeta
case 'name':
out.name = value;
break;
case 'author':
out.author = value;
break;
case 'kind':
out.kind = value === 'dark' ? ThemeKind.Dark : ThemeKind.Light;
break;