you can also create a css file and load it at the start of your project. Then you can use the exact css code from other sources. Although css code only works on form controls, not other construct objects like the text object.
see the sample below for how I load css.
https://www.rieperts.com/games/forum/textinput_css.c3p
Thanks for the replies everyone I went for this in the end, it works like a charm! 😊