nothing changes(one time i did get an error, “theme.primaryColor” is not defined.), plus when i go to the menu and then to settings i cannot see a theming option, do i need to enable something somewhere?
In your code of config.toml file, you have wrong type of quotes in the last line (sans serif). I have changed them to normal(“”) and was able to reproduce your theme.
i still get this error AssertionError: Key “theme.primaryColor” is not defined. I think it is something to do with the actual setup i have, am i meant to have lots of lines in my config.toml(ie. other sections) too?
Hi @Epicfaze44, could you check if you’re running Streamlit version 0.79? That error gets thrown when you try to define a config option that doesn’t exist, and I’m not sure how that could be happening aside from the case where you’re not upgraded to the most recent version.
@Alea4jacta6est: I’d double-check that something weird isn’t happening with your installation / virtual env since unfortunately I can’t think of a reason why you’d get that error while on 0.79. Does running streamlit config show include a [theme] section in its output? It would also be worth checking that streamlit version verifies that the installation is version 0.79.
@LucianoSiqueira: it’s not possible to use st.set_option to set the theme. Please see the API docs for a list of options that are configurable using that API.
I do have the same issue! I am using v0.79, I initialized the config.toml file streamlit config show > /.streamlit/config.toml, it works in the localhost. But same key-error in the share oven
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.