Ctrl K
ComunidadGuías…

docs/lib/prism-theme.ts

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
import type { PrismTheme } from 'prism-react-renderer'

const theme: PrismTheme = {
  plain: {
    color: 'var(--text-heading)',
    backgroundColor: '#f6f7f9',
  },
  styles: [
    {
      types: ['comment', 'prolog', 'doctype', 'cdata'],
      style: {
        color: 'var(--text)',
      },
    },
    {
      types: ['namespace'],
      style: {
        opacity: 0.7,
      },
    },
    {
      types: ['string', 'attr-value'],
      style: {
        color: '#eC1337',
      },
    },
    {
      types: ['punctuation', 'operator'],
      style: {
        color: '#94A3B8',
      },
    },
    {
      types: [
        'entity',
        'url',
        'symbol',
        'number',
        'boolean',
        'variable',
        'constant',
        'property',
        'regex',
        'inserted',
      ],
      style: {
        color: '#04865d',
      },
    },
    {
      types: ['atrule', 'keyword', 'attr-name', 'selector'],
      style: {
        color: '#0080A8',
      },
    },
    {
      types: ['function', 'deleted', 'tag'],
      style: {
        color: 'var(--focus)',
      },
    },
    {
      types: ['function-variable'],
      style: {
        color: '#7f54e0',
      },
    },
    {
      types: ['tag', 'selector', 'keyword'],
      style: {
        color: '#037dbb',
      },
    },
  ],
}

export default theme