# StyleDefinition

interface

Style definition.

An object describing a style definition. It contains the style `name`, `element` name and an array of CSS `classes`.

```typescript
// This style will create <h2 class="foo">...</h2> in the document data.
{
  name: 'Example style',
  element: 'h2',
  classes: [ 'foo' ]
}
```

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-style/src/styleconfig.ts#L87)

<a id="properties">

## Properties

<a id="member-classes">

### `classes: Array<string>`

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-style/src/styleconfig.ts#L90)

<a id="member-element">

### `element: string`

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-style/src/styleconfig.ts#L89)

<a id="member-name">

### `name: string`

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-style/src/styleconfig.ts#L88)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
