Skip to content

Commit 72282ff

Browse files
refactor : ts integration : src/simulator/src/themer/themes.ts (#464)
* refactor * resolve
1 parent df195da commit 72282ff

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/simulator/src/themer/themes.js renamed to src/simulator/src/themer/themes.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export default {
1+
import { Themes } from './themer.types'
2+
3+
const themes: Themes = {
24
'Default Theme': {
35
'--text-navbar--alt': '#000',
46
'--br-secondary': '#7d7d7d',
@@ -326,7 +328,7 @@ export default {
326328
'--disable': '#956c6a',
327329
'--table-head-dark': '#2e2b21',
328330
},
329-
'Custom Theme': JSON.parse(localStorage.getItem('Custom Theme')) || {
331+
'Custom Theme': JSON.parse(localStorage.getItem('Custom Theme') || '{}') || {
330332
'--text-navbar--alt': '#000',
331333
'--br-secondary': '#7d7d7d',
332334
'--br-circuit-cur': '#ffffff',
@@ -380,3 +382,5 @@ export default {
380382
'--output-rect': '#0000ff',
381383
},
382384
}
385+
386+
export default themes;

0 commit comments

Comments
 (0)