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: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@marcantoinepelletier
Comment options

@andrew-pledge-io
Comment options

@wongjn
Comment options

wongjn Feb 7, 2025
Collaborator

Answer selected by marcantoinepelletier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants