---
id: fast-element.cssdirective.createcss
title: CSSDirective.createCSS() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [CSSDirective](./fast-element.cssdirective.md) &gt; [createCSS](./fast-element.cssdirective.createcss.md)

## CSSDirective.createCSS() method

Creates a CSS fragment to interpolate into the CSS document.

<b>Signature:</b>

```typescript
createCSS(): ComposableStyles;
```
<b>Returns:</b>

[ComposableStyles](./fast-element.composablestyles.md)

- the string to interpolate into CSS
