logo
pub struct TailwindBuilder {
    pub obfuscate: bool,
    pub objects: BTreeSet<Box<dyn TailwindInstance>>,
    pub preflight: PreflightSystem,
    pub palettes: PaletteSystem,
    pub screens: BreakPointSystem,
    pub fonts: FontSystem,
}

Fields

obfuscate: boolobjects: BTreeSet<Box<dyn TailwindInstance>>preflight: PreflightSystempalettes: PaletteSystemscreens: BreakPointSystemfonts: FontSystem

Implementations

Config for preflight progress

Add custom preflight information

Inline mode(no bundle)
Returns
  • Anonymous style sheets, which can be placed inside style tags
Example
  • input
<div class="p-auto px-px pt-2 pb-2">Test</div>
  • output
<div class="p-auto px-px pt-2 pb-2">Test</div>
<style> {} </style>

Safe version of TailwindBuilder::trace

Inline mode(no bundle)
Returns
  • Anonymous style sheets, which can be placed inside style tags
Example
  • input
<div class="p-auto px-px pt-2 pb-2">Test</div>
  • output
<div class="p-auto px-px pt-2 pb-2">Test</div>
<style> {} </style>

Safe version of TailwindBuilder::scope

Inline mode(no bundle)
Returns
  • Anonymous style sheets, which can be placed inside style tags
Example
  • input
<div class="p-auto px-px pt-2 pb-2">Test</div>
  • output
<div class="p-auto px-px pt-2 pb-2">Test</div>
<style> {} </style>
Inline mode(no bundle)
Returns

Not all instructions can be inline, if not, it will fall back to trace mode

  • Anonymous style sheets, which can be placed inside style tags
Example
  • input
<div class="p-auto px-px pt-2 pb-2">Test</div>
  • output
<div class="p-auto px-px pt-2 pb-2">Test</div>
<style> {} </style>

Safe version of TailwindBuilder::inline

Bundle all used stylesheets

Safe version of TailwindBuilder::bundle

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.