Initial public release

This commit is contained in:
Bohdan Triapitsyn
2025-12-07 19:32:53 +02:00
commit 4b2edf7318
319 changed files with 81600 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import type { Theme } from '@/types/theme';
import { flexokiLightTheme } from './flexoki-light';
import { flexokiDarkTheme } from './flexoki-dark';
export const themes: Theme[] = [
flexokiLightTheme,
flexokiDarkTheme,
];
export {
flexokiLightTheme,
flexokiDarkTheme,
};
export function getThemeById(id: string): Theme | undefined {
return themes.find(theme => theme.metadata.id === id);
}
export function getDefaultTheme(prefersDark: boolean): Theme {
return prefersDark ? flexokiDarkTheme : flexokiLightTheme;
}