You have reached the German community here but we can chat in English too, that’s no problem!
To change the text color to white for the selected and unselected state of the variant option buttons in the Dawn theme, you’ll need to modify the CSS to target the label text specifically. To change both the background color of the buttons and the text color to white maybe try try something like:
/* Changes the background color of the unselected variant buttons */
.product-form__input input[type=radio] + label {
background-color: #74512D !important; /* Brown background */
color: white !important; /* White text */
}
/* Changes the background color of the selected variant button */
.product-form__input input[type=radio]:checked + label {
background-color: #74512D !important; /* Brown background */
color: white !important; /* White text */
}
/* Optional: Change the color of the border if needed */
.product-form__input input[type=radio] + label {
border-color: #74512D !important; /* Brown border */
}
Here’s what each part does:
The .product-form__input input[type=radio] + label selector changes the styles for all variant labels next to a radio input.
The .product-form__input input[type=radio]:checked + label selector specifically targets the labels next to checked (selected) radio inputs.
The background-color: #74512D !important; line changes the background color of the buttons to a brown color.
The color: white !important; line changes the text color of the labels to white.
The border-color: #74512D !important; line is optional and can be used to change the border color of the buttons if your theme has borders for these elements.
This should ensure that your custom styles override the default theme styles.
If it doesn’t work in the theme css editor then yes, however, it’s recommendable to not change the theme code itself but use the css editor as much as possible.