State in CSS

Hi everyone,
I’m currently getting the state in my body tag. How can I use that now in my CSS? So my current body tag looks like this: and in the CSS I thought I could do something like this: [state=“app.teststate”] but it isn’t working.