Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improved coexistence with the dark themes. #2161

Open
bo-ku-ra opened this issue Oct 16, 2024 · 0 comments
Open

improved coexistence with the dark themes. #2161

bo-ku-ra opened this issue Oct 16, 2024 · 0 comments

Comments

@bo-ku-ra
Copy link
Contributor

e.g.

vars: {
  d2-config: {
    theme-overrides: {
    }
    dark-theme-overrides: {
    }
  }
}

classes: {
  RED: {style.font-color: red; style.stroke: red; style.fill: white}
  BLUE: {style.font-color: blue; style.stroke: blue; style.fill: white}
}

dark-classes: {
  #overrides
  RED: {style.font-color: white; style.stroke: red; style.fill: red}
}

a{class: RED}  <-- warm: style.font-color: red / dark: style.font-color: white
b{class: BLUE} <-- warm/dark:  style.font-color: blue; style.stroke: blue; style.fill: white
@cyborg-ts cyborg-ts added this to D2 Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant