/
githubmirror
/
docusaurus
Обзор
Документация
Войти
/
githubmirror
/
docusaurus
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
website/src/utils/prismLight.ts
102 строки
2 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.github; export default { ...baseTheme, styles: [ ...baseTheme.styles, { types: ['title'], style: { color: '#0550AE', fontWeight: 'bold', }, }, { types: ['parameter'], style: { color: '#953800', }, }, { types: ['boolean', 'rule', 'color', 'number', 'constant', 'property'], style: { color: '#005CC5', }, }, { types: ['atrule', 'tag'], style: { color: '#22863A', }, }, { types: ['script'], style: { color: '#24292E', }, }, { types: ['operator', 'unit', 'rule'], style: { color: '#D73A49', }, }, { types: ['font-matter', 'string', 'attr-value'], style: { color: '#C6105F', }, }, { types: ['class-name'], style: { color: '#116329', }, }, { types: ['attr-name'], style: { color: '#0550AE', }, }, { types: ['keyword'], style: { color: '#CF222E', }, }, { types: ['function'], style: { color: '#8250DF', }, }, { types: ['selector'], style: { color: '#6F42C1', }, }, { types: ['variable'], style: { color: '#E36209', }, }, { types: ['comment'], style: { color: '#6B6B6B', }, }, ], } satisfies PrismTheme;