Tweaking `cli::col_h1()` styling
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- r
- Domain
- cli, documentation
Research direction
Start with the cli::cli_h1() and themes reference examples, then compare the documented behavior with cli::rule(left = "aa", right = "a", col = "yellow"). Clarify how the id and class arguments support custom theming, add examples for the requested styling, and ensure the documentation explains the expected output.
Written by the indexing model from the issue text.
Description
I am wondering if it was possible to make this output with cli::cli_h1()
cli::cli_h1(cli::col_yellow("GP goodpractice"))
Almost does it, but it doesn't affect the line.
I tried playing with https://cli.r-lib.org/reference/themes.html#examples, but it doesn't really work.
I am wondering if docs could be enhanced generally for the id and class arguments. More examples on how to create custom theming of elements would be great!
I'd be happy to make some doc edits, but I can't figure out how things work at the moment..
Using cli::rule(left = "aa", right = "a", col = "yellow") works
- Dominant language
- R
- Stars
- 726
- Forks
- 94
- Avg merge
- 3h 35m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from r-lib/cli
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
feature
Difficulty 3/5 1-2 days Newbie friendliness 68/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
r-lib/pkgdepends#485 · 3 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
beginners blocker
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enviPathR OpenBuild Error Build OK Build Warning policies-accepted pre-review precheck-passed
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Bioconductor/BiocContributions#207 · 6 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
datacarpentry/semester-biology#1255 ·