Skip to content

Instantly share code, notes, and snippets.

@altitude
Created February 11, 2026 15:16
Show Gist options
  • Select an option

  • Save altitude/f77e64ba880bced1371dba3e2aa49aa0 to your computer and use it in GitHub Desktop.

Select an option

Save altitude/f77e64ba880bced1371dba3e2aa49aa0 to your computer and use it in GitHub Desktop.
/**
* 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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment