X7ROOT File Manager
Current Path:
/opt/alt/python311/lib/python3.11/site-packages/pygments/styles
opt
/
alt
/
python311
/
lib
/
python3.11
/
site-packages
/
pygments
/
styles
/
📁
..
📄
__init__.py
(1.96 KB)
📁
__pycache__
📄
_mapping.py
(3.23 KB)
📄
abap.py
(749 B)
📄
algol.py
(2.21 KB)
📄
algol_nu.py
(2.23 KB)
📄
arduino.py
(4.45 KB)
📄
autumn.py
(2.14 KB)
📄
borland.py
(1.57 KB)
📄
bw.py
(1.37 KB)
📄
coffee.py
(2.25 KB)
📄
colorful.py
(2.77 KB)
📄
default.py
(2.53 KB)
📄
dracula.py
(2.13 KB)
📄
emacs.py
(2.48 KB)
📄
friendly.py
(2.54 KB)
📄
friendly_grayscale.py
(2.76 KB)
📄
fruity.py
(1.29 KB)
📄
gh_dark.py
(3.51 KB)
📄
gruvbox.py
(3.31 KB)
📄
igor.py
(737 B)
📄
inkpot.py
(2.35 KB)
📄
lightbulb.py
(3.1 KB)
📄
lilypond.py
(2.02 KB)
📄
lovelace.py
(3.1 KB)
📄
manni.py
(2.39 KB)
📄
material.py
(4.1 KB)
📄
monokai.py
(5.06 KB)
📄
murphy.py
(2.74 KB)
📄
native.py
(2 KB)
📄
nord.py
(5.26 KB)
📄
onedark.py
(1.68 KB)
📄
paraiso_dark.py
(5.53 KB)
📄
paraiso_light.py
(5.54 KB)
📄
pastie.py
(2.47 KB)
📄
perldoc.py
(2.18 KB)
📄
rainbow_dash.py
(2.33 KB)
📄
rrt.py
(964 B)
📄
sas.py
(1.41 KB)
📄
solarized.py
(4.15 KB)
📄
staroffice.py
(831 B)
📄
stata_dark.py
(1.23 KB)
📄
stata_light.py
(1.26 KB)
📄
tango.py
(6.97 KB)
📄
trac.py
(1.93 KB)
📄
vim.py
(1.97 KB)
📄
vs.py
(1.1 KB)
📄
xcode.py
(1.47 KB)
📄
zenburn.py
(2.15 KB)
Editing: gh_dark.py
""" pygments.styles.gh_dark ~~~~~~~~~~~~~~~~~~~~~~~ Github's Dark-Colorscheme based theme for Pygments Colors extracted from https://github.com/primer/primitives :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.style import Style from pygments.token import Keyword, Name, Comment, Error, Number, Operator, \ Generic, Text, Literal, String, Token __all__ = ['GhDarkStyle'] # vars are defined to match the defs in # - [GitHub's VS Code theme](https://github.com/primer/github-vscode-theme) and # - [Primer styles](https://github.com/primer/primitives) RED_2 = "#ffa198" RED_3 = "#ff7b72" RED_9 = "#490202" ORANGE_2 = "#ffa657" ORANGE_3 = "#f0883e" GREEN_1 = "#7ee787" GREEN_2 = "#56d364" GREEN_7 = "#0f5323" BLUE_1 = "#a5d6ff" BLUE_2 = "#79c0ff" PURPLE_2 = "#d2a8ff" GRAY_3 = "#8b949e" GRAY_4 = "#6e7681" FG_SUBTLE = "#6e7681" FG_DEFAULT = "#e6edf3" BG_DEFAULT = "#0d1117" DANGER_FG = "#f85149" class GhDarkStyle(Style): """ Github's Dark-Colorscheme based theme for Pygments """ name = 'github-dark' background_color = BG_DEFAULT # has transparency in VS Code theme as `colors.codemirror.activelineBg` highlight_color = GRAY_4 line_number_special_color = FG_DEFAULT line_number_special_background_color = FG_SUBTLE line_number_color = GRAY_4 line_number_background_color = BG_DEFAULT styles = { Token: FG_DEFAULT, Error: DANGER_FG, Keyword: RED_3, Keyword.Constant: BLUE_2, Keyword.Pseudo: BLUE_2, Name: FG_DEFAULT, Name.Class: "bold "+ORANGE_3, Name.Constant: "bold "+BLUE_2, Name.Decorator: 'bold '+PURPLE_2, Name.Entity: ORANGE_2, Name.Exception: "bold "+ORANGE_3, Name.Function: 'bold '+PURPLE_2, Name.Label: "bold "+BLUE_2, Name.Namespace: RED_3, Name.Property: BLUE_2, Name.Tag: GREEN_1, Name.Variable: BLUE_2, Literal: BLUE_1, Literal.Date: BLUE_2, String: BLUE_1, String.Affix: BLUE_2, String.Delimiter: BLUE_2, String.Escape: BLUE_2, String.Heredoc: BLUE_2, String.Regex: BLUE_2, Number: BLUE_1, Comment: 'italic '+GRAY_3, Comment.Preproc: "bold " + GRAY_3, Comment.Special: "bold italic " + GRAY_3, Operator: 'bold ' + RED_3, Generic: FG_DEFAULT, Generic.Deleted: f"bg:{RED_9} {RED_2}", Generic.Emph: "italic", Generic.Error: RED_2, Generic.Heading: "bold "+BLUE_2, Generic.Inserted: f'bg:{GREEN_7} {GREEN_2}', Generic.Output: GRAY_3, Generic.Prompt: GRAY_3, Generic.Strong: "bold", Generic.EmphStrong: "bold italic", Generic.Subheading: BLUE_2, Generic.Traceback: RED_3, Generic.Underline: "underline", Text.Whitespace: FG_SUBTLE, }
Upload File
Create Folder