r-lib / cli

Tools for making beautiful & useful command line interfaces
https://cli.r-lib.org/
Other
644 stars 70 forks source link

FR: Add subtle style inline markup #656

Open olivroy opened 10 months ago

olivroy commented 10 months ago

I think it would be useful. as an antonym to .emph

pillar::style_subtle() as an inspiration?

I did a bit of investigation and rlang use silver() for printing see last trace. and usethis uses silver by default for their code output. https://github.com/r-lib/rlang/pull/1400/files

cli::cli_text("{.subtle code}")
pillar::style_subtle("code")
 "\033[38;5;246mcode\033[39m"