---
id: fast-element.csspartial
title: cssPartial() function
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [cssPartial](./fast-element.csspartial.md)

## cssPartial() function

Transforms a template literal string into partial CSS.

<b>Signature:</b>

```typescript
export declare function cssPartial(strings: TemplateStringsArray, ...values: (ComposableStyles | CSSDirective)[]): CSSDirective;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  strings | TemplateStringsArray | The string fragments that are interpolated with the values. |
|  values | ([ComposableStyles](./fast-element.composablestyles.md) \| [CSSDirective](./fast-element.cssdirective.md)<!-- -->)\[\] | The values that are interpolated with the string fragments. |

<b>Returns:</b>

[CSSDirective](./fast-element.cssdirective.md)
