nuxt / nuxt/nuxt.com

Code block color issue in the light theme on `nuxt.com/docs`

Open
#2,217 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
457
Forks
272
Avg merge
13h 33m
Merged PRs (30d)
23

Description

On nuxt.com/docs, when using the light theme, variable names in code snippets are rendered in the same color as comments:

Image

They could probably have more contrast.

Example page:
https://nuxt.com/docs/4.x/api/composables/use-nuxt-app#payload

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the example page at nuxt.com/docs/4.x/api/composables/use-nuxt-app#payload and inspect how light-theme code blocks style variable names and comments. The issue is done when variable names have clearer contrast from comments in the light theme.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.