Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WorkspacePlatformInitConfig

Configuration for initializing a Workspace platform.

Hierarchy

  • WorkspacePlatformInitConfig

Index

Properties

Optional browser

Config for overriding browser options and behavior.

Optional customActions

customActions?: CustomActionsMap

Optional theme

theme?: CustomThemes

Custom Themes object

import * as WorkspacePlatform from '@openfin/workspace-platform';

// This is the palette used to create the OpenFin dark theme
const customPalette: WorkspacePlatform.CustomPaletteSet = {
brandPrimary: '#504CFF',
brandSecondary: '#383A40',
backgroundPrimary: '#000',
background1: '#111214',
background2: '#1E1F23',
background3: '#24262B',
background4: '#2F3136',
background5: '#383A40',
background6: '#53565F',
statusSuccess: '#35C759',
statusWarning: '#C93400',
statusCritical: '#000',
statusActive: '#0879C4',
inputBackground: '#53565F',
inputColor: '#FFFFFF',
inputPlaceholder: '#C9CBD2',
inputDisabled: '#7D808A',
inputFocused: '#C9CBD2',
textDefault: '#FFFFFF',
textHelp: '#C9CBD2',
textInactive: '#7D808A',
};

const customTheme: WorkspacePlatform.CustomThemes = [{
label: "My Custom Theme",
palette: customPalette
}];

await WorkspacePlatform.init({
browser: { overrideCallback },
theme: customThemes
});

Generated using TypeDoc