pub struct PreflightSystem {
pub disable: bool,
pub global_reset: bool,
pub html_base: bool,
pub unstyle_headings: bool,
pub unstyle_links: bool,
pub unstyle_lists: bool,
pub block_level_media: bool,
pub reset_tables: bool,
pub reset_forms: bool,
pub hidden_attribute: bool,
pub custom: String,
}
Expand description
Tailwind CSS Preflight v4 Style System https://tailwindcss.com/docs/preflight
- minor typographic and element styles not included
Fields§
§disable: bool
Disables all preflight styles if set to true.
global_reset: bool
Resets box-sizing, margins, padding, and borders for all elements.
html_base: bool
Applies consistent line-height, font-family, and other root-level styles.
unstyle_headings: bool
Unstyles headings (h1
-h6
) to inherit font size and weight.
unstyle_links: bool
Resets link colors and text decoration to inherit from their parent.
unstyle_lists: bool
Removes default list styles (list-style: none
) and resets margin/padding.
block_level_media: bool
Makes images and other replaced elements display: block
.
reset_tables: bool
Resets table styles for border-collapse and text-indent.
reset_forms: bool
Applies a comprehensive reset to form elements like buttons, inputs, and textareas.
Prevents hidden
elements from being displayed.
custom: String
Custom CSS to be prepended to the preflight styles.
Trait Implementations§
Source§impl Clone for PreflightSystem
impl Clone for PreflightSystem
Source§fn clone(&self) -> PreflightSystem
fn clone(&self) -> PreflightSystem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PreflightSystem
impl Debug for PreflightSystem
Source§impl Default for PreflightSystem
impl Default for PreflightSystem
Auto Trait Implementations§
impl Freeze for PreflightSystem
impl RefUnwindSafe for PreflightSystem
impl Send for PreflightSystem
impl Sync for PreflightSystem
impl Unpin for PreflightSystem
impl UnwindSafe for PreflightSystem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more