Struct UnusedThemeToken Copy item path Source pub struct UnusedThemeToken {
pub token: String ,
pub namespace: String ,
pub path: String ,
pub line: u32 ,
pub actions: Vec <CssCandidateAction >,
}Expand description A Tailwind v4 @theme design token defined in a stylesheet whose generated
utility, var() reads, and arbitrary-value references appear nowhere in the
project: a dead design token (the unused-export of the token era). A
candidate, never a gated finding: the token could be consumed by a Tailwind
plugin, a published design-system surface, or a non-CSS-aware build step the
scan cannot see (those cases are gated out before this is emitted).
The full custom property as authored, including the -- prefix
(--color-brand).
The Tailwind v4 theme namespace the token belongs to (color, radius,
font-weight, breakpoint, …).
Project-root-relative, forward-slash path to the declaring stylesheet.
1-based line of the token’s definition inside the @theme block.
Read-only verification step(s) before removing. Always at least one entry,
so consumers can iterate actions uniformly across every finding type.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Deserialize this value from the given Serde deserializer.
Read more Serialize this value into the given Serde serializer.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Converts to this type from the input type within the given allocator.
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
Converts this type into the (usually inferred) input type within the given allocator.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer.
Read more Mutably dereferences the given pointer.
Read more Drops the object pointed to by the given pointer.
Read more The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more 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.