How do handle dynamic border properties?

I decided to try out a dark/light setting by following this guide:

My question is: Using the method above, how can I ensure a border-width remains 1px while having the color variable dynamic?

Add + solid #color
This way it is somwthing like (1px solid red)

1 Like