# TailwindCssOptions

<pre class="nacara-api__signature"><code><span class="tok-operator">[&lt;</span><span class="tok-type">Struct</span><span class="tok-operator">&gt;]</span>
<span class="tok-keyword">type</span> <span class="tok-type">TailwindCssOptions</span> <span class="tok-operator">=</span>
    <span class="tok-punctuation">{</span>
        <a class="tok-property" href="#binary">Binary</a><span class="tok-punctuation">:</span> <a class="tok-type" href="/Partas.Nacara.Plugins/reference/partas-nacara-plugins-tailwind/nacara-plugins/tailwindcssbinary/strategy/">Strategy</a>
        <a class="tok-property" href="#targetextensions">TargetExtensions</a><span class="tok-punctuation">:</span> <span class="tok-type">string</span> <span class="tok-type">list</span>
        <a class="tok-property" href="#tailwindentryheader">TailwindEntryHeader</a><span class="tok-punctuation">:</span> <span class="tok-type">string</span> <span class="tok-type">list</span>
        <a class="tok-property" href="#tailwindentryfooter">TailwindEntryFooter</a><span class="tok-punctuation">:</span> <span class="tok-type">string</span> <span class="tok-type">list</span>
        <a class="tok-property" href="#referencehandler">ReferenceHandler</a><span class="tok-punctuation">:</span> <a class="tok-type" href="/Partas.Nacara.Plugins/reference/partas-nacara-plugins-tailwind/nacara-plugins/tailwindcssimportstatement/">TailwindCssImportStatement</a> <span class="tok-operator">-&gt;</span> <span class="tok-type">Result</span><span class="tok-operator">&lt;</span><span class="tok-type">string</span><span class="tok-punctuation">,</span><span class="tok-type">string</span><span class="tok-operator">&gt;</span>
    <span class="tok-punctuation">}</span></code></pre>

| | |
|---|---|
| Assembly | `Partas.Nacara.Plugins.Tailwind` |
| Attributes | `[<Struct>]` |

## Fields

<div class="nacara-api__entry" id="binary">
<a class="nacara-api__anchor"
                           href="#binary"
                           aria-label="Link to Binary"
                           data-pagefind-ignore></a>
<details class="nacara-api__member">
<summary>
<pre class="nacara-api__signature nacara-api__signature--hanging"><code><span class="tok-property">Binary</span><span class="tok-punctuation">:</span> <a class="tok-type" href="/Partas.Nacara.Plugins/reference/partas-nacara-plugins-tailwind/nacara-plugins/tailwindcssbinary/strategy/">Strategy</a></code></pre>
</summary>
<div class="nacara-api__body">

The strategy to use to find the tailwindcss binary. `Implicit` strategies will download the binary to a cache using
the provided version and platform parameters.

Defaults to `TailwindCssBinary.Implicit(TailwindCssBinary.Version(4,3,3), TailwindCssBinary.Platform.Auto)`.


</div>
</details>
</div>

<div class="nacara-api__entry" id="targetextensions">
<a class="nacara-api__anchor"
                           href="#targetextensions"
                           aria-label="Link to TargetExtensions"
                           data-pagefind-ignore></a>
<details class="nacara-api__member">
<summary>
<pre class="nacara-api__signature nacara-api__signature--hanging"><code><span class="tok-property">TargetExtensions</span><span class="tok-punctuation">:</span> <span class="tok-type">string</span> <span class="tok-type">list</span></code></pre>
</summary>
<div class="nacara-api__body">

The extensions that will be processed by the tailwindcss plugin.
This intended to be used to filter tailwindcss processing for specific files using
a composite extension pattern: `<FileName>.*.css`

Defaults to `[".css"]`.


</div>
</details>
</div>

<div class="nacara-api__entry" id="tailwindentryheader">
<a class="nacara-api__anchor"
                           href="#tailwindentryheader"
                           aria-label="Link to TailwindEntryHeader"
                           data-pagefind-ignore></a>
<details class="nacara-api__member">
<summary>
<pre class="nacara-api__signature nacara-api__signature--hanging"><code><span class="tok-property">TailwindEntryHeader</span><span class="tok-punctuation">:</span> <span class="tok-type">string</span> <span class="tok-type">list</span></code></pre>
</summary>
<div class="nacara-api__body">

The header that is injected into the target entry style sheet to import the tailwindcss library
if it is not already imported.

If the header is empty, it will automatically inject `@import "tailwindcss";`

Defaults to:



```fsharp
[
"@layer theme, base, components, utilities;"
"@import \"tailwindcss/theme.css\" layer(theme);"
"@import \"tailwindcss/utilities.css\" layer(utilities);"
]
```


</div>
</details>
</div>

<div class="nacara-api__entry" id="tailwindentryfooter">
<a class="nacara-api__anchor"
                           href="#tailwindentryfooter"
                           aria-label="Link to TailwindEntryFooter"
                           data-pagefind-ignore></a>
<details class="nacara-api__member">
<summary>
<pre class="nacara-api__signature nacara-api__signature--hanging"><code><span class="tok-property">TailwindEntryFooter</span><span class="tok-punctuation">:</span> <span class="tok-type">string</span> <span class="tok-type">list</span></code></pre>
</summary>
<div class="nacara-api__body">

The footer is injected at the end of the entry file.

Defaults to `[]`.


</div>
</details>
</div>

<div class="nacara-api__entry" id="referencehandler">
<a class="nacara-api__anchor"
                           href="#referencehandler"
                           aria-label="Link to ReferenceHandler"
                           data-pagefind-ignore></a>
<details class="nacara-api__member">
<summary>
<pre class="nacara-api__signature nacara-api__signature--hanging"><code><span class="tok-property">ReferenceHandler</span><span class="tok-punctuation">:</span> <a class="tok-type" href="/Partas.Nacara.Plugins/reference/partas-nacara-plugins-tailwind/nacara-plugins/tailwindcssimportstatement/">TailwindCssImportStatement</a> <span class="tok-operator">-&gt;</span> <span class="tok-type">Result</span><span class="tok-operator">&lt;</span><span class="tok-type">string</span><span class="tok-punctuation">,</span><span class="tok-type">string</span><span class="tok-operator">&gt;</span></code></pre>
</summary>
<div class="nacara-api__body">

A delegate that is used to modify the import statements in the entry style sheet when bundling.



The delegate is called for each import statement found in the entry style sheet, and
receives the absolute path to the entry style sheet directory and the import string to modify
without quotations.



Return the final path, without quotations.

If the returned string ends with `;`, then the string is injected verbatim after the `@import <returnValue>`
statement.


Defaults to `fun { AbsoluteDirPath = d; Import = i } -> System.IO.Path.Combine(d, i) |> Ok`.


</div>
</details>
</div>
