fern icon indicating copy to clipboard operation
fern copied to clipboard

Different syntax highlighting in dark mode

Open dnsbty opened this issue 9 months ago • 0 comments

Which Fern component?

Fern Docs

How urgent is this?

P3 - Low (Nice to have)

What's the issue?

Steps to reproduce:

  1. Add a code block to a doc page with JSON in it
  2. Look at the page

Expected behavior

Syntax highlighting will look the same on both dark mode and light mode (all JSON keys will be the same color, no matter how deeply nested they are)

Actual behavior

On nested JSON objects, the syntax highlighting colors change depending on how deeply nested they are

Light mode (works as expected): Image

Dark mode: Image

Fern CLI & Generator Versions

Fern CLI version: 0.56.35

Workaround

No response

Are you interested in contributing a fix?

Yes

dnsbty avatar Apr 01 '25 22:04 dnsbty