()
| 163 | * Resets theme to default |
| 164 | */ |
| 165 | export 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 | } |
no outgoing calls
no test coverage detected