Skip to content

dark mode : identifiers in code blocks are invisible for dark background #108

@ych817

Description

@ych817

Greetings ,

  1. Here is my dark mode syntax highlighting theme :

    #set raw(
      theme: "tokyo-night.tmTheme" // dark theme
    )

    I notice that the identifiers in the code blocks are still in black , which makes them invisible , i.e. ,

    Details Image
  2. so I add this line :

    #show raw: set text(fill: rgb("#a9b1d6"))

    and then new problem comes : the text inside the language tag on the top-right corner of the code blocks are invisible , i.e. ,

    Details Image
  3. Is it possible to make adjustments only for the main code text ?

  4. by the way the fill color for code highlighting is brighter than what I thought . I tried the following settings ,

    #codly(highlights: (
      (line: 4, start: 5, end: none, fill: maroon),
      (line: 5, start: 14, end: 16, fill: olive, tag: "(a)"),
      (line: 5, start: 29, end: 35, fill: eastern, tag: "(b)"),
    ))

    and this is what it looks like :

    Details Image

I cannot upload the source code , I can only upload the pdf file .

main.pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions