pub struct PreflightSystem {Show 14 fields
pub disable: bool,
pub default_vars: 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 specific_extras: bool,
pub compatibility_fixes: bool,
pub custom: String,
}Expand description
Tailwind CSS Preflight v4 Style System https://tailwindcss.com/docs/preflight https://github.com/tailwindlabs/tailwindcss/blob/88b9f15b65588a87c5b6b13316530b4aecbc1b0b/packages/tailwindcss/preflight.css
Fields§
§disable: boolDisables all preflight styles if set to true.
default_vars: boolEnables default CSS variables like –default-transition-duration: 150ms;
global_reset: boolResets box-sizing, margins, padding, and borders for all elements.
html_base: boolApplies consistent line-height, font-family, and other root-level styles.
unstyle_headings: boolUnstyles headings (h1-h6) to inherit font size and weight.
unstyle_links: boolResets link colors and text decoration to inherit from their parent.
unstyle_lists: boolRemoves default list styles (list-style: none) and resets margin/padding.
block_level_media: boolMakes images and other replaced elements display: block.
reset_tables: boolResets table styles for border-collapse and text-indent.
reset_forms: boolApplies a comprehensive reset to form elements like buttons, inputs, and textareas.
Prevents hidden elements from being displayed.
specific_extras: boolIncludes minor typographic styles and element-specific enhancements.
This provides sensible defaults for elements like <strong>, <code>, <abbr>,
and fixes issues such as <sub> and <sup> affecting line height.
compatibility_fixes: boolIncludes a collection of hyper-specific browser compatibility fixes. This is primarily focused on normalizing the appearance of complex form controls, addressing quirks in WebKit date pickers, search inputs, number input buttons, and Firefox’s focus and invalid input styles.
custom: StringUser-defined custom CSS to be prepended to the preflight styles.
Implementations§
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