Skip to content

An example of how to create an application with StyleX, that uses PostCSS, Vite, and packages that contain StyleX styles.

License

Notifications You must be signed in to change notification settings

sergiocarneiro/example-stylex-vite-packages

Repository files navigation

An example of a StyleX setup using Vite, PostCSS, and shared styles using local packages.

The application uses React Router v7 (framework mode) and Cloudflare, providing a setup where multiple dependencies rely on Vite APIs (both React Router and Cloudflare are Vite plugins).

Tech Stack

  • An application with React Router v7 (framework mode) and Cloudflare.
  • A local package with shared StyleX styles.
  • StyleX with PostCSS.
  • Vite 6
  • Pnpm
  • TurboRepo

Setup was kept to a minimum for simplicity. This means tools such as ESLint were excluded.

Development

Build the app:

pnpm run build

Run the dev server:

pnpm run dev

About

An example of how to create an application with StyleX, that uses PostCSS, Vite, and packages that contain StyleX styles.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published