pub struct Theme<'a> { /* private fields */ }Expand description
A single theme within a Registry: a CSS file that becomes a project’s
Tailwind input, copied into the project at init time.
Implementations§
Source§impl Theme<'_>
impl Theme<'_>
Sourcepub fn file_name(&self) -> &'static str
pub fn file_name(&self) -> &'static str
The file name written into the user’s project. Every theme installs to
the same styles.css (it becomes the project’s Tailwind input), rather
than carrying its registry source name (e.g. neutral.css) into the project.
Auto Trait Implementations§
impl<'a> Freeze for Theme<'a>
impl<'a> RefUnwindSafe for Theme<'a>
impl<'a> Send for Theme<'a>
impl<'a> Sync for Theme<'a>
impl<'a> Unpin for Theme<'a>
impl<'a> UnsafeUnpin for Theme<'a>
impl<'a> UnwindSafe for Theme<'a>
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
Mutably borrows from an owned value. Read more