Skip to content
Discussion options

You must be logged in to vote

Has this option been fully removed, or is there an alternative way to do this in v4?

There is an alternative way to do this in v4:

@theme {
  --text-color-primary: var(--p-color-text-primary);
  --text-color-secondary: var(--p-color-text-secondary);

  --background-color-soft: var(--p-color-background-soft);
  --background-color-highlight: var(--p-color-background-highlight);
}

Is customization now more limited than before, requiring more manual CSS definitions?

Yes, we don't have the full JavaScript language constructs available in CSS.

What’s the recommended approach to define text/background-specific colors without affecting the global colors object?

See above.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@andrew-pledge-io
Comment options

@wongjn
Comment options

wongjn Feb 7, 2025
Collaborator

@yuzhakovvv
Comment options

@rozsazoltan
Comment options

@wongjn
Comment options

wongjn Dec 1, 2025
Collaborator

Answer selected by marcantoinepelletier
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants