pub struct TextPalette {
pub accent: Color,
pub info: Color,
pub success: Color,
pub surface: Color,
pub surface_clarification: Color,
pub surface_elevated: Color,
pub surface_overlay: Color,
pub text: Color,
pub text_muted: Color,
pub text_subtle: Color,
pub warning: Color,
pub warning_soft: Color,
}Expand description
Semantic color tokens used by markdown, mermaid, and text renderers.
Fields§
§accent: ColorPrimary accent color used for headings and prompt markers.
info: ColorInformational color used for secondary headings and file lookups.
success: ColorSuccess color used for positive emphasis and stats headings.
surface: ColorSubtle dark surface color used behind prompt transcript blocks.
surface_clarification: ColorSubtle blue-gray surface used behind clarification prompt blocks.
surface_elevated: ColorElevated surface color used for table headers.
surface_overlay: ColorDark surface used behind code blocks.
text: ColorPrimary readable text color.
text_muted: ColorMuted text color used for secondary content and code blocks.
text_subtle: ColorExtra-muted text color used for separators and diagram structure.
warning: ColorWarning color used for inline code and caution emphasis.
warning_soft: ColorSofter warning tone used for clarification headings.
Implementations§
Source§impl TextPalette
impl TextPalette
Trait Implementations§
Source§impl Clone for TextPalette
impl Clone for TextPalette
Source§fn clone(&self) -> TextPalette
fn clone(&self) -> TextPalette
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextPalette
Source§impl Debug for TextPalette
impl Debug for TextPalette
Source§impl Default for TextPalette
impl Default for TextPalette
impl Eq for TextPalette
Source§impl PartialEq for TextPalette
impl PartialEq for TextPalette
impl StructuralPartialEq for TextPalette
Auto Trait Implementations§
impl Freeze for TextPalette
impl RefUnwindSafe for TextPalette
impl Send for TextPalette
impl Sync for TextPalette
impl Unpin for TextPalette
impl UnsafeUnpin for TextPalette
impl UnwindSafe for TextPalette
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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