UNPKG

highlight-it

Version:

A lightweight syntax highlighting library with themes, line numbers, and copy functionality

228 lines (176 loc) 3.05 kB
/*! Theme: a11y-light Author: @ericwbailey Maintainer: @ericwbailey Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css */ /*! Theme: a11y-dark Author: @ericwbailey Maintainer: @ericwbailey Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css */ pre code.hljs { display: block; overflow-x: auto; padding: 1em; } code.hljs { padding: 3px 5px; } :root { color: #f8f8f2; } .hljs-quote { color: highlight; } .hljs-deletion { color: #ffa07a; } .hljs-link { color: #f5ab35; } .hljs-attribute { color: #ffd700; } .hljs-addition { color: #abe338; } .hljs-section { color: #00e0e0; } .hljs-selector-tag { font-weight: bold; } .hljs-emphasis { font-style: italic; } .hljs-strong { font-weight: bold; } .highlightit-theme-light { color: #545454; .hljs-quote { color: highlight; } .hljs-deletion { color: #d91e18; } .hljs-link { color: #aa5d00; } .hljs-attribute { color: #aa5d00; } .hljs-addition { color: #008000; } .hljs-section { color: #007faa; } .hljs-selector-tag { font-weight: bold; } .hljs-emphasis { font-style: italic; } .hljs-strong { font-weight: bold; } } @media (prefers-color-scheme: light) { :root.highlightit-theme-auto { color: #545454; .hljs-quote { color: highlight; } .hljs-deletion { color: #d91e18; } .hljs-link { color: #aa5d00; } .hljs-attribute { color: #aa5d00; } .hljs-addition { color: #008000; } .hljs-section { color: #007faa; } .hljs-selector-tag { font-weight: bold; } .hljs-emphasis { font-style: italic; } .hljs-strong { font-weight: bold; } } } .highlightit-container[data-theme='light'], .highlightit-container pre[data-theme='light'], .highlightit-container code[data-theme='light'] { color: #545454; .hljs-quote { color: highlight; } .hljs-deletion { color: #d91e18; } .hljs-link { color: #aa5d00; } .hljs-attribute { color: #aa5d00; } .hljs-addition { color: #008000; } .hljs-section { color: #007faa; } .hljs-selector-tag { font-weight: bold; } .hljs-emphasis { font-style: italic; } .hljs-strong { font-weight: bold; } } .highlightit-container[data-theme='dark'], .highlightit-container pre[data-theme='dark'], .highlightit-container code[data-theme='dark'] { color: #f8f8f2; .hljs-quote { color: highlight; } .hljs-deletion { color: #ffa07a; } .hljs-link { color: #f5ab35; } .hljs-attribute { color: #ffd700; } .hljs-addition { color: #abe338; } .hljs-section { color: #00e0e0; } .hljs-selector-tag { font-weight: bold; } .hljs-emphasis { font-style: italic; } .hljs-strong { font-weight: bold; } }