hello , after 12hours of trying on my confg.toml i fined that there’s a difference between " and ’ :
so try  :
mkdir -p ~/.streamlit/
echo "[theme]
primaryColor=’#020202’
backgroundColor=’#c4c3c3’
secondaryBackgroundColor=’#ebd316’
font = ‘sans serif’
[server]
headless = true
port = $PORT
enableCORS = false
" > ~/.streamlit/config.toml
i hope that this will help you .