Files
ipal-kit/dist/globals/SiteSettings/fields/theme.js
T

37 lines
942 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* Theme behavior configuration.
*
* These are decisions, not visuals — the plugin stores them, the client
* template reads them and decides whether to render a toggle and which
* mode to start in. Appearance itself stays in the template.
*/ export const themeFields = [
{
name: 'defaultTheme',
type: 'select',
admin: {
description: 'Theme applied on a visitor’s first visit.'
},
defaultValue: 'light',
options: [
{
label: 'Light',
value: 'light'
},
{
label: 'Dark',
value: 'dark'
}
],
required: true
},
{
name: 'allowThemeToggle',
type: 'checkbox',
admin: {
description: 'Show a light/dark switch on the site.'
},
defaultValue: true
}
];
//# sourceMappingURL=theme.js.map