/
githubmirror
/
jest
Обзор
Документация
Войти
/
githubmirror
/
jest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
website/src/prism/themeDark.js
63 строки
1014 B
Simen Bekkhus
chore: prefer using array spread (#14820)
31 дек 2023, 17:52
Не верифицирован
31 дек 2023, 17:52
bd3a7e9
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const {themes} = require('prism-react-renderer'); const baseTheme = themes.vsDark; const themeDark = [ { types: ['keyword'], style: { color: '#469446', }, }, { types: ['string'], style: { color: '#a49840', }, }, { types: ['function'], style: { color: '#9e6db1', }, }, { types: ['operator'], style: { color: '#888', }, }, { types: ['number', 'variable'], style: { color: '#336b9d', }, }, { types: ['comment'], style: { color: '#65737e', }, }, { types: ['inserted'], style: { color: '#b5cea8', background: '#355235', }, }, ]; module.exports = { plain: { backgroundColor: '#242526', color: '#eee', }, styles: [...baseTheme.styles, ...themeDark], };