This looks like an automatically generated classname. This will probably break quite fast.
The css selector div.stButton > button:first-child
is a bit more robust as the class name stButton is set in the react code. This is of course not a garantee that it won’t break in new streamlit releases as it’s a hack to change the color of a bottom.
You can read the config.toml
file with toml python package and insert the color codes into the css string you enter in the markdown object.