How to load and use a local CSS file?

Thanks for your response! This works so long as one includes the type=“text/css” component, as follows:

stylesheet = html`<link type="text/css" href="${await FileAttachment("style.css").url()}" rel="stylesheet" />`
1 Like