diff --git a/README.md b/README.md index 5f9c6af..fe8102e 100644 --- a/README.md +++ b/README.md @@ -153,7 +153,7 @@ const config = { // Useful if you want to support a single color mode disableSwitch: false, - // Should we use the prefers-color-scheme media-query, + // Should use the prefers-color-scheme media-query, // using user system preferences, instead of the hardcoded defaultTheme respectPrefersColorScheme: true, diff --git a/gitprofile.config.js b/gitprofile.config.js index 0a39663..96b0d34 100644 --- a/gitprofile.config.js +++ b/gitprofile.config.js @@ -91,14 +91,14 @@ const config = { snippetVersion: 6, }, themeConfig: { - default: 'corporate', + defaultTheme: 'corporate', // Hides the switch in the navbar // Useful if you want to support a single color mode disableSwitch: false, - // Should we use the prefers-color-scheme media-query, - // using user system preferences, instead of the hardcoded default + // Should use the prefers-color-scheme media-query, + // using user system preferences, instead of the hardcoded defaultTheme respectPrefersColorScheme: false, // Available themes. To remove any theme, exclude from here. diff --git a/types/index.d.ts b/types/index.d.ts index 38b3e38..500d85a 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -135,9 +135,24 @@ export interface ThemeConfig { defaultTheme: string; /** - * Snippet Version + * Hides the switch in the navbar */ - snippetVersion: number; + disableSwitch: boolean; + + /** + * Should use the prefers-color-scheme media-query + */ + respectPrefersColorScheme: boolean; + + /** + * Available themes + */ + themes: Array; + + /** + * Custom theme + */ + customTheme: object; } export interface Config {