Skip to content

Custom style

The style of the editor can be customized and overridden via SCSS and ::ng-deep.

Customize default font

By default, the editor uses the default font of the browser, if you want to modify the font of the editor, you can use st-editor element selector.

scss
::ng-deep .st-editor-container {
  font-family: "Gill Sans", sans-serif;
  font-size: 32px;
}

Customize toolbar

The toolbar can be customized using .st-toolbar selector.

scss
::ng-deep .st-toolbar {
  background-color: #d3ffe2 !important;
}

Customize buttons appearance

The button's appearance (e.g. size and color) can be changed using .st-button selector.

scss
::ng-deep .st-toolbar-item {
  background-color: #67BA83 !important;
  color: white !important;
  padding: 8px !important;   
}
::ng-deep .st-toolbar-item.active {
  color: black !important;
  background-color: #e5ea4b !important;
}

All selectors

SelectorDescription
.st-editor-containerWhole editor container
.st-toolbarToolbar with the editor buttons
.st-areaArea to write
.st-buttonButton of editor (undo, redo, bold...)
.st-toolbar-itemItem of toolbar (buttons, selects...)
.st-selectSelect box of editor (font size select)
.st-dividerDivider, horizontal line, between buttons groups
.activeActive toolbar button
.st-input-windowWindow of input
.st-input-inputInput in input window
.st-input-buttonConfirm button in input window

Released under the MIT License.