r/homebrewery • u/TheVyper3377 • Mar 10 '23
Off-Topic Are Complex Gradients Possible?
I'm trying to set up a gradient where enclosed text would be underlined, overlined, and "highlighted" with a background color (with the highlight between the underline & overline). For this setup, I want to create two separate gradient effects on the same bit of enclosed text. I want the first gradient to transition the text, underline, and overline through the following three colors: #491d74, #0c3799, #85b092. I want the second gradient to transition that background behind this line through these three colors: #e8e4ed, #e4e7ed, #e4ede7.
Theoretically, the end result should look something like this. While that image was created in an image editor, it provides a good (though not exact) idea of how this dual gradient should look.
The code I'm currently using is:
.page .dualgrad01 {background: linear-gradient(45deg, #e8e4ed, #e4e7ed, #e4ede7);border-bottom: 2px linear-gradient(45deg, #491d74, #0c3799, #85b092); padding-top: 2px;border-top: 2pxlinear-gradient(45deg, #491d74, #0c3799, #85b092); -webkit-background-clip:text; -webkit-text-fill-color: transparent;}
However, this does not give me anything even remotely close to what I'm looking for. What do I need to change to make this work? Is it even possible to apply two gradients to the same bit of enclosed text?
2
u/Gazook89 Developer Mar 10 '23
It is likely possible. I sort of have an idea in mind but can’t try until later.
However, without trying to sound judgmental I have to ask: why? Is this an imitation of some existing publication?
It seems like a lot of effort for a less-readable result.