DaisyUIOptions
[<Struct>]
type DaisyUIOptions =
{
TailwindBinary: Strategy
DaisyUIVersion: Version
TailwindTargetExtensions: string list
TailwindEntryHeader: string list
TailwindEntryFooter: string list
ReferenceHandler: TailwindCssImportStatement -> Result<string,string>
}| Assembly | Partas.Nacara.Plugins.DaisyUI |
| Attributes | [<Struct>] |
Fields
TailwindBinary: Strategy
TailwindBinary: StrategyThe 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).
DaisyUIVersion: VersionTailwindTargetExtensions: string list
TailwindTargetExtensions: string listThe 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"].
TailwindEntryHeader: string list
TailwindEntryHeader: string listThe header that is injected into the target entry style sheet to import the tailwindcss library if it is not already imported. The plugin will replace <DAISY_UI_MJS> with the actual installation.
If the header is empty, it will automatically inject @import "tailwindcss"; and @plugin "<DAISY_UI_MJS>";.
Use <DAISY_UI_THEME_MJS> if you want to use DaisyUI themes.
Defaults to:
[
"@layer theme, base, components, utilities;"
"@import \"tailwindcss/theme.css\" layer(theme);"
"@import \"tailwindcss/utilities.css\" layer(utilities);"
"@plugin \"<DAISY_UI_MJS>\";"
]
ReferenceHandler: TailwindCssImportStatement -> Result<string,string>
ReferenceHandler: TailwindCssImportStatement -> Result<string,string>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.