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

docs(tailwindcss): mark designSystem as deprecated #4521

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
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
1,175 changes: 0 additions & 1,175 deletions packages/document/main-doc/docs/en/configure/app/source/design-system.mdx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,37 @@ export default {
Please note:

- If you are using both the `tailwind.config.{ts,js}` file and `tools.tailwindcss` option, the configuration defined in `tools.tailwindcss` will take precedence and override the content defined in `tailwind.config.{ts,js}`.
- If you are using the [source.designSystem](/configure/app/source/design-system) configuration option simultaneously, the `theme` configuration of Tailwind CSS will be overridden by the value of `source.designSystem`.
- If you are using the `source.designSystem` configuration option simultaneously, the `theme` configuration of Tailwind CSS will be overridden by the value of `source.designSystem`.

The usage of other configurations follows the same approach as the official usage of Tailwind CSS. Please refer to [tailwindcss - Configuration](https://tailwindcss.com/docs/configuration) for more details.

### About source.designSystem

`source.designSystem` is a deprecated configuration option in Modern.js.

Starting from Modern.js vMAJOR_VERSION.33.0, you can use the `theme` configuration option of Tailwind CSS as a replacement for `source.designSystem`. It is no longer necessary to split the `theme` configuration and set it on `designSystem`.

- Previous usage:

```ts title="modern.config.ts"
const { theme, ...rest } = tailwindConfig;

export default {
tools: {
tailwindcss: rest,
},
source: {
designSystem: theme,
},
};
```

- Current usage:

```ts title="modern.config.ts"
export default {
tools: {
tailwindcss: tailwindConfig,
},
};
```
Loading