SteamDeckHomebrew / decky-plugin-template

A template for quickly creating a decky plugin from scratch
https://deckbrew.xyz
Other
205 stars 101 forks source link

Feature add styled components #12

Closed devnoot closed 1 year ago

devnoot commented 1 year ago
TrainDoctor commented 1 year ago

Marking this one as under consideration as I'm not sure we want to add more dependencies but this definitely seems like a great idea. I'll need @AAGaming00 to weigh in.

AAGaming00 commented 1 year ago

There is no point in including this in the template IMO as it's usage does not differ from normal styled-components usage, and if it works by injecting a css style it may cause issues if the plugin reloads.

devnoot commented 1 year ago

@AAGaming00 I agree about not adding useless dependencies, but with that said is there a supported way that CSS should be added to the plugin?

I tried editing the rollup config to support CSS, but it just generates it into index.css, which to my understanding can't be included.

If there's a way to get rollup to work, I'd happily issue a PR for it.

AAGaming00 commented 1 year ago

Making rollup css support work would require a custom css rollup loader, I already made one for another project of mine that I plan to port eventually.