MCPcopy Create free account
hub / github.com/botbotrobotics/BotBrain / resetTheme

Function resetTheme

frontend/src/utils/theme-generator.ts:165–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 * Resets theme to default
164 */
165export function resetTheme() {
166 const root = document.documentElement;
167
168 // Remove all custom theme properties
169 const themeProps = [
170 '--theme-primary',
171 '--theme-primary-dark',
172 '--theme-primary-darker',
173 '--theme-primary-darkest',
174 '--theme-primary-light',
175 '--theme-primary-lighter',
176 '--theme-primary-lightest',
177 '--theme-accent',
178 '--theme-focus',
179 '--theme-border',
180 '--theme-action-btn-focus',
181 '--theme-secondary',
182 '--theme-clear-pink',
183 '--theme-clear-gray',
184 '--theme-clear-gray-2',
185 ];
186
187 themeProps.forEach(prop => root.style.removeProperty(prop));
188}

Callers 2

ColorPickerFunction · 0.90
ThemeProviderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected