The grid styles are being suffixed with a unit from Preact (seems to be missing the required match here). Would it be possible to have this library convert those numbers to strings to avoid this issue? I'm willing to submit a PR for this.
I've opened an issue on Preact for this as well.