There's a dark theme selector you'll need to apply as well. This might vary depending upon your version but is always something like .theme-dark
on the selector you're looking to apply it to. You can usually find it with inspector (here I am manually applying a border to the class in insprector).
Here's an example