Report Configuration

simple-report allows you to customize your overall report style using a custom config.yml file. The default configuration loaded for each report is given below. You can change as many elements as you like, as long as you follow the schema shown below. You can also include custom colors in this config file, as detailed in Color Palettes.

In order to load your custom color profiles and configuration simply add a link to your config file during the report initialization:

r = Report(
        report_dir,
        report_name,
        report_date,
        color_mode='dark',
        config_file='path/to/your/config/file.yml
)

Default Report Configuration

The default configuration used for every report is as follows:

timezone: 'Europe/Berlin'

css:
  site:
    dark:
      site_face_color: '#fefefa'
      site_background_color: '#1f1f1f'
    light:
      site_face_color: '#1f1f1f'
      site_background_color: '#fefefa'

  tabs:
    dark:
      tab_border_bottom_color: '#414951'
      tab_border_bottom_size: '2px'
      tab_inactive_font_color: '#7a848c'
      tab_inactive_font_weight: 'lighter'
      tab_hover_font_color: '#dae2ef'
      tab_active_font_color: '#dae2ef'
      tab_active_font_weight: 'bolder'
      tab_active_background_color: 'none'
      tab_active_border_bottom_color: '#dae2ef'
      tab_active_border_bottom_size: '2px'
    light:
      tab_border_bottom_color: '#abb1bc'
      tab_border_bottom_size: '2px'
      tab_inactive_font_color: '#abb1bc'
      tab_inactive_font_weight: 'lighter'
      tab_hover_font_color: '#414951'
      tab_active_font_color: '#414951'
      tab_active_font_weight: 'bolder'
      tab_active_background_color: 'none'
      tab_active_border_bottom_color: '#414951'
      tab_active_border_bottom_size: '2px'

  accordion:
    dark:
      accordion_border_color: '#414951'
      accordion_border_size: '1px'
      accordion_link_color: '#dae2ef'
      accordion_header_background_color: '#2a2d2e'
      accordion_body_top_border_color: '#dae2ef'
      accordion_body_top_border_size: '1px'
      accordion_body_background_color: '#313131'
      accordion_body_font_color: '#dae2ef'
    light:
      accordion_border_color: '#cbcbc7'
      accordion_border_size: '1px'
      accordion_link_color: '#91989d'
      accordion_header_background_color: '#f1f1ed'
      accordion_body_top_border_color: '#bebeba'
      accordion_body_top_border_size: '1px'
      accordion_body_background_color: '#fefffa'
      accordion_body_font_color: '#828995'

  table:
    dark:
      table_controls_background_color: '#2a2d2e'
      table_controls_border_color: '#555'
      table_controls_font_color: '#dae2ef'
      table_pagination_border_color: '#313131'
      table_pagination_hover_border_color: '#66b2ff'
      table_pagination_hover_font_color: '#66b2ff'
      table_pagination_active_background_color: '#66b2ff'
      table_pagination_active_border_color: '#66b2ff'
      table_pagination_active_font_color: '#000'
    light:
      table_controls_background_color: '#f1f1ed'
      table_controls_border_color: '#dee2e6'
      table_controls_font_color: '#414951'
      table_pagination_border_color: '#313131'
      table_pagination_hover_border_color: '#66b2ff'
      table_pagination_hover_font_color: '#66b2ff'
      table_pagination_active_background_color: '#66b2ff'
      table_pagination_active_border_color: '#66b2ff'
      table_pagination_active_font_color: '#000'


default_color_profiles:
  dark:
    report_header: steel 
    header: slate
    sub-header: slate
    table: slate
    report_ball: slate
    text: slate
    navbar: slate
    list: slate
  light:
    report_header: steel
    header: slate
    sub-header: slate
    table: slate
    report_ball: slate
    text: slate
    navbar: slate
    list: slate