ClassBuilder

Struct ClassBuilder 

Source
pub struct ClassBuilder { /* private fields */ }
Expand description

Builder for creating class sets

Implementations§

Source§

impl ClassBuilder

Source

pub fn new() -> Self

Create a new class builder

Source

pub fn class(self, class: impl Into<String>) -> Self

Add a base class

Source

pub fn classes(self, classes: impl IntoIterator<Item = String>) -> Self

Add multiple base classes

Source

pub fn responsive( self, breakpoint: Breakpoint, class: impl Into<String>, ) -> Self

Add a responsive class

Source

pub fn conditional( self, condition: impl Into<String>, class: impl Into<String>, ) -> Self

Add a conditional class

Source

pub fn custom( self, property: impl Into<String>, value: impl Into<String>, ) -> Self

Add a custom CSS property

Source

pub fn custom_variant( self, variant: impl Into<String>, class: impl Into<String>, ) -> Self

Add a custom variant class (Tailwind v4.1.13 @custom-variant support)

Source

pub fn aria( self, aria_attr: impl Into<String>, class: impl Into<String>, ) -> Self

Add an ARIA variant class

Source

pub fn data( self, data_attr: impl Into<String>, value: Option<String>, class: impl Into<String>, ) -> Self

Add a data variant class

Source

pub fn supports( self, feature: impl Into<String>, class: impl Into<String>, ) -> Self

Add a supports variant class

Source

pub fn build(self) -> ClassSet

Build the class set

Source

pub fn build_string(self) -> String

Build the class set and convert to CSS string

Source§

impl ClassBuilder

Convenience methods for space-between utilities

Source

pub fn space_x_2(self) -> Self

Add horizontal space between child elements with value 2

Source

pub fn space_x_4(self) -> Self

Add horizontal space between child elements with value 4

Source

pub fn space_y_2(self) -> Self

Add vertical space between child elements with value 2

Source

pub fn space_y_4(self) -> Self

Add vertical space between child elements with value 4

Source§

impl ClassBuilder

Convenience methods for divide utilities

Source

pub fn divide_x_2(self) -> Self

Add horizontal divider between child elements with value 2

Source

pub fn divide_x_4(self) -> Self

Add horizontal divider between child elements with value 4

Source

pub fn divide_y_2(self) -> Self

Add vertical divider between child elements with value 2

Source

pub fn divide_y_4(self) -> Self

Add vertical divider between child elements with value 4

Source§

impl ClassBuilder

Convenience methods for aspect-ratio utilities

Source

pub fn aspect_square(self) -> Self

Add aspect-square utility

Source

pub fn aspect_video(self) -> Self

Add aspect-video utility

Source

pub fn aspect_4_3(self) -> Self

Add aspect-[4/3] utility

Source§

impl ClassBuilder

Convenience methods for positioning utilities

Source

pub fn top_4(self) -> Self

Add top positioning with value 4

Source

pub fn right_2(self) -> Self

Add right positioning with value 2

Source

pub fn bottom_6(self) -> Self

Add bottom positioning with value 6

Source

pub fn left_8(self) -> Self

Add left positioning with value 8

Source

pub fn inset_0(self) -> Self

Add inset positioning with value 0

Source

pub fn inset_x_4(self) -> Self

Add horizontal inset positioning with value 4

Source

pub fn inset_y_2(self) -> Self

Add vertical inset positioning with value 2

Trait Implementations§

Source§

impl AlignContentUtilities for ClassBuilder

Source§

fn align_content(self, align: AlignContent) -> Self

Source§

impl AlignItemsUtilities for ClassBuilder

Source§

fn align_items(self, align: AlignItems) -> Self

Source§

impl AlignSelfUtilities for ClassBuilder

Source§

fn align_self(self, align: AlignSelf) -> Self

Source§

impl AnimationUtilities for ClassBuilder

Source§

fn animation(self, animation: Animation) -> Self

Source§

fn animation_with_duration(self, animation: Animation, duration_ms: u32) -> Self

Add animation with custom duration
Source§

fn animation_once(self, animation: Animation) -> Self

Add animation that runs only once
Source§

fn animation_repeat(self, animation: Animation, count: u32) -> Self

Add animation that repeats a specific number of times
Source§

fn fade_in(self) -> Self

Add fade in animation
Source§

fn fade_out(self) -> Self

Add fade out animation
Source§

fn slide_in_left(self) -> Self

Add slide in from left animation
Source§

fn slide_in_right(self) -> Self

Add slide in from right animation
Source§

fn slide_in_top(self) -> Self

Add slide in from top animation
Source§

fn slide_in_bottom(self) -> Self

Add slide in from bottom animation
Source§

fn zoom_in(self) -> Self

Add zoom in animation
Source§

fn zoom_out(self) -> Self

Add zoom out animation
Source§

fn wobble(self) -> Self

Add wobble animation
Source§

fn shake(self) -> Self

Add shake animation
Source§

fn flip(self) -> Self

Add flip animation
Source§

fn heartbeat(self) -> Self

Add heartbeat animation
Source§

fn hover_animation(self, animation: Animation) -> Self

Add hover animation (animation only on hover)
Source§

fn focus_animation(self, animation: Animation) -> Self

Add focus animation (animation only on focus)
Source§

fn animation_pause(self) -> Self

Pause animation
Source§

fn animation_resume(self) -> Self

Resume animation
Source§

impl ArbitraryValueUtilities for ClassBuilder

Source§

fn arbitrary_value( self, property: impl Into<String>, value: impl Into<String>, ) -> Self

Add an arbitrary value class
Source§

fn w_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary width
Source§

fn h_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary height
Source§

fn p_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary padding
Source§

fn m_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary margin
Source§

fn bg_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary background color
Source§

fn text_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary text color
Source§

fn border_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary border color
Source§

fn text_size_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary font size
Source§

fn leading_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary line height
Source§

fn tracking_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary letter spacing
Source§

fn rounded_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary border radius
Source§

fn shadow_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary shadow
Source§

fn opacity_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary opacity
Source§

fn z_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary z-index
Source§

fn top_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary top position
Source§

fn right_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary right position
Source§

fn bottom_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary bottom position
Source§

fn left_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary left position
Source§

impl AspectRatioUtilities for ClassBuilder

Source§

fn aspect_ratio(self, ratio: &str) -> Self

Set aspect ratio
Source§

impl BackgroundAttachmentUtilities for ClassBuilder

Source§

impl BackgroundBlendModeUtilities for ClassBuilder

Source§

impl BackgroundClipUtilities for ClassBuilder

Source§

fn background_clip(self, clip: BackgroundClip) -> Self

Source§

impl BackgroundColorUtilities for ClassBuilder

Source§

fn background_color(self, color: Color) -> Self

Source§

fn background_transparent(self) -> Self

Source§

fn background_current(self) -> Self

Source§

fn background_black(self) -> Self

Source§

fn background_white(self) -> Self

Source§

impl BackgroundImageUtilities for ClassBuilder

Source§

fn background_image(self, image: BackgroundImage) -> Self

Source§

impl BackgroundOriginUtilities for ClassBuilder

Source§

impl BackgroundPositionUtilities for ClassBuilder

Source§

impl BackgroundRepeatUtilities for ClassBuilder

Source§

impl BackgroundSizeUtilities for ClassBuilder

Source§

fn background_size(self, size: BackgroundSize) -> Self

Source§

impl BlurUtilities for ClassBuilder

Source§

fn blur(self, blur: Blur) -> Self

Source§

impl BorderColorUtilities for ClassBuilder

Source§

fn border_color(self, color: Color) -> Self

Source§

fn border_transparent(self) -> Self

Source§

fn border_current(self) -> Self

Source§

fn border_black(self) -> Self

Source§

fn border_white(self) -> Self

Source§

impl BorderRadiusUtilities for ClassBuilder

Source§

fn border_radius(self, radius: BorderRadius) -> Self

Source§

fn border_radius_t(self, radius: BorderRadius) -> Self

Source§

fn border_radius_r(self, radius: BorderRadius) -> Self

Source§

fn border_radius_b(self, radius: BorderRadius) -> Self

Source§

fn border_radius_l(self, radius: BorderRadius) -> Self

Source§

fn border_radius_tl(self, radius: BorderRadius) -> Self

Source§

fn border_radius_tr(self, radius: BorderRadius) -> Self

Source§

fn border_radius_br(self, radius: BorderRadius) -> Self

Source§

fn border_radius_bl(self, radius: BorderRadius) -> Self

Source§

impl BorderStyleUtilities for ClassBuilder

Source§

fn border_style(self, style: BorderStyle) -> Self

Source§

impl BorderWidthUtilities for ClassBuilder

Source§

fn border_width(self, width: BorderWidth) -> Self

Source§

fn border_width_x(self, width: BorderWidth) -> Self

Source§

fn border_width_y(self, width: BorderWidth) -> Self

Source§

fn border_width_t(self, width: BorderWidth) -> Self

Source§

fn border_width_r(self, width: BorderWidth) -> Self

Source§

fn border_width_b(self, width: BorderWidth) -> Self

Source§

fn border_width_l(self, width: BorderWidth) -> Self

Source§

impl BoxShadowUtilities for ClassBuilder

Source§

fn box_shadow(self, shadow: BoxShadow) -> Self

Source§

impl BrightnessUtilities for ClassBuilder

Source§

fn brightness(self, brightness: Brightness) -> Self

Source§

impl ClearUtilities for ClassBuilder

Source§

fn clear(self, clear: Clear) -> Self

Source§

impl Clone for ClassBuilder

Source§

fn clone(&self) -> ClassBuilder

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ColorSchemeVariantUtilities for ClassBuilder

Source§

fn light(self) -> Self

Add light color scheme variant
Source§

fn dark(self) -> Self

Add dark color scheme variant
Source§

impl ContrastUtilities for ClassBuilder

Source§

fn contrast(self, contrast: Contrast) -> Self

Source§

impl CursorUtilities for ClassBuilder

Source§

fn cursor(self, cursor: Cursor) -> Self

Source§

impl DarkModeVariantUtilities for ClassBuilder

Source§

fn dark_mode(self, class: impl Into<String>) -> Self

Add a dark mode variant
Source§

fn dark_hover(self, class: impl Into<String>) -> Self

Add a dark mode hover variant
Source§

fn dark_focus(self, class: impl Into<String>) -> Self

Add a dark mode focus variant
Source§

fn dark_active(self, class: impl Into<String>) -> Self

Add a dark mode active variant
Source§

fn dark_disabled(self, class: impl Into<String>) -> Self

Add a dark mode disabled variant
Source§

fn dark_checked(self, class: impl Into<String>) -> Self

Add a dark mode checked variant
Source§

fn dark_group_hover(self, class: impl Into<String>) -> Self

Add a dark mode group hover variant
Source§

fn dark_group_focus(self, class: impl Into<String>) -> Self

Add a dark mode group focus variant
Source§

fn dark_bg(self, color: impl Into<String>) -> Self

Add a dark mode background color
Source§

fn dark_text(self, color: impl Into<String>) -> Self

Add a dark mode text color
Source§

fn dark_border(self, color: impl Into<String>) -> Self

Add a dark mode border color
Source§

fn dark_hover_bg(self, color: impl Into<String>) -> Self

Add a dark mode hover background color
Source§

fn dark_hover_text(self, color: impl Into<String>) -> Self

Add a dark mode hover text color
Source§

fn dark_focus_bg(self, color: impl Into<String>) -> Self

Add a dark mode focus background color
Source§

fn dark_focus_text(self, color: impl Into<String>) -> Self

Add a dark mode focus text color
Source§

impl Debug for ClassBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ClassBuilder

Source§

fn default() -> Self

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

impl DisplayUtilities for ClassBuilder

Source§

fn display(self, display: Display) -> Self

Source§

impl DivideUtilities for ClassBuilder

Source§

fn divide_width(self, width: DivideWidth) -> Self

Source§

fn divide_width_x(self, width: DivideWidth) -> Self

Source§

fn divide_width_y(self, width: DivideWidth) -> Self

Source§

fn divide_style(self, style: DivideStyle) -> Self

Source§

impl DropShadowUtilities for ClassBuilder

Source§

fn drop_shadow(self, shadow: DropShadow) -> Self

Source§

fn drop_shadow_red(self) -> Self

Source§

fn drop_shadow_blue(self) -> Self

Source§

fn drop_shadow_green(self) -> Self

Source§

fn drop_shadow_yellow(self) -> Self

Source§

fn drop_shadow_purple(self) -> Self

Source§

fn drop_shadow_pink(self) -> Self

Source§

fn drop_shadow_orange(self) -> Self

Source§

fn drop_shadow_indigo(self) -> Self

Source§

fn drop_shadow_cyan(self) -> Self

Source§

fn drop_shadow_teal(self) -> Self

Source§

fn drop_shadow_lime(self) -> Self

Source§

fn drop_shadow_emerald(self) -> Self

Source§

fn drop_shadow_rose(self) -> Self

Source§

fn drop_shadow_violet(self) -> Self

Source§

fn drop_shadow_fuchsia(self) -> Self

Source§

fn drop_shadow_sky(self) -> Self

Source§

fn drop_shadow_amber(self) -> Self

Source§

fn drop_shadow_stone(self) -> Self

Source§

fn drop_shadow_neutral(self) -> Self

Source§

fn drop_shadow_zinc(self) -> Self

Source§

fn drop_shadow_gray(self) -> Self

Source§

fn drop_shadow_slate(self) -> Self

Source§

impl EnhancedBackdropFilterUtilities for ClassBuilder

Source§

fn backdrop_blur_none(self) -> Self

Set backdrop blur to none
Source§

fn backdrop_blur_sm(self) -> Self

Set backdrop blur to small
Source§

fn backdrop_blur(self) -> Self

Set backdrop blur to default
Source§

fn backdrop_blur_md(self) -> Self

Set backdrop blur to medium
Source§

fn backdrop_blur_lg(self) -> Self

Set backdrop blur to large
Source§

fn backdrop_blur_xl(self) -> Self

Set backdrop blur to extra large
Source§

fn backdrop_blur_2xl(self) -> Self

Set backdrop blur to 2XL
Source§

fn backdrop_blur_3xl(self) -> Self

Set backdrop blur to 3XL
Source§

fn backdrop_blur_custom(self, blur: EnhancedBackdropBlur) -> Self

Set backdrop blur with custom value
Source§

impl FlexBasisUtilities for ClassBuilder

Source§

fn flex_basis(self, basis: FlexBasis) -> Self

Source§

impl FlexDirectionUtilities for ClassBuilder

Source§

fn flex_direction(self, direction: FlexDirection) -> Self

Source§

impl FlexGrowUtilities for ClassBuilder

Source§

fn flex_grow(self, grow: FlexGrow) -> Self

Source§

impl FlexShrinkUtilities for ClassBuilder

Source§

fn flex_shrink(self, shrink: FlexShrink) -> Self

Source§

impl FlexUtilities for ClassBuilder

Source§

fn flex(self, flex: Flex) -> Self

Source§

impl FlexWrapUtilities for ClassBuilder

Source§

fn flex_wrap(self, wrap: FlexWrap) -> Self

Source§

impl FloatUtilities for ClassBuilder

Source§

fn float(self, float: Float) -> Self

Source§

impl FontFamilyUtilities for ClassBuilder

Source§

fn font_family(self, family: FontFamily) -> Self

Set font family
Source§

impl FontSizeUtilities for ClassBuilder

Source§

fn font_size(self, size: FontSize) -> Self

Set font size
Source§

impl FontWeightUtilities for ClassBuilder

Source§

fn font_weight(self, weight: FontWeight) -> Self

Set font weight
Source§

impl GapUtilities for ClassBuilder

Source§

fn gap(self, value: SpacingValue) -> Self

Add gap between grid/flex items
Source§

fn gap_x(self, value: SpacingValue) -> Self

Add horizontal gap between grid/flex items
Source§

fn gap_y(self, value: SpacingValue) -> Self

Add vertical gap between grid/flex items
Source§

impl GradientDirectionUtilities for ClassBuilder

Source§

fn gradient_direction(self, direction: GradientDirection) -> Self

Source§

impl GradientStopUtilities for ClassBuilder

Source§

fn gradient_from(self, color: Color) -> Self

Source§

fn gradient_via(self, color: Color) -> Self

Source§

fn gradient_to(self, color: Color) -> Self

Source§

impl GradientUtilities for ClassBuilder

Source§

fn gradient_direction(self, direction: GradientDirection) -> Self

Add a gradient direction
Source§

fn gradient_from(self, color: Color) -> Self

Add a gradient from stop
Source§

fn gradient_via(self, color: Color) -> Self

Add a gradient via stop
Source§

fn gradient_to(self, color: Color) -> Self

Add a gradient to stop
Source§

fn gradient(self, gradient: Gradient) -> Self

Add a complete gradient
Source§

fn gradient_simple( self, direction: GradientDirection, from: Color, to: Color, ) -> Self

Add a simple two-color gradient
Source§

fn gradient_three( self, direction: GradientDirection, from: Color, via: Color, to: Color, ) -> Self

Add a three-color gradient
Source§

fn gradient_from_names( self, direction: GradientDirection, from: &str, to: &str, ) -> Self

Add a gradient from color names
Source§

fn gradient_from_names_with_via( self, direction: GradientDirection, from: &str, via: &str, to: &str, ) -> Self

Add a gradient from color names with via
Source§

impl GrayscaleUtilities for ClassBuilder

Source§

fn grayscale(self, grayscale: Grayscale) -> Self

Source§

impl GridAutoColumnsUtilities for ClassBuilder

Source§

fn grid_auto_columns(self, columns: GridAutoColumns) -> Self

Source§

impl GridAutoFlowUtilities for ClassBuilder

Source§

fn grid_auto_flow(self, flow: GridAutoFlow) -> Self

Source§

impl GridAutoRowsUtilities for ClassBuilder

Source§

fn grid_auto_rows(self, rows: GridAutoRows) -> Self

Source§

impl GridColumnEndUtilities for ClassBuilder

Source§

fn grid_column_end(self, end: GridColumnEnd) -> Self

Source§

impl GridColumnSpanUtilities for ClassBuilder

Source§

impl GridColumnStartUtilities for ClassBuilder

Source§

impl GridRowEndUtilities for ClassBuilder

Source§

fn grid_row_end(self, end: GridRowEnd) -> Self

Source§

impl GridRowSpanUtilities for ClassBuilder

Source§

fn grid_row_span(self, span: GridRowSpan) -> Self

Source§

impl GridRowStartUtilities for ClassBuilder

Source§

fn grid_row_start(self, start: GridRowStart) -> Self

Source§

impl GridTemplateColumnsUtilities for ClassBuilder

Source§

impl GridTemplateRowsUtilities for ClassBuilder

Source§

impl HeightUtilities for ClassBuilder

Source§

fn height(self, value: SizingValue) -> Self

Set height
Source§

fn min_height(self, value: SizingValue) -> Self

Set min-height
Source§

fn max_height(self, value: SizingValue) -> Self

Set max-height
Source§

impl HueRotateUtilities for ClassBuilder

Source§

fn hue_rotate(self, hue_rotate: HueRotate) -> Self

Source§

impl InvertUtilities for ClassBuilder

Source§

fn invert(self, invert: Invert) -> Self

Source§

impl IsolationUtilities for ClassBuilder

Source§

fn isolation(self, isolation: Isolation) -> Self

Source§

impl JustifyContentUtilities for ClassBuilder

Source§

fn justify_content(self, justify: JustifyContent) -> Self

Source§

impl LetterSpacingUtilities for ClassBuilder

Source§

fn letter_spacing(self, spacing: LetterSpacing) -> Self

Set letter spacing
Source§

impl LineHeightUtilities for ClassBuilder

Source§

fn line_height(self, height: LineHeight) -> Self

Set line height
Source§

impl LogicalPropertiesConvenience for ClassBuilder

Source§

fn margin_inline_start_4(self) -> Self

Set margin inline start to 4
Source§

fn margin_inline_end_4(self) -> Self

Set margin inline end to 4
Source§

fn padding_inline_start_2(self) -> Self

Set padding inline start to 2
Source§

fn padding_inline_end_2(self) -> Self

Set padding inline end to 2
Source§

fn border_inline_start_1(self) -> Self

Set border inline start to 1
Source§

fn border_inline_end_1(self) -> Self

Set border inline end to 1
Source§

fn padding_inline_start_4(self) -> Self

Set padding inline start to 4
Source§

fn padding_inline_end_4(self) -> Self

Set padding inline end to 4
Source§

fn border_inline_start_2(self) -> Self

Set border inline start to 2
Source§

fn border_inline_end_2(self) -> Self

Set border inline end to 2
Source§

impl LogicalPropertiesUtilities for ClassBuilder

Source§

fn margin_inline_start(self, value: SpacingValue) -> Self

Set margin inline start
Source§

fn margin_inline_end(self, value: SpacingValue) -> Self

Set margin inline end
Source§

fn margin_block_start(self, value: SpacingValue) -> Self

Set margin block start
Source§

fn margin_block_end(self, value: SpacingValue) -> Self

Set margin block end
Source§

fn padding_inline_start(self, value: SpacingValue) -> Self

Set padding inline start
Source§

fn padding_inline_end(self, value: SpacingValue) -> Self

Set padding inline end
Source§

fn padding_block_start(self, value: SpacingValue) -> Self

Set padding block start
Source§

fn padding_block_end(self, value: SpacingValue) -> Self

Set padding block end
Source§

fn border_inline_start(self, value: SpacingValue) -> Self

Set border inline start
Source§

fn border_inline_end(self, value: SpacingValue) -> Self

Set border inline end
Source§

fn border_block_start(self, value: SpacingValue) -> Self

Set border block start
Source§

fn border_block_end(self, value: SpacingValue) -> Self

Set border block end
Source§

fn inset_inline_start(self, value: SpacingValue) -> Self

Set inset inline start
Source§

fn inset_inline_end(self, value: SpacingValue) -> Self

Set inset inline end
Source§

fn inset_block_start(self, value: SpacingValue) -> Self

Set inset block start
Source§

fn inset_block_end(self, value: SpacingValue) -> Self

Set inset block end
Source§

impl MarginUtilities for ClassBuilder

Source§

fn margin(self, value: SpacingValue) -> Self

Add margin to all sides
Source§

fn margin_x(self, value: SpacingValue) -> Self

Add horizontal margin (left and right)
Source§

fn margin_y(self, value: SpacingValue) -> Self

Add vertical margin (top and bottom)
Source§

fn margin_top(self, value: SpacingValue) -> Self

Add top margin
Source§

fn margin_right(self, value: SpacingValue) -> Self

Add right margin
Source§

fn margin_bottom(self, value: SpacingValue) -> Self

Add bottom margin
Source§

fn margin_left(self, value: SpacingValue) -> Self

Add left margin
Source§

fn margin_start(self, value: SpacingValue) -> Self

Add margin to start (left in LTR, right in RTL)
Source§

fn margin_end(self, value: SpacingValue) -> Self

Add margin to end (right in LTR, left in RTL)
Source§

fn margin_negative(self, value: SpacingValue) -> Self

Add negative margin to all sides
Source§

fn margin_x_negative(self, value: SpacingValue) -> Self

Add negative horizontal margin
Source§

fn margin_y_negative(self, value: SpacingValue) -> Self

Add negative vertical margin
Source§

fn margin_top_negative(self, value: SpacingValue) -> Self

Add negative top margin
Source§

fn margin_right_negative(self, value: SpacingValue) -> Self

Add negative right margin
Source§

fn margin_bottom_negative(self, value: SpacingValue) -> Self

Add negative bottom margin
Source§

fn margin_left_negative(self, value: SpacingValue) -> Self

Add negative left margin
Source§

impl MaskUtilities for ClassBuilder

Source§

fn mask_none(self) -> Self

Set mask to none
Source§

fn mask_alpha(self) -> Self

Set mask to alpha
Source§

fn mask_luminance(self) -> Self

Set mask to luminance
Source§

fn mask_repeat_none(self) -> Self

Set mask repeat to none
Source§

fn mask_repeat(self) -> Self

Set mask repeat to default
Source§

fn mask_repeat_x(self) -> Self

Set mask repeat to X
Source§

fn mask_repeat_y(self) -> Self

Set mask repeat to Y
Source§

fn mask_repeat_round(self) -> Self

Set mask repeat to round
Source§

fn mask_repeat_space(self) -> Self

Set mask repeat to space
Source§

fn mask_size_auto(self) -> Self

Set mask size to auto
Source§

fn mask_size_cover(self) -> Self

Set mask size to cover
Source§

fn mask_size_contain(self) -> Self

Set mask size to contain
Source§

fn mask_center(self) -> Self

Set mask position to center
Source§

fn mask_top(self) -> Self

Set mask position to top
Source§

fn mask_bottom(self) -> Self

Set mask position to bottom
Source§

fn mask_left(self) -> Self

Set mask position to left
Source§

fn mask_right(self) -> Self

Set mask position to right
Source§

fn mask_top_left(self) -> Self

Set mask position to top left
Source§

fn mask_top_right(self) -> Self

Set mask position to top right
Source§

fn mask_bottom_left(self) -> Self

Set mask position to bottom left
Source§

fn mask_bottom_right(self) -> Self

Set mask position to bottom right
Source§

fn mask_clip_border(self) -> Self

Set mask clip to border
Source§

fn mask_clip_padding(self) -> Self

Set mask clip to padding
Source§

fn mask_clip_content(self) -> Self

Set mask clip to content
Source§

fn mask_clip_text(self) -> Self

Set mask clip to text
Source§

fn mask_origin_border(self) -> Self

Set mask origin to border
Source§

fn mask_origin_padding(self) -> Self

Set mask origin to padding
Source§

fn mask_origin_content(self) -> Self

Set mask origin to content
Source§

impl MixBlendModeUtilities for ClassBuilder

Source§

fn mix_blend_mode(self, mode: MixBlendMode) -> Self

Source§

impl ModernCssFeaturesUtilities for ClassBuilder

Source§

fn layer_base(self) -> Self

Set cascade layer to base
Source§

fn layer_components(self) -> Self

Set cascade layer to components
Source§

fn layer_utilities(self) -> Self

Set cascade layer to utilities
Source§

fn layer_custom(self, name: &str) -> Self

Set cascade layer with custom name
Source§

fn layer_custom_value(self, layer: CascadeLayer) -> Self

Set cascade layer with custom value
Source§

fn custom_property(self, name: &str, value: &str) -> Self

Set custom property with name and value
Source§

fn custom_property_value(self, property: CustomProperty) -> Self

Set custom property with custom value
Source§

fn container_small(self) -> Self

Set container query to small
Source§

fn container_medium(self) -> Self

Set container query to medium
Source§

fn container_large(self) -> Self

Set container query to large
Source§

fn container_extra_large(self) -> Self

Set container query to extra large
Source§

fn container_custom(self, size: &str) -> Self

Set container query with custom size
Source§

fn container_custom_value(self, query: ModernContainerQuery) -> Self

Set container query with custom value
Source§

impl MotionVariantUtilities for ClassBuilder

Source§

fn motion_reduce(self) -> Self

Add motion reduce variant
Source§

fn motion_safe(self) -> Self

Add motion safe variant
Source§

impl ObjectFitUtilities for ClassBuilder

Source§

fn object_fit(self, object_fit: ObjectFit) -> Self

Source§

impl ObjectPositionUtilities for ClassBuilder

Source§

fn object_position(self, object_position: ObjectPosition) -> Self

Source§

impl OpacityUtilities for ClassBuilder

Source§

fn opacity(self, opacity: Opacity) -> Self

Source§

impl OrderUtilities for ClassBuilder

Source§

fn order(self, order: Order) -> Self

Source§

impl OutlineUtilities for ClassBuilder

Source§

fn outline_width(self, width: OutlineWidth) -> Self

Source§

fn outline_style(self, style: OutlineStyle) -> Self

Source§

fn outline_offset(self, offset: OutlineOffset) -> Self

Source§

impl OverflowUtilities for ClassBuilder

Source§

fn overflow(self, overflow: Overflow) -> Self

Source§

fn overflow_x(self, overflow: Overflow) -> Self

Source§

fn overflow_y(self, overflow: Overflow) -> Self

Source§

impl OverflowWrapUtilities for ClassBuilder

Source§

fn overflow_wrap(self, wrap_type: OverflowWrap) -> Self

Set overflow wrap
Source§

impl OverscrollBehaviorUtilities for ClassBuilder

Source§

impl PaddingUtilities for ClassBuilder

Source§

fn padding(self, value: SpacingValue) -> Self

Add padding to all sides
Source§

fn padding_x(self, value: SpacingValue) -> Self

Add horizontal padding (left and right)
Source§

fn padding_y(self, value: SpacingValue) -> Self

Add vertical padding (top and bottom)
Source§

fn padding_top(self, value: SpacingValue) -> Self

Add top padding
Source§

fn padding_right(self, value: SpacingValue) -> Self

Add right padding
Source§

fn padding_bottom(self, value: SpacingValue) -> Self

Add bottom padding
Source§

fn padding_left(self, value: SpacingValue) -> Self

Add left padding
Source§

fn padding_start(self, value: SpacingValue) -> Self

Add padding to start (left in LTR, right in RTL)
Source§

fn padding_end(self, value: SpacingValue) -> Self

Add padding to end (right in LTR, left in RTL)
Source§

impl PointerEventsUtilities for ClassBuilder

Source§

fn pointer_events(self, events: PointerEvents) -> Self

Source§

impl PointerVariantUtilities for ClassBuilder

Source§

fn pointer_coarse(self) -> Self

Add pointer coarse variant
Source§

fn pointer_fine(self) -> Self

Add pointer fine variant
Source§

fn any_pointer_coarse(self) -> Self

Add any pointer coarse variant
Source§

fn any_pointer_fine(self) -> Self

Add any pointer fine variant
Source§

impl PositionUtilities for ClassBuilder

Source§

fn position(self, position: Position) -> Self

Source§

impl PositioningUtilities for ClassBuilder

Source§

fn top(self, value: SpacingValue) -> Self

Add top positioning
Source§

fn right(self, value: SpacingValue) -> Self

Add right positioning
Source§

fn bottom(self, value: SpacingValue) -> Self

Add bottom positioning
Source§

fn left(self, value: SpacingValue) -> Self

Add left positioning
Source§

fn inset(self, value: SpacingValue) -> Self

Add inset positioning (all sides)
Source§

fn inset_x(self, value: SpacingValue) -> Self

Add horizontal inset positioning
Source§

fn inset_y(self, value: SpacingValue) -> Self

Add vertical inset positioning
Source§

impl ResizeUtilities for ClassBuilder

Source§

fn resize(self, resize: Resize) -> Self

Source§

impl RingColorUtilities for ClassBuilder

Source§

fn ring_color(self, color: Color) -> Self

Source§

fn ring_transparent(self) -> Self

Source§

fn ring_current(self) -> Self

Source§

fn ring_black(self) -> Self

Source§

fn ring_white(self) -> Self

Source§

impl RingUtilities for ClassBuilder

Source§

fn ring_width(self, width: RingWidth) -> Self

Source§

fn ring_offset_width(self, width: RingOffsetWidth) -> Self

Source§

impl RotateUtilities for ClassBuilder

Source§

fn rotate(self, rotate: Rotate) -> Self

Source§

impl SafeAlignmentUtilities for ClassBuilder

Source§

fn safe_top(self, value: SpacingValue) -> Self

Add safe top alignment with spacing value
Source§

fn safe_bottom(self, value: SpacingValue) -> Self

Add safe bottom alignment with spacing value
Source§

fn safe_left(self, value: SpacingValue) -> Self

Add safe left alignment with spacing value
Source§

fn safe_right(self, value: SpacingValue) -> Self

Add safe right alignment with spacing value
Source§

impl SaturateUtilities for ClassBuilder

Source§

fn saturate(self, saturate: Saturate) -> Self

Source§

impl ScaleUtilities for ClassBuilder

Source§

fn scale(self, scale: Scale) -> Self

Source§

fn scale_x(self, scale: Scale) -> Self

Source§

fn scale_y(self, scale: Scale) -> Self

Source§

impl ScrollBehaviorUtilities for ClassBuilder

Source§

fn scroll_behavior(self, behavior: ScrollBehavior) -> Self

Source§

impl ScrollSnapAlignUtilities for ClassBuilder

Source§

impl ScrollSnapTypeUtilities for ClassBuilder

Source§

fn scroll_snap_type(self, snap_type: ScrollSnapType) -> Self

Source§

impl SepiaUtilities for ClassBuilder

Source§

fn sepia(self, sepia: Sepia) -> Self

Source§

impl SkewUtilities for ClassBuilder

Source§

fn skew_x(self, skew: Skew) -> Self

Source§

fn skew_y(self, skew: Skew) -> Self

Source§

impl SpaceBetweenUtilities for ClassBuilder

Source§

fn space_x(self, value: SpacingValue) -> Self

Add horizontal space between child elements
Source§

fn space_y(self, value: SpacingValue) -> Self

Add vertical space between child elements
Source§

fn space_x_reverse(self) -> Self

Reverse horizontal space between child elements
Source§

fn space_y_reverse(self) -> Self

Reverse vertical space between child elements
Source§

impl SpacingDivideUtilities for ClassBuilder

Source§

fn divide_x(self, value: SpacingValue) -> Self

Add horizontal divider between child elements
Source§

fn divide_y(self, value: SpacingValue) -> Self

Add vertical divider between child elements
Source§

fn divide_x_reverse(self) -> Self

Reverse horizontal divider between child elements
Source§

fn divide_y_reverse(self) -> Self

Reverse vertical divider between child elements
Source§

impl TextAlignUtilities for ClassBuilder

Source§

fn text_align(self, align: TextAlign) -> Self

Set text alignment
Source§

impl TextColorUtilities for ClassBuilder

Source§

fn text_color(self, color: Color) -> Self

Source§

fn text_transparent(self) -> Self

Source§

fn text_current(self) -> Self

Source§

fn text_black(self) -> Self

Source§

fn text_white(self) -> Self

Source§

impl TextDecorationStyleUtilities for ClassBuilder

Source§

fn text_decoration_style(self, style: TextDecorationStyle) -> Self

Set text decoration style
Source§

impl TextDecorationThicknessUtilities for ClassBuilder

Source§

fn text_decoration_thickness(self, thickness: TextDecorationThickness) -> Self

Set text decoration thickness
Source§

impl TextDecorationUtilities for ClassBuilder

Source§

fn text_decoration(self, decoration: TextDecoration) -> Self

Set text decoration
Source§

impl TextOverflowUtilities for ClassBuilder

Source§

fn text_overflow(self, overflow: TextOverflow) -> Self

Set text overflow
Source§

impl TextShadowUtilities for ClassBuilder

Source§

fn text_shadow_none(self) -> Self

Set text shadow to none
Source§

fn text_shadow_sm(self) -> Self

Set text shadow to small
Source§

fn text_shadow_md(self) -> Self

Set text shadow to medium
Source§

fn text_shadow(self) -> Self

Set text shadow to default
Source§

fn text_shadow_lg(self) -> Self

Set text shadow to large
Source§

fn text_shadow_xl(self) -> Self

Set text shadow to extra large
Source§

fn text_shadow_2xl(self) -> Self

Set text shadow to 2XL
Source§

fn text_shadow_inner(self) -> Self

Set text shadow to inner
Source§

fn text_shadow_custom(self, shadow: TextShadow) -> Self

Set text shadow with custom value
Source§

impl TextTransformUtilities for ClassBuilder

Source§

fn text_transform(self, transform: TextTransform) -> Self

Set text transform
Source§

impl TextUnderlineOffsetUtilities for ClassBuilder

Source§

fn text_underline_offset(self, offset: TextUnderlineOffset) -> Self

Set text underline offset
Source§

impl TouchActionUtilities for ClassBuilder

Source§

fn touch_action(self, action: TouchAction) -> Self

Source§

impl TransformOriginUtilities for ClassBuilder

Source§

fn transform_origin(self, origin: TransformOrigin) -> Self

Source§

impl TransitionDelayUtilities for ClassBuilder

Source§

fn transition_delay(self, delay: TransitionDelay) -> Self

Source§

impl TransitionDurationUtilities for ClassBuilder

Source§

impl TransitionPropertyUtilities for ClassBuilder

Source§

impl TransitionTimingFunctionUtilities for ClassBuilder

Source§

impl TranslateUtilities for ClassBuilder

Source§

fn translate_x(self, translate: Translate) -> Self

Source§

fn translate_y(self, translate: Translate) -> Self

Source§

impl UserSelectUtilities for ClassBuilder

Source§

fn user_select(self, select: UserSelect) -> Self

Source§

impl VisibilityUtilities for ClassBuilder

Source§

fn visibility(self, visibility: Visibility) -> Self

Source§

impl WhiteSpaceUtilities for ClassBuilder

Source§

fn white_space(self, space: WhiteSpace) -> Self

Set white space
Source§

impl WidthUtilities for ClassBuilder

Source§

fn width(self, value: SizingValue) -> Self

Set width
Source§

fn min_width(self, value: SizingValue) -> Self

Set min-width
Source§

fn max_width(self, value: SizingValue) -> Self

Set max-width
Source§

impl WillChangeUtilities for ClassBuilder

Source§

fn will_change(self, change: WillChange) -> Self

Source§

impl WordBreakUtilities for ClassBuilder

Source§

fn word_break(self, break_type: WordBreak) -> Self

Set word break
Source§

impl ZIndexUtilities for ClassBuilder

Source§

fn z_index(self, z_index: ZIndex) -> Self

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.