Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Background color (bgcolor) doesn't accept variable #356

Closed
@ArsenicBismuth

Description

So, normally you can set sutff like layout.modebar.bgcolor or layout.paper_bgcolor with your typical CSS values, such as "red":

Image Image Image

My expectation was that it would also work for using variable, such as tailwindCSS values hsl(var(--primary)). But strangely if I use variable, the inline-styling is stuck on the default background-color: rgba(0, 0, 0, 0.5). As if there's an input sanitization.

I can use variable just fine for other stuff like the chart fonts (layout.font.family = "var(--font-berlin)"), but not for bgcolor. Is it by design?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /