I came across this technique recently when I saw it on a website. I copied the bit that was of interest and slightly modified the text. The "before" image is what it looks like with regular white text. The "after" image has the following styling.
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color:transparent;
background-clip: text;
-webkit-text-fill-color: transparent;
color:transparent;