-
Notifications
You must be signed in to change notification settings - Fork 447
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
make a "minimal" theme #2072
Comments
i think that rather than increasing the number of themes, it iwould be better to use "d2-config" to allow also dark themes to be configured. c.f. like a "minimal" theme # ----------------------------------------------------------------------
vars: {
d2-config: {
layout-engine: elk
theme-overrides: {
N1: "#000000"
B1: "#000000"
B2: "#000000"
B4: "#ffffff"
B5: "#ffffff"
B3: "#ffffff"
B6: "#ffffff"
N4: "#ffffff"
N7: "#ffffff"
AA4: "#ffffff"
AA5: "#ffffff"
AB4: "#ffffff"
AB5: "#ffffff"
AA2: "#000000"
N2: "#000000"
N5: "#ffffff"
N6: "#ffffff"
}
}
}
**: {style.border-radius: 0; style.stroke-width: 1; style.bold: false}
(** -> **)[*]: {style.stroke-width: 1; style.border-radius: 0}
(** <- **)[*]: {style.stroke-width: 1; style.border-radius: 0}
(** <-> **)[*]: {style.stroke-width: 1; style.border-radius: 0}
(** -- **)[*]: {style.stroke-width: 1; style.border-radius: 0}
# ---------------------------------------------------------------------- |
it would be good to have a way of writing 'bit flipping'. vars: {
d2-config: {
layout-engine: elk
theme-overrides: {
N1: "#000000"
B1: "#000000"
B2: "#000000"
B4: "#ffffff"
B5: "#ffffff"
B3: "#ffffff"
B6: "#ffffff"
N4: "#ffffff"
N7: "#ffffff"
AA4: "#ffffff"
AA5: "#ffffff"
AB4: "#ffffff"
AB5: "#ffffff"
AA2: "#000000"
N2: "#000000"
N5: "#ffffff"
N6: "#ffffff"
}
dark-theme-overrides: {
N1: "#ffffff"
B1: "#ffffff"
B2: "#ffffff"
B4: "#000000"
B5: "#000000"
B3: "#000000"
B6: "#000000"
N4: "#000000"
N7: "#000000"
AA4: "#000000"
AA5: "#000000"
AB4: "#000000"
AB5: "#000000"
AA2: "#ffffff"
N2: "#ffffff"
N5: "#000000"
N6: "#000000"
}
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
stroke-width 1 for everything, just black and white, no rounding corners, maybe even no bolding
The text was updated successfully, but these errors were encountered: