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
- 6d 16h
- Merged PRs (30d)
- 1
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
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
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Hex logo/sticker?Open
Difficulty 5/5 Over a week Newbie friendliness 35/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 85/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Open-Systems-Pharmacology/OSPSuite.ParameterIdentification#308 ·
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
datacarpentry/semester-biology#1266 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
REditorSupport/vscode-R#1785 · 1 comment ·
Maintainers usually reply within 1 day