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

Fields

obfuscate: boolobjects: BTreeSet<Box<dyn TailwindInstance>>preflight: PreflightSystemscreens: BreakPointSystemcolors: PaletteSystemfonts: 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
  • 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

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type for metadata in pointers and references to Self.

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.