sass-site/source/assets/js/playground/theme.ts
2023-06-13 12:42:28 -04:00

16 lines
476 B
TypeScript

import { HighlightStyle } from '@codemirror/language';
import { tags } from '@lezer/highlight';
const playgroundHighlightStyle = HighlightStyle.define([
{
tag: [tags.special(tags.variableName), tags.tagName],
color: '#445588',
fontWeight: 'bold',
},
{ tag: tags.definitionKeyword, fontWeight: 'bold' },
{ tag: tags.comment, color: '#006666', fontStyle: 'italic' },
{ tag: tags.propertyName, color: '#990000' },
]);
export { playgroundHighlightStyle };