Skip to content

Customizing navbar-light-bg yields an error #781

@cpsievert

Description

@cpsievert
> bs_theme_dependencies(bs_theme("navbar-light-bg" = "white"))
Error in compile_data(sass_input, options) : 
  Error: argument `$color` of `red($color)` must be a color
        on line 60:10 of inst/sass-utils/color-contrast.scss, in function `red`
        from line 60:10 of inst/sass-utils/color-contrast.scss, in function `luminance`
        from line 49:8 of inst/sass-utils/color-contrast.scss, in function `contrast-ratio`
        from line 31:22 of inst/sass-utils/color-contrast.scss, in function `color-contrast`
        from line 1228:3 of inst/lib/bs5/scss/_variables.scss, in function `if`
        from line 1226:24 of inst/lib/bs5/scss/_variables.scss
        from line 9:9 of stdin
>>     "r": red($color),

   ---------^

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