feat(theme): Add an initial `rgb` style with nicer colors

This commit is contained in:
Kat Marchán 2021-08-22 10:56:10 -07:00
parent eb4ea3423a
commit 3546dcec98
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
1 changed files with 21 additions and 0 deletions

View File

@ -94,6 +94,27 @@ fn style() -> Style {
}
impl ThemeStyles {
/// Nice RGB colors.
/// Credit: http://terminal.sexy/#FRUV0NDQFRUVrEFCkKlZ9L91ap-1qnWfdbWq0NDQUFBQrEFCkKlZ9L91ap-1qnWfdbWq9fX1
pub fn rgb() -> Self {
Self {
error: style().fg_rgb::<172, 65, 66>(),
warning: style().fg_rgb::<244, 191, 117>(),
advice: style().fg_rgb::<106, 159, 181>(),
code: style().fg_rgb::<170, 117, 159>(),
help: style().fg_rgb::<106, 159, 181>(),
filename: style().fg_rgb::<117, 181, 170>().underline().bold(),
highlights: vec![
style().fg_rgb::<255, 135, 162>(),
style().fg_rgb::<150, 232, 133>(),
style().fg_rgb::<62, 238, 210>(),
style().fg_rgb::<234, 207, 182>(),
style().fg_rgb::<130, 221, 255>(),
style().fg_rgb::<255, 188, 242>(),
],
}
}
/// ANSI color-based styles.
pub fn ansi() -> Self {
Self {