CSS Snipped Allowed Colors List

Hello!
I am using a script to change the outliner header colors below, however, when I try colors off the CSS website most dont work. Is there a list of allowed colors (By name) that I can use?

CSS Colors

CSS snippet:

[data-type="outline"] {
    /* h1 */
    .tree-item .tree-item-self > .tree-item-inner{
        color: var(--color-white);
    }

These are the variable colors available in the default theme (defined for both .theme-light and .theme-dark):

For anything else, just skip the var() section and use the color itself. e.g.

[data-type="outline"] {
    /* h1 */
    .tree-item .tree-item-self > .tree-item-inner{
        color: deeppink;
    }
[data-type="outline"] {
    /* h1 */
    .tree-item .tree-item-self > .tree-item-inner{
        color: lawngreen;
    }

etc.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.