mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-04 17:07:22 +00:00
27 lines
775 B
JavaScript
27 lines
775 B
JavaScript
/* @see https://github.com/monkeytypegame/monkeytype/blob/master/frontend/static/themes/_list.json */
|
|
const monkeyTypesThemes = [
|
|
/* Paste json here! */
|
|
].map((theme) => theme)
|
|
.filter((theme) => ![
|
|
'dark', 'solarized_dark', 'solarized_light',
|
|
].includes(theme.name))
|
|
.sort((a, b) => a.name.localeCompare(b.name))
|
|
|
|
const names = monkeyTypesThemes
|
|
.map(({ name }) => `'${name}',`).join('\n')
|
|
|
|
const css = monkeyTypesThemes
|
|
.map((theme) => [
|
|
`.${theme.name} {`,
|
|
` --bg-color: ${theme.bgColor};`,
|
|
` --main-color: ${theme.textColor};`,
|
|
` --accent-color: ${theme.mainColor};`,
|
|
` --input-color: ${theme.subColor};`,
|
|
'}\n'].join('\n'))
|
|
.join('\n')
|
|
|
|
console.log('/* List*/')
|
|
console.log(names)
|
|
|
|
console.log('/* CSS */')
|
|
console.log(css)
|