/
githubmirror
/
docusaurus
Обзор
Документация
Войти
/
githubmirror
/
docusaurus
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
website/src/utils/prismDark.ts
81 строка
1 KB
Chongyi Zheng
feat(core): support TypeScript + ESM configuration (#9317)
14 окт 2023, 03:46
Не верифицирован
14 окт 2023, 03:46
45f1a66
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import {themes, type PrismTheme} from 'prism-react-renderer'; const baseTheme = themes.vsDark; export default { plain: { color: '#D4D4D4', backgroundColor: '#212121', }, styles: [ ...baseTheme.styles, { types: ['title'], style: { color: '#569CD6', fontWeight: 'bold', }, }, { types: ['property', 'parameter'], style: { color: '#9CDCFE', }, }, { types: ['script'], style: { color: '#D4D4D4', }, }, { types: ['boolean', 'arrow', 'atrule', 'tag'], style: { color: '#569CD6', }, }, { types: ['number', 'color', 'unit'], style: { color: '#B5CEA8', }, }, { types: ['font-matter'], style: { color: '#CE9178', }, }, { types: ['keyword', 'rule'], style: { color: '#C586C0', }, }, { types: ['regex'], style: { color: '#D16969', }, }, { types: ['maybe-class-name'], style: { color: '#4EC9B0', }, }, { types: ['constant'], style: { color: '#4FC1FF', }, }, ], } satisfies PrismTheme;