Using a custom theme causes syntax highlighting of code previews to appear all white #13275

Closed
opened 2025-11-02 10:37:03 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @murl-digital on GitHub (Jul 11, 2024).

Description

i use a custom theme on my gitea instance, and it causes source code previews to be all white. you can see an example here

when i edit the file in the web, the colors work as expected

Gitea Version

1.22.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image
image

Git Version

No response

Operating System

No response

How are you running Gitea?

using the package provided by TrueNAS scale, which runs a docker image on kubernetes

Database

None

Originally created by @murl-digital on GitHub (Jul 11, 2024). ### Description i use a custom theme on my gitea instance, and it causes source code previews to be all white. you can see an example [here](https://vcs.cozydsp.space/cozy-dsp/comber/src/branch/main/src/lib.rs) when i edit the file in the web, the colors work as expected ### Gitea Version 1.22.1 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots ![image](https://github.com/go-gitea/gitea/assets/8054329/92d42128-01f9-48ed-adda-24bb020848cf) ![image](https://github.com/go-gitea/gitea/assets/8054329/d86d603e-c59a-48c6-bb48-d7dafe3b1e29) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? using the package provided by TrueNAS scale, which runs a docker image on kubernetes ### Database None
GiteaMirror added the issue/workaround label 2025-11-02 10:37:03 -06:00
Author
Owner

@lsd-techno commented on GitHub (Jul 13, 2024):

there is includes that are responsible to colorize code preview, I add those files/folders to custom to solve the issue: https://github.com/lsd-techno/gitea-theme/pull/4

@lsd-techno commented on GitHub (Jul 13, 2024): there is includes that are responsible to colorize code preview, I add those files/folders to custom to solve the issue: https://github.com/lsd-techno/gitea-theme/pull/4
Author
Owner

@lunny commented on GitHub (Aug 14, 2024):

Close per @lsd-techno 's workaround.

@lunny commented on GitHub (Aug 14, 2024): Close per @lsd-techno 's workaround.
Author
Owner

@murl-digital commented on GitHub (Aug 14, 2024):

Should this be at least documented somewhere perhaps?

@murl-digital commented on GitHub (Aug 14, 2024): Should this be at least documented somewhere perhaps?
Author
Owner

@lunny commented on GitHub (Aug 14, 2024):

Maybe https://docs.gitea.com/awesome?_highlight=theme/awesome#themes is a good place to document it.

@lunny commented on GitHub (Aug 14, 2024): Maybe https://docs.gitea.com/awesome?_highlight=theme/awesome#themes is a good place to document it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13275