mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-31 15:42:48 +00:00
Co-authored-by: Joshua Chen <sidachen2003@gmail.com> Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
103 lines
1.7 KiB
TypeScript
103 lines
1.7 KiB
TypeScript
/**
|
|
* 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;
|