--- title: Style description: Style directives allow a user to set style properties like a background color. --- Style directives allow a user to set style properties like a background color that will then be written to the `style` attribute on the given tag. ## Example ```js { name: 'article-header', label: 'Artikelkopf', directives: [ { name: 'background', type: 'style', properties: ['css-background-color'] }, { name: 'title', type: 'editable', plainText: true } ], html: dedent`

Article Headline

` } ``` ## Config Option - `properties`: array of strings, set of referenced [component properties](/reference/document/document-design/llms.txt#component-properties) that are set when the user enters content. E.g. in the example below a user could set a hex-code for a color that uses the component property `css-background-color` that in turn sets the style attribute to `style="background-color:user-value"`.