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