minorchange2k downloadsAutomatically colors TaskNotes task cards by project using a deterministic hash-based color scheme.
Automatically colors TaskNotes task cards by project. Each project gets a distinct background color and left border, computed from a hash of the project name. Adding a new project requires zero configuration — the color is assigned automatically.

The plugin watches the DOM for TaskNotes task cards. When a card contains a project link, it:
data-href attribute--project-hue CSS custom property on the cardThe plugin's stylesheet then applies a tinted background and colored left border using that hue. Both light and dark themes are supported.
Colors appear in all TaskNotes views that render task cards (kanban, task list, agenda).
To tweak the saturation or lightness of the colors, create a CSS snippet in your vault (Settings → Appearance → CSS snippets) that overrides the defaults:
/* Example: more saturated, slightly darker backgrounds */
.tasknotes-plugin .task-card[style*="--project-hue"] {
background-color: hsl(var(--project-hue), 70%, 88%);
border-left: 3px solid hsl(var(--project-hue), 60%, 50%);
}
.theme-dark .tasknotes-plugin .task-card[style*="--project-hue"] {
background-color: hsl(var(--project-hue), 40%, 15%);
border-left: 3px solid hsl(var(--project-hue), 50%, 35%);
}
main.js, manifest.json, and styles.css from the latest releaseyour-vault/.obsidian/plugins/tasknotes-project-colors/