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

feat: colored nodes and edges with labels in canvas #61

Merged
merged 2 commits into from
Mar 3, 2024

Conversation

mrdrprofuroboros
Copy link

Снимок экрана 2023-12-27 в 15 27 58 Снимок экрана 2023-12-27 в 15 28 09

Comment on lines +22 to +32
// TODO: support edge colors
const NODE_STYLES = {
"0": "bg-gray-500/50 border-gray-500",
"1": "bg-red-600/50 border-red-600",
"2": "bg-orange-500/50 border-orange-500",
"3": "bg-yellow-300/50 border-yellow-300",
"4": "bg-green-400/50 border-green-400",
"5": "bg-cyan-400/50 border-cyan-400",
"6": "bg-violet-500/50 border-violet-500",
}

Copy link
Owner

@turtton turtton Jan 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be put to use.
https://tailwindcss.com/docs/customizing-colors#arbitrary-values

However, I don't know how obsidian calculates background color from hex. Do you know information about this?

@turtton turtton merged commit 5763b3c into turtton:main Mar 3, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants