Is there a way in (pure) CSS to inherit color from earlier defined code?
In this example the inherit listens to the ul li parent and takes the red color, is there a way to take the blue color here?
I tried unset and inherit but both listens to ul li and initial makes the link color black.
Note: I am trying to achieve this without actually adding new classes or hardcoding the # color code.
Example:
ul li {
    color: red;
}
ul li a {
    color: inherit;
}
a {
    color: blue;
}<ul>
    <li>
        <a>Link</a>
    </li>
</ul>I am trying to get the Bootstrap color for a
 
     
    