Skip to content

Issue when implementing dark theme #2

@flalom

Description

@flalom

Hello there!
Thank you for this nice package!
I am working with David Granjon and we are working on implementing the dark theme.

We used these functions from fresh to implement the dark theme:

  darktheme <- fresh::create_theme(
       fresh::bs4dash_vars(
        navbar_light_color = "#bec5cb",
         navbar_light_active_color = "#FFF",
        navbar_light_hover_color = "#FFF"
      ),
     fresh::bs4dash_yiq(
        contrasted_threshold = 10,
         text_dark = "#FFF",
        text_light = "#272c30"
     ),
      fresh::bs4dash_layout(
        main_bg = "#353c42"
      ),
      fresh::bs4dash_sidebar_dark(
        bg = "#272c30",
        color = "#bec5cb",
         hover_color = "#FFF",
        submenu_bg = "#272c30",
        submenu_color = "#FFF",
        submenu_hover_color = "#FFF"
      ),
       fresh::bs4dash_status(
         primary = "#5E81AC", danger = "#BF616A", light = "#272c30",
          dark = "#272c30"
      ),
      fresh::bs4dash_color(
         white = "#272c30", #if i do not add this line the skin doesn't work properly
         gray_900 = "#FFF"
     )
   )
fresh::use_theme(darktheme)

However there are a couple of widgets that are not well rendered (the timeline boxes, social card, and box with user comments), here some images.

image
image
image

How can we fix this?

Thank you very much and please, let me know if you need additional information

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