Color Attribute? #7644
-
DescriptionWhat's happened to the #color atttribute? Of the dozens I've set only one still appears to work: #color(inheritable)=gold. #color(inheritable)=Fuchsia does not work. And why can't I find any details of color in the new help file (either by searching or looking in Advanced/attributes). Or pehaps my seach is broken? Is color depricated? Did I miss a release note? Which colours are now available? TriliumNext Version0.99.3 (and the last few versions) What operating system are you using?Other (specify below) What is your setup?Server access only Operating System VersionAccess via Brave browser / Trilium server only Error logsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
The #color attribute is not deprecated and still works in Trilium. It accepts any valid CSS color value, including named colors and hex codes. However, the color name must match CSS standards exactly—so use lowercase (e.g., To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
This comment has been minimized.
This comment has been minimized.
-
|
Thanks. Using lower case got me back! |
Beta Was this translation helpful? Give feedback.
The #color attribute is not deprecated and still works in Trilium. It accepts any valid CSS color value, including named colors and hex codes. However, the color name must match CSS standards exactly—so use lowercase (e.g.,
#color(inheritable)=fuchsiainstead ofFuchsia). If the color string isn't recognized by the underlying color library, Trilium silently ignores it and doesn't apply the color, which is why only some colors appear to work for you. This case sensitivity and lack of normalization isn't documented in the help files, which can be confusing. There have been recent changes to improve color readability in the note tree, but no restriction or deprecation of the #color attribut…