material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[examples] Add zero-nextjs starter project

Open siriwatknp opened this issue 1 year ago • 1 comments

The starter project demonstrates the usage of css, keyframes and styled APIs.

Support dark mode via prefers-color-scheme media query (built-in support).

https://github.com/mui/material-ui/assets/18292247/e92c8c5b-4c36-46ed-871e-de777a90a377

TODO

  • [ ] Ensure that styled supports template string.
  • [ ] Replace workspace^ with the published alpha version.

siriwatknp avatar Feb 15 '24 04:02 siriwatknp

Netlify deploy preview

https://deploy-preview-41105--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad) No bundle size changes

Generated by :no_entry_sign: dangerJS against bcd018230eea2a318325ddcda6bda6915736353a

mui-bot avatar Feb 15 '24 04:02 mui-bot

Just a few writing tweaks so we're consistent with how we refer to "zero-runtime"! I'm not being able to run the example, though, I see this error after running it with either npm or pnpm (and I've also tried running pnpm install on the whole repo before, but nothing...):

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@mui%2fzero-next-plugin - Not found
npm ERR! 404 
npm ERR! 404  '@mui/zero-next-plugin@latest' is not in this registry.
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git URL.

It's because we haven't released @mui/zero-runtime yet. Will ping you again when it's working.

siriwatknp avatar Feb 23 '24 13:02 siriwatknp

We'll need to wait the package to be published to review these examples, right?

danilo-leal avatar Mar 04 '24 11:03 danilo-leal

We'll need to wait the package to be published to review these examples, right?

Yes. This PR can be merged after the release.

siriwatknp avatar Mar 05 '24 04:03 siriwatknp

Tested. It works.

curl https://codeload.github.com/siriwatknp/material-ui/tar.gz/zero-runtime-starter | tar -xz --strip=2  material-ui-zero-runtime-starter/examples/pigment-css-nextjs-ts
cd pigment-css-nextjs-ts

siriwatknp avatar Mar 08 '24 06:03 siriwatknp