interface WorkspaceThemeProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Connect.CfnWorkspacePropsMixin.WorkspaceThemeProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsconnect#CfnWorkspacePropsMixin_WorkspaceThemeProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.connect.CfnWorkspacePropsMixin.WorkspaceThemeProperty |
Python | aws_cdk.cfn_property_mixins.aws_connect.CfnWorkspacePropsMixin.WorkspaceThemeProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_connect » CfnWorkspacePropsMixin » WorkspaceThemeProperty |
Contains theme configuration for a workspace, supporting both light and dark modes.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connect as connect } from '@aws-cdk/cfn-property-mixins';
const workspaceThemeProperty: connect.CfnWorkspacePropsMixin.WorkspaceThemeProperty = {
dark: {
palette: {
canvas: {
activeBackground: 'activeBackground',
containerBackground: 'containerBackground',
pageBackground: 'pageBackground',
},
header: {
background: 'background',
invertActionsColors: false,
text: 'text',
textHover: 'textHover',
},
navigation: {
background: 'background',
invertActionsColors: false,
text: 'text',
textActive: 'textActive',
textBackgroundActive: 'textBackgroundActive',
textBackgroundHover: 'textBackgroundHover',
textHover: 'textHover',
},
primary: {
active: 'active',
contrastText: 'contrastText',
default: 'default',
},
},
typography: {
fontFamily: {
default: 'default',
},
},
},
light: {
palette: {
canvas: {
activeBackground: 'activeBackground',
containerBackground: 'containerBackground',
pageBackground: 'pageBackground',
},
header: {
background: 'background',
invertActionsColors: false,
text: 'text',
textHover: 'textHover',
},
navigation: {
background: 'background',
invertActionsColors: false,
text: 'text',
textActive: 'textActive',
textBackgroundActive: 'textBackgroundActive',
textBackgroundHover: 'textBackgroundHover',
textHover: 'textHover',
},
primary: {
active: 'active',
contrastText: 'contrastText',
default: 'default',
},
},
typography: {
fontFamily: {
default: 'default',
},
},
},
};
Properties
| Name | Type | Description |
|---|---|---|
| dark? | IResolvable | Workspace | The theme configuration for dark mode. |
| light? | IResolvable | Workspace | The theme configuration for light mode. |
dark?
Type:
IResolvable | Workspace
(optional)
The theme configuration for dark mode.
light?
Type:
IResolvable | Workspace
(optional)
The theme configuration for light mode.

.NET
Go
Java
Python
TypeScript