pub struct PreflightSystem {Show 13 fields
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 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: 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.
specific_extras: bool
Includes 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: bool
Includes 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: String
User-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