okami.mom/glamour
git clone https://git.nkp.pet/okami.mom/glamour
c293649
main
1package styles 2 3import "charm.land/glamour/v2/ansi" 4 5// DraculaStyleConfig is the dracula style. 6var DraculaStyleConfig = ansi.StyleConfig { 7Document : ansi.StyleBlock { 8StylePrimitive : ansi.StylePrimitive { 9BlockPrefix :"\n" , 10BlockSuffix :"\n" , 11Color :stringPtr ("#f8f8f2" ), 12 }, 13Margin :uintPtr (defaultMargin ), 14 }, 15BlockQuote : ansi.StyleBlock { 16StylePrimitive : ansi.StylePrimitive { 17Color :stringPtr ("#f1fa8c" ), 18Italic :boolPtr (true ), 19 }, 20Indent :uintPtr (defaultMargin ), 21 }, 22List : ansi.StyleList { 23LevelIndent :defaultMargin , 24StyleBlock : ansi.StyleBlock { 25StylePrimitive : ansi.StylePrimitive { 26Color :stringPtr ("#f8f8f2" ), 27 }, 28 }, 29 }, 30Heading : ansi.StyleBlock { 31StylePrimitive : ansi.StylePrimitive { 32BlockSuffix :"\n" , 33Color :stringPtr ("#bd93f9" ), 34Bold :boolPtr (true ), 35 }, 36 }, 37H1 : ansi.StyleBlock { 38StylePrimitive : ansi.StylePrimitive { 39Prefix :"# " , 40 }, 41 }, 42H2 : ansi.StyleBlock { 43StylePrimitive : ansi.StylePrimitive { 44Prefix :defaultHeadingPrefixH2 , 45 }, 46 }, 47H3 : ansi.StyleBlock { 48StylePrimitive : ansi.StylePrimitive { 49Prefix :defaultHeadingPrefixH3 , 50 }, 51 }, 52H4 : ansi.StyleBlock { 53StylePrimitive : ansi.StylePrimitive { 54Prefix :defaultHeadingPrefixH4 , 55 }, 56 }, 57H5 : ansi.StyleBlock { 58StylePrimitive : ansi.StylePrimitive { 59Prefix :defaultHeadingPrefixH5 , 60 }, 61 }, 62H6 : ansi.StyleBlock { 63StylePrimitive : ansi.StylePrimitive { 64Prefix :defaultHeadingPrefixH6 , 65 }, 66 }, 67Strikethrough : ansi.StylePrimitive { 68CrossedOut :boolPtr (true ), 69 }, 70Emph : ansi.StylePrimitive { 71Color :stringPtr ("#f1fa8c" ), 72Italic :boolPtr (true ), 73 }, 74Strong : ansi.StylePrimitive { 75Bold :boolPtr (true ), 76Color :stringPtr ("#ffb86c" ), 77 }, 78HorizontalRule : ansi.StylePrimitive { 79Color :stringPtr ("#6272A4" ), 80Format :defaultHorizontalRule , 81 }, 82Item : ansi.StylePrimitive { 83BlockPrefix :"• " , 84 }, 85Enumeration : ansi.StylePrimitive { 86BlockPrefix :". " , 87Color :stringPtr ("#8be9fd" ), 88 }, 89Task : ansi.StyleTask { 90StylePrimitive : ansi.StylePrimitive {}, 91Ticked :defaultTaskTickedPrefix , 92Unticked :defaultTaskUntickedPrefix , 93 }, 94Link : ansi.StylePrimitive { 95Color :stringPtr ("#8be9fd" ), 96Underline :boolPtr (true ), 97 }, 98LinkText : ansi.StylePrimitive { 99Color :stringPtr ("#ff79c6" ), 100 }, 101Image : ansi.StylePrimitive { 102Color :stringPtr ("#8be9fd" ), 103Underline :boolPtr (true ), 104 }, 105ImageText : ansi.StylePrimitive { 106Color :stringPtr ("#ff79c6" ), 107Format :defaultImageFormat , 108 }, 109Code : ansi.StyleBlock { 110StylePrimitive : ansi.StylePrimitive { 111Color :stringPtr ("#50fa7b" ), 112 }, 113 }, 114CodeBlock : ansi.StyleCodeBlock { 115StyleBlock : ansi.StyleBlock { 116StylePrimitive : ansi.StylePrimitive { 117Color :stringPtr ("#ffb86c" ), 118 }, 119Margin :uintPtr (defaultMargin ), 120 }, 121Chroma :& ansi.Chroma { 122Text : ansi.StylePrimitive { 123Color :stringPtr ("#f8f8f2" ), 124 }, 125Error : ansi.StylePrimitive { 126Color :stringPtr ("#f8f8f2" ), 127BackgroundColor :stringPtr ("#ff5555" ), 128 }, 129Comment : ansi.StylePrimitive { 130Color :stringPtr ("#6272A4" ), 131 }, 132CommentPreproc : ansi.StylePrimitive { 133Color :stringPtr ("#ff79c6" ), 134 }, 135Keyword : ansi.StylePrimitive { 136Color :stringPtr ("#ff79c6" ), 137 }, 138KeywordReserved : ansi.StylePrimitive { 139Color :stringPtr ("#ff79c6" ), 140 }, 141KeywordNamespace : ansi.StylePrimitive { 142Color :stringPtr ("#ff79c6" ), 143 }, 144KeywordType : ansi.StylePrimitive { 145Color :stringPtr ("#8be9fd" ), 146 }, 147Operator : ansi.StylePrimitive { 148Color :stringPtr ("#ff79c6" ), 149 }, 150Punctuation : ansi.StylePrimitive { 151Color :stringPtr ("#f8f8f2" ), 152 }, 153Name : ansi.StylePrimitive { 154Color :stringPtr ("#8be9fd" ), 155 }, 156NameBuiltin : ansi.StylePrimitive { 157Color :stringPtr ("#8be9fd" ), 158 }, 159NameTag : ansi.StylePrimitive { 160Color :stringPtr ("#ff79c6" ), 161 }, 162NameAttribute : ansi.StylePrimitive { 163Color :stringPtr ("#50fa7b" ), 164 }, 165NameClass : ansi.StylePrimitive { 166Color :stringPtr ("#8be9fd" ), 167 }, 168NameConstant : ansi.StylePrimitive { 169Color :stringPtr ("#bd93f9" ), 170 }, 171NameDecorator : ansi.StylePrimitive { 172Color :stringPtr ("#50fa7b" ), 173 }, 174NameFunction : ansi.StylePrimitive { 175Color :stringPtr ("#50fa7b" ), 176 }, 177LiteralNumber : ansi.StylePrimitive { 178Color :stringPtr ("#6EEFC0" ), 179 }, 180LiteralString : ansi.StylePrimitive { 181Color :stringPtr ("#f1fa8c" ), 182 }, 183LiteralStringEscape : ansi.StylePrimitive { 184Color :stringPtr ("#ff79c6" ), 185 }, 186GenericDeleted : ansi.StylePrimitive { 187Color :stringPtr ("#ff5555" ), 188 }, 189GenericEmph : ansi.StylePrimitive { 190Color :stringPtr ("#f1fa8c" ), 191Italic :boolPtr (true ), 192 }, 193GenericInserted : ansi.StylePrimitive { 194Color :stringPtr ("#50fa7b" ), 195 }, 196GenericStrong : ansi.StylePrimitive { 197Color :stringPtr ("#ffb86c" ), 198Bold :boolPtr (true ), 199 }, 200GenericSubheading : ansi.StylePrimitive { 201Color :stringPtr ("#bd93f9" ), 202 }, 203Background : ansi.StylePrimitive { 204BackgroundColor :stringPtr ("#282a36" ), 205 }, 206 }, 207 }, 208Table : ansi.StyleTable { 209StyleBlock : ansi.StyleBlock { 210StylePrimitive : ansi.StylePrimitive {}, 211 }, 212 }, 213DefinitionDescription : ansi.StylePrimitive { 214BlockPrefix :defaultArrowBlockPrefix , 215 }, 216}