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

customize theme colors with d2-config var #1487

Closed
alixander opened this issue Jul 20, 2023 · 3 comments · Fixed by #1777
Closed

customize theme colors with d2-config var #1487

alixander opened this issue Jul 20, 2023 · 3 comments · Fixed by #1777
Labels
good first issue Good for newcomers

Comments

@alixander
Copy link
Collaborator

alixander commented Jul 20, 2023

e.g.

vars: {
  d2-config: {
    theme-colors: {
      N1: "#fff"
      AA1: blue
    }
  }
}
@cyborg-ts cyborg-ts added this to D2 Jul 20, 2023
@soma-m
Copy link

soma-m commented Jul 22, 2023

Would we also be able to set the default border-radius for all elements in the d2-config?

@alixander
Copy link
Collaborator Author

no, that'll be globs

@bo-ku-ra
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants