pub fn charm_default_gradient() -> ((u8, u8, u8), (u8, u8, u8))Expand description
Returns the default gradient color endpoints used by Charm’s Bubble Tea framework.
This function provides the standard gradient colors used in Bubble Tea progress bars and other UI elements, ensuring visual consistency with the original Go implementation. The gradient transitions from a pink-purple color to a bright yellow-green.
§Returns
A tuple containing two RGB color tuples:
- First tuple: Start color
#FF7CCB(255, 124, 203) - pink-purple - Second tuple: End color
#FDFF8C(253, 255, 140) - yellow-green
§Examples
use bubbletea_rs::gradient::charm_default_gradient;
let (start, end) = charm_default_gradient();
assert_eq!(start, (0xFF, 0x7C, 0xCB)); // #FF7CCB
assert_eq!(end, (0xFD, 0xFF, 0x8C)); // #FDFF8C
println!("Start: RGB({}, {}, {})", start.0, start.1, start.2);
println!("End: RGB({}, {}, {})", end.0, end.1, end.2);§See Also
lerp_rgb- For interpolating between these colorsgradient_filled_segment- For creating gradient text using these colors