CSS property 'background' with 'background-clip: text'
See original GitHub issueProblem
In Dynamic theme, text with gradient (using background: linear-gradient()
and background-clip: text
) is not readable.
Possible cause/solution
I do not fully understand how Dark Reader works but maybe, in Dynamic theme, Dark Reader treats CSS property background
the same whether or not it is used with CSS property background-clip: text;
. This results in making the color of text darker rather than lighter.
Treating CSS property background
with background-clip: text
in the same way as CSS property color
may help solve the problem.
Example
I am working on a project named Softorage. You may visit it with Dark Reader set to on
(Dynamic theme), to see the issue in action.
Thanks for this awesome extension!
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
background-clip - CSS: Cascading Style Sheets | MDN
The background-clip CSS property sets whether an element's background extends underneath its border box, padding box, or content box.
Read more >CSS background-clip text | Michael Gearon
The “background-clip: text” is supported in all main browsers with the Webkit prefix, it allows a background image to be clipped by a...
Read more >background-clip | CSS-Tricks
background -clip lets you control how far a background image or color extends beyond an element's padding or content.
Read more >Background-clip: text | Can I use... Support tables for HTML5 ...
Non-standard method of clipping a background image to the foreground text. Usage % of. all users, all tracked, tracked desktop, tracked mobile.
Read more >Funky text backgrounds with background-clip CSS - Rob Kendal
The background-clip is a CSS property that determines whether an element's background is visible/shows underneath the content's border box, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve created a fix for this #2336
nvm figured it out
After taking a good look at this documentation from Mozilla background-clip is just being used to define/extend where hte background-color should be as color: don’t support linear gradient. It use background-clip: text so the background-color is being used as the color.
I’m just doing my job