I am using a styler to add color to a pandas dataframe, then I save it as html, and here's the outcome:

The colors are here in the html version but when I convert the file to PDF they are lost.

What am I doing wrong?
Here is reproducible code:
import pandas as pd
import pdfkit
# CREATE A DUMMY DF
d = {'population': [60, 46, 10], 'language': ['it', 'es', 'el']}
df = pd.DataFrame(data=d,index=['Italy','Spain','Greece'])
# ADD SOME COLORS
s = df.style.bar(subset=['population'], color=['#2ECC71'])
# WRITE AN HTML FILE
f = open('dummy.html','w')
f.write(s.render())
f.close()
# CONVERT THE FILE TO A PDF
pdfkit.from_file('dummy.html', 'dummy.pdf')

