Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zero] Minor wording changes in README #41253

Merged
merged 3 commits into from
Feb 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/zero-runtime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ npm install @mui/zero-runtime
npm install --save-dev @mui/zero-vite-plugin
```

Then, in your vite config file file, import the plugin and wrap the exported config object:
Then, in your vite config file, import the plugin and pass it to the `plugins` array as shown:
brijeshb42 marked this conversation as resolved.
Show resolved Hide resolved

```js
import { zeroVitePlugin } from '@mui/zero-vite-plugin';
Expand Down Expand Up @@ -269,7 +269,7 @@ Theming is an **optional** feature that lets you reuse the same values, such as

> **💡 Good to know**:
>
> The **theme** object are used at build time without relying on React context like common CSS-in-JS libraries. This means that components created by zero-runtime `styled` will be React Server Component by default and still get benefits from theming.
> The **theme** object is used at build time and does not exist in the final JS bundle. This means that components created using zero-runtime `styled` can be using with React Server Components by default while still getting the benefits of theming.
brijeshb42 marked this conversation as resolved.
Show resolved Hide resolved

For example, in Next.js, you can define a theme in the `next.config.js` file like this:

Expand Down Expand Up @@ -395,7 +395,7 @@ However, if you want to control the color scheme based on application logic, for
});
```

Note that you need to add a logic to a button by yourself. Here is an example of how to do it:
Note that you need to add the logic to a button by yourself. Here is an example of how to do it:

```jsx
function App() {
Expand Down
Loading