The problem is that your class (form-dark) is not being added onto the form itself. If you inspect the element on your page in Chrome (right-click on the form, Inspect) and find the <form ...> element. You'll see a list of classes there and form-dark is not included.
Your form is being embedded as an iframe which means you can't add custom CSS to your site that can reach inside that iframe to target it, as such the JS is just ignoring your added classes. You either have to:
a) Style it within the Form options within HubSpot, and if that doesn't give you enough flexibility (which it sounds like it doesn't in your use case) then,
b) Click the Set as Raw HTML Form checkbox, which will stop the form rendering inside an iframe and let you style the whole thing with your on-site CSS.
Option b) might not be available to you however; refer to the Form Embed docs -- it's only available on Professional and above (or some legacy basic accounts, which I guess you don't have).
What tier of HubSpot Marketing do you have? What kind of customization options do you have within the form within HubSpot?
Hello @neillebo it is not currently possible to change the form input color within HubSpot.
I was able to find this idea here: Form Input Text Color. However, you can add custom code to your CSS of the page that the form is setting on to implement a color change.
Or change the color options for the buttons within the forms page.
So this is an embeded HubSpot form that you added css to? You shouldn't have to mess with the provided embed code. (but if you do it's JS not HTML) In the form creator tool there is a style tab (Style and Preview and then second tab on left side) that can control things such as text feild display and font color. I would try to set your options there and then replace your embed code with the new one and see if that does it.
The problem is that your class (form-dark) is not being added onto the form itself. If you inspect the element on your page in Chrome (right-click on the form, Inspect) and find the <form ...> element. You'll see a list of classes there and form-dark is not included.
Your form is being embedded as an iframe which means you can't add custom CSS to your site that can reach inside that iframe to target it, as such the JS is just ignoring your added classes. You either have to:
a) Style it within the Form options within HubSpot, and if that doesn't give you enough flexibility (which it sounds like it doesn't in your use case) then,
b) Click the Set as Raw HTML Form checkbox, which will stop the form rendering inside an iframe and let you style the whole thing with your on-site CSS.
Option b) might not be available to you however; refer to the Form Embed docs -- it's only available on Professional and above (or some legacy basic accounts, which I guess you don't have).
What tier of HubSpot Marketing do you have? What kind of customization options do you have within the form within HubSpot?