:doc:`Connect <../../connect>` / Client / update_workspace_theme

**********************
update_workspace_theme
**********************



.. py:method:: Connect.Client.update_workspace_theme(**kwargs)

  

  Updates the theme configuration for a workspace, including colors and styling.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateWorkspaceTheme>`_  


  **Request Syntax**
  ::

    response = client.update_workspace_theme(
        InstanceId='string',
        WorkspaceId='string',
        Theme={
            'Light': {
                'Palette': {
                    'Header': {
                        'Background': 'string',
                        'Text': 'string',
                        'TextHover': 'string',
                        'InvertActionsColors': True|False
                    },
                    'Navigation': {
                        'Background': 'string',
                        'TextBackgroundHover': 'string',
                        'TextBackgroundActive': 'string',
                        'Text': 'string',
                        'TextHover': 'string',
                        'TextActive': 'string',
                        'InvertActionsColors': True|False
                    },
                    'Canvas': {
                        'ContainerBackground': 'string',
                        'PageBackground': 'string',
                        'ActiveBackground': 'string'
                    },
                    'Primary': {
                        'Default': 'string',
                        'Active': 'string',
                        'ContrastText': 'string'
                    }
                },
                'Images': {
                    'Logo': {
                        'Default': 'string',
                        'Favicon': 'string'
                    }
                },
                'Typography': {
                    'FontFamily': {
                        'Default': 'Arial'|'Courier New'|'Georgia'|'Times New Roman'|'Trebuchet'|'Verdana'
                    }
                }
            },
            'Dark': {
                'Palette': {
                    'Header': {
                        'Background': 'string',
                        'Text': 'string',
                        'TextHover': 'string',
                        'InvertActionsColors': True|False
                    },
                    'Navigation': {
                        'Background': 'string',
                        'TextBackgroundHover': 'string',
                        'TextBackgroundActive': 'string',
                        'Text': 'string',
                        'TextHover': 'string',
                        'TextActive': 'string',
                        'InvertActionsColors': True|False
                    },
                    'Canvas': {
                        'ContainerBackground': 'string',
                        'PageBackground': 'string',
                        'ActiveBackground': 'string'
                    },
                    'Primary': {
                        'Default': 'string',
                        'Active': 'string',
                        'ContrastText': 'string'
                    }
                },
                'Images': {
                    'Logo': {
                        'Default': 'string',
                        'Favicon': 'string'
                    }
                },
                'Typography': {
                    'FontFamily': {
                        'Default': 'Arial'|'Courier New'|'Georgia'|'Times New Roman'|'Trebuchet'|'Verdana'
                    }
                }
            }
        }
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

  
  :type WorkspaceId: string
  :param WorkspaceId: **[REQUIRED]** 

    The identifier of the workspace.

    

  
  :type Theme: dict
  :param Theme: 

    The theme configuration, including color schemes and visual styles.

    

  
    - **Light** *(dict) --* 

      The theme configuration for light mode.

      

    
      - **Palette** *(dict) --* 

        The color palette configuration for the workspace theme.

        

      
        - **Header** *(dict) --* 

          The color configuration for the header area.

          

        
          - **Background** *(string) --* 

            The background color of the header.

            

          
          - **Text** *(string) --* 

            The text color in the header.

            

          
          - **TextHover** *(string) --* 

            The text color when hovering over header elements.

            

          
          - **InvertActionsColors** *(boolean) --* 

            Whether to invert the colors of action buttons in the header.

            

          
        
        - **Navigation** *(dict) --* 

          The color configuration for the navigation area.

          

        
          - **Background** *(string) --* 

            The background color of the navigation area.

            

          
          - **TextBackgroundHover** *(string) --* 

            The background color when hovering over navigation text.

            

          
          - **TextBackgroundActive** *(string) --* 

            The background color for active navigation items.

            

          
          - **Text** *(string) --* 

            The text color in the navigation area.

            

          
          - **TextHover** *(string) --* 

            The text color when hovering over navigation items.

            

          
          - **TextActive** *(string) --* 

            The text color for active navigation items.

            

          
          - **InvertActionsColors** *(boolean) --* 

            Whether to invert the colors of action buttons in the navigation area.

            

          
        
        - **Canvas** *(dict) --* 

          The color configuration for the canvas area.

          

        
          - **ContainerBackground** *(string) --* 

            The background color for container elements.

            

          
          - **PageBackground** *(string) --* 

            The background color for page elements.

            

          
          - **ActiveBackground** *(string) --* 

            The background color for active elements.

            

          
        
        - **Primary** *(dict) --* 

          The primary color configuration used throughout the workspace.

          

        
          - **Default** *(string) --* 

            The default primary color used throughout the workspace.

            

          
          - **Active** *(string) --* 

            The primary color used for active states.

            

          
          - **ContrastText** *(string) --* 

            The text color that contrasts with the primary color for readability.

            

          
        
      
      - **Images** *(dict) --* 

        The image assets used in the workspace theme.

        

      
        - **Logo** *(dict) --* 

          The logo images used in the workspace.

          

        
          - **Default** *(string) --* 

            The default logo image displayed in the workspace.

            

          
          - **Favicon** *(string) --* 

            The favicon image displayed in the browser tab.

            

          
        
      
      - **Typography** *(dict) --* 

        The typography configuration for the workspace theme.

        

      
        - **FontFamily** *(dict) --* 

          The font family configuration for text in the workspace.

          

        
          - **Default** *(string) --* 

            The default font family to use in the workspace theme.

            

          
        
      
    
    - **Dark** *(dict) --* 

      The theme configuration for dark mode.

      

    
      - **Palette** *(dict) --* 

        The color palette configuration for the workspace theme.

        

      
        - **Header** *(dict) --* 

          The color configuration for the header area.

          

        
          - **Background** *(string) --* 

            The background color of the header.

            

          
          - **Text** *(string) --* 

            The text color in the header.

            

          
          - **TextHover** *(string) --* 

            The text color when hovering over header elements.

            

          
          - **InvertActionsColors** *(boolean) --* 

            Whether to invert the colors of action buttons in the header.

            

          
        
        - **Navigation** *(dict) --* 

          The color configuration for the navigation area.

          

        
          - **Background** *(string) --* 

            The background color of the navigation area.

            

          
          - **TextBackgroundHover** *(string) --* 

            The background color when hovering over navigation text.

            

          
          - **TextBackgroundActive** *(string) --* 

            The background color for active navigation items.

            

          
          - **Text** *(string) --* 

            The text color in the navigation area.

            

          
          - **TextHover** *(string) --* 

            The text color when hovering over navigation items.

            

          
          - **TextActive** *(string) --* 

            The text color for active navigation items.

            

          
          - **InvertActionsColors** *(boolean) --* 

            Whether to invert the colors of action buttons in the navigation area.

            

          
        
        - **Canvas** *(dict) --* 

          The color configuration for the canvas area.

          

        
          - **ContainerBackground** *(string) --* 

            The background color for container elements.

            

          
          - **PageBackground** *(string) --* 

            The background color for page elements.

            

          
          - **ActiveBackground** *(string) --* 

            The background color for active elements.

            

          
        
        - **Primary** *(dict) --* 

          The primary color configuration used throughout the workspace.

          

        
          - **Default** *(string) --* 

            The default primary color used throughout the workspace.

            

          
          - **Active** *(string) --* 

            The primary color used for active states.

            

          
          - **ContrastText** *(string) --* 

            The text color that contrasts with the primary color for readability.

            

          
        
      
      - **Images** *(dict) --* 

        The image assets used in the workspace theme.

        

      
        - **Logo** *(dict) --* 

          The logo images used in the workspace.

          

        
          - **Default** *(string) --* 

            The default logo image displayed in the workspace.

            

          
          - **Favicon** *(string) --* 

            The favicon image displayed in the browser tab.

            

          
        
      
      - **Typography** *(dict) --* 

        The typography configuration for the workspace theme.

        

      
        - **FontFamily** *(dict) --* 

          The font family configuration for text in the workspace.

          

        
          - **Default** *(string) --* 

            The default font family to use in the workspace theme.

            

          
        
      
    
  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Connect.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Connect.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Connect.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

  