@modern-js/main-doc 2.0.2 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.turbo/turbo-build.log +1 -1
- package/en/docusaurus-plugin-content-docs/current/apis/app/commands/index.md +0 -5
- package/en/docusaurus-plugin-content-docs/current/apis/app/commands/lint.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/apis/app/commands/serve.md +2 -4
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/framework/lambda.md +12 -12
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/functions/api.md +13 -13
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/functions/app.md +0 -2
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/functions/common.md +1 -3
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/app.md +16 -9
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/index_.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/routes.md +5 -3
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/server.md +6 -4
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/stories.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/test.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/app/define-config.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/bff/hook.md +3 -3
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/bootstrap.md +3 -6
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/create-app.md +1 -3
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/use-loader.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/use-module-apps.md +58 -51
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/use-runtime-context.md +3 -4
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/index.md +0 -5
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/Provider.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/connect.md +8 -5
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/create-store.md +1 -3
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/handle-effect.md +3 -3
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/model_.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/use-model.md +0 -3
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/use-store.md +0 -2
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/router/router.md +23 -54
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/ssr/no-ssr.md +1 -8
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/ssr/pre-render.md +10 -6
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/testing/render.md +0 -2
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/utility/css-in-js.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/utility/head.md +3 -5
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/utility/loadable.md +14 -15
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/web-server/hook.md +4 -5
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/web-server/middleware.md +7 -6
- package/en/docusaurus-plugin-content-docs/current/components/command-tip.md +3 -2
- package/en/docusaurus-plugin-content-docs/current/components/debug-app.md +17 -0
- package/en/docusaurus-plugin-content-docs/current/components/enable-bff.md +10 -14
- package/en/docusaurus-plugin-content-docs/current/components/enable-micro-frontend.md +4 -4
- package/en/docusaurus-plugin-content-docs/current/components/global-proxy-config.md +6 -9
- package/en/docusaurus-plugin-content-docs/current/components/global-proxy.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/components/micro-master-manifest-config.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/components/micro-runtime-config.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/components/prerequisites.md +19 -0
- package/en/docusaurus-plugin-content-docs/current/components/reduck-migration.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/components/reduck-tip.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/components/router-legacy-tip.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/configure/app/auto-load-plugin.md +8 -9
- package/en/docusaurus-plugin-content-docs/current/configure/app/bff/prefix.md +6 -6
- package/en/docusaurus-plugin-content-docs/current/configure/app/bff/proxy.md +8 -9
- package/en/docusaurus-plugin-content-docs/current/configure/app/builder-plugins.md +6 -6
- package/en/docusaurus-plugin-content-docs/current/configure/app/deploy/microFrontend.md +11 -13
- package/en/docusaurus-plugin-content-docs/current/configure/app/dev/asset-prefix.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/dev/hmr.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/dev/https.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/dev/port.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/dev/progress-bar.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/dev/proxy.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/configure/app/dev/start-url.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/experiments/lazy-compilation.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/app-icon.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/crossorigin.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/disable-html-folder.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/favicon-by-entries.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/favicon.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/inject-by-entries.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/inject.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/meta-by-entries.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/meta.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/mount-id.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/tags-by-entries.md +12 -0
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/tags.md +12 -0
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/template-by-entries.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/template-parameters-by-entries.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/template-parameters.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/template.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/title-by-entries.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/title.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/asset-prefix.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/assets-retry.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/charset.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/clean-dist-path.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/convert-to-rem.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/copy.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/css-module-local-ident-name.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/data-uri-limit.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-css-extract.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-css-module-extension.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-filename-hash.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-inline-runtime-chunk.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-minimize.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-node-polyfill.md +8 -6
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-source-map.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-ts-checker.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/dist-path.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-asset-fallback.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-asset-manifest.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-css-module-tsdeclaration.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-inline-scripts.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-inline-styles.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-latest-decorators.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/externals.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/filename.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/legal-comments.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/override-browserslist.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/polyfill.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/ssg.md +3 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/svg-default-export.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/performance/build-cache.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/performance/bundle-analyze.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/performance/chunk-split.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/performance/print-file-size.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/performance/profile.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/performance/remove-console.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/performance/remove-moment-locale.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/plugins.md +6 -6
- package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/intro.md +11 -10
- package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/master-app.md +1 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/router.md +7 -7
- package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/state.md +15 -15
- package/en/docusaurus-plugin-content-docs/current/configure/app/security/sri.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/server/base-url.md +3 -4
- package/en/docusaurus-plugin-content-docs/current/configure/app/server/enable-framework-ext.md +5 -4
- package/en/docusaurus-plugin-content-docs/current/configure/app/server/port.md +24 -4
- package/en/docusaurus-plugin-content-docs/current/configure/app/server/public-routes.md +6 -6
- package/en/docusaurus-plugin-content-docs/current/configure/app/server/routes.md +7 -7
- package/en/docusaurus-plugin-content-docs/current/configure/app/server/ssr-by-entries.md +5 -5
- package/en/docusaurus-plugin-content-docs/current/configure/app/server/ssr.md +4 -4
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/alias.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/compile-js-data-uri.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/config-dir.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/define.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/design-system.md +656 -634
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/disable-default-entries.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/disable-entry-dirs.md +8 -8
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/enable-async-entry.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/entries-dir.md +7 -7
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/entries.md +4 -6
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/exclude.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/global-vars.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/include.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/module-scopes.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/pre-entry.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/resolve-extension-prefix.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/resolve-main-fields.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/autoprefixer.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/babel.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/css-extract.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/css-loader.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/dev-server.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/html-plugin.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/inspector.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/jest.md +9 -9
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/less.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/minify-css.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/postcss.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/pug.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/sass.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/style-loader.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/styled-components.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/swc.md +12 -1
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/terser.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/ts-checker.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/ts-loader.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/webpack-chain.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/webpack.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/frameworks.md +6 -6
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/function.md +44 -38
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/index.md +9 -9
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/type.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/code-split.md +3 -4
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/compatibility.md +6 -7
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/eslint.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/index.md +0 -5
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/low-level.md +17 -19
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/ssg.md +8 -10
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/ssr.md +5 -11
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/testing.md +3 -3
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/web-server.md +3 -4
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/alias.md +7 -11
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/css-in-js.md +6 -6
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/css-modules.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/less-sass.md +1 -2
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/postcss.md +43 -47
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/tailwindcss.md +3 -3
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/data-fetch.md +106 -192
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/env-vars.md +8 -8
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/html.md +55 -47
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/mock.md +4 -4
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/proxy.md +4 -5
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/routes.md +90 -9
- package/en/docusaurus-plugin-content-docs/current/guides/concept/entries.md +1 -2
- package/en/docusaurus-plugin-content-docs/current/guides/get-started/quick-start.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/guides/get-started/upgrade.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/extend.md +13 -13
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/hook-list.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/hook.md +57 -54
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/implement.md +11 -11
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/lifecycle.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/plugin-api.md +4 -4
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/app.md +33 -33
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/ejs.md +3 -3
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/fs.md +3 -3
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/git.md +3 -2
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/handlebars.md +3 -4
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/json.md +9 -12
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/npm.md +2 -3
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/introduce.md +4 -3
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/run-in-js.md +4 -5
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/structure.md +13 -11
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/config/common.md +18 -27
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/abstract.md +1 -4
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/file/introduce.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/file/updateJSONFile.md +4 -5
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/hook/onForged.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/addInputAfter.md +1 -4
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/addInputBefore.md +1 -3
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/setInput.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/type.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/introduce.md +8 -9
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/develop.md +11 -12
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/use.md +8 -8
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/project.md +1 -2
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c01-introduction.md +7 -8
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c02-development.md +18 -21
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c03-main-app.md +41 -44
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c04-communicate.md +7 -5
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c05-mixed-stack.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/auto-actions.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/computed-state.md +0 -2
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/define-model.md +3 -6
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/faq.md +2 -5
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/manage-effects.md +2 -5
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/model-communicate.md +1 -4
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/performance.md +1 -5
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/quick-start.md +0 -6
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/redux-integration.md +3 -2
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/test-model.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/typescript-best-practice.md +13 -14
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/use-model.md +14 -12
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/use-out-of-modernjs.md +4 -6
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c01-start.md +19 -19
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c02-component.md +11 -11
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c03-css.md +52 -55
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c04-routes.md +23 -23
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c05-loader.md +12 -11
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c06-model.md +28 -28
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c07-container.md +25 -26
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c08-entries.md +36 -38
- package/en/docusaurus-plugin-content-docs/current.json +3 -47
- package/package.json +3 -3
- package/scripts/config.ts +4 -2
- package/scripts/summary.en.json +1 -1
- package/scripts/summary.zh.json +1 -1
- package/scripts/sync.ts +1 -1
- package/zh/apis/app/commands/index.md +0 -5
- package/zh/apis/app/commands/lint.md +1 -1
- package/zh/apis/app/commands/serve.md +2 -4
- package/zh/apis/app/hooks/api/framework/lambda.md +12 -12
- package/zh/apis/app/hooks/api/functions/api.md +13 -13
- package/zh/apis/app/hooks/api/functions/app.md +0 -2
- package/zh/apis/app/hooks/api/functions/common.md +1 -1
- package/zh/apis/app/hooks/index.md +0 -5
- package/zh/apis/app/hooks/shared.md +0 -1
- package/zh/apis/app/hooks/src/app.md +16 -9
- package/zh/apis/app/hooks/src/index_.md +0 -2
- package/zh/apis/app/hooks/src/routes.md +6 -7
- package/zh/apis/app/hooks/src/server.md +6 -4
- package/zh/apis/app/hooks/src/stories.md +1 -1
- package/zh/apis/app/hooks/src/test.md +1 -1
- package/zh/apis/app/runtime/app/define-config.md +1 -2
- package/zh/apis/app/runtime/bff/hook.md +3 -3
- package/zh/apis/app/runtime/core/bootstrap.md +2 -3
- package/zh/apis/app/runtime/core/use-loader.md +2 -2
- package/zh/apis/app/runtime/core/use-module-apps.md +53 -50
- package/zh/apis/app/runtime/core/use-runtime-context.md +3 -4
- package/zh/apis/app/runtime/index.md +0 -5
- package/zh/apis/app/runtime/model/Provider.md +1 -0
- package/zh/apis/app/runtime/model/auto-actions.md +1 -1
- package/zh/apis/app/runtime/model/connect.md +9 -5
- package/zh/apis/app/runtime/model/create-app.md +3 -3
- package/zh/apis/app/runtime/model/create-store.md +2 -4
- package/zh/apis/app/runtime/model/handle-effect.md +3 -4
- package/zh/apis/app/runtime/model/model_.md +0 -3
- package/zh/apis/app/runtime/model/use-local-model.md +0 -1
- package/zh/apis/app/runtime/model/use-store.md +0 -2
- package/zh/apis/app/runtime/router/router.md +23 -53
- package/zh/apis/app/runtime/ssr/no-ssr.md +1 -5
- package/zh/apis/app/runtime/ssr/pre-render.md +10 -6
- package/zh/apis/app/runtime/testing/cleanup.md +2 -2
- package/zh/apis/app/runtime/testing/render.md +0 -2
- package/zh/apis/app/runtime/utility/css-in-js.md +2 -2
- package/zh/apis/app/runtime/utility/head.md +3 -5
- package/zh/apis/app/runtime/utility/loadable.md +14 -15
- package/zh/apis/app/runtime/web-server/hook.md +5 -4
- package/zh/apis/app/runtime/web-server/middleware.md +8 -6
- package/zh/apis/monorepo/commands/bump.md +1 -1
- package/zh/apis/monorepo/commands/change.md +3 -2
- package/zh/apis/monorepo/commands/gen-release-note.md +1 -2
- package/zh/apis/monorepo/commands/index.md +1 -6
- package/zh/apis/monorepo/commands/lint.md +1 -1
- package/zh/apis/monorepo/commands/release.md +0 -1
- package/zh/apis/monorepo/hooks/index.md +1 -6
- package/zh/components/command-tip.md +3 -2
- package/zh/components/enable-bff.md +10 -14
- package/zh/components/enable-micro-frontend.md +4 -4
- package/zh/components/global-proxy-config.md +6 -9
- package/zh/components/global-proxy.md +0 -1
- package/zh/components/init-app.md +0 -1
- package/zh/components/micro-master-manifest-config.md +2 -2
- package/zh/components/micro-runtime-config.md +1 -1
- package/zh/components/reduck-migration.md +0 -1
- package/zh/components/router-legacy-tip.md +0 -1
- package/zh/configure/app/auto-load-plugin.md +9 -10
- package/zh/configure/app/bff/prefix.md +6 -10
- package/zh/configure/app/bff/proxy.md +9 -8
- package/zh/configure/app/builder-plugins.md +6 -6
- package/zh/configure/app/deploy/microFrontend.md +11 -11
- package/zh/configure/app/dev/asset-prefix.md +2 -2
- package/zh/configure/app/dev/hmr.md +2 -2
- package/zh/configure/app/dev/https.md +2 -2
- package/zh/configure/app/dev/port.md +2 -2
- package/zh/configure/app/dev/progress-bar.md +2 -2
- package/zh/configure/app/dev/proxy.md +0 -1
- package/zh/configure/app/dev/start-url.md +2 -2
- package/zh/configure/app/experiments/lazy-compilation.md +2 -2
- package/zh/configure/app/html/app-icon.md +2 -2
- package/zh/configure/app/html/crossorigin.md +2 -2
- package/zh/configure/app/html/disable-html-folder.md +2 -2
- package/zh/configure/app/html/favicon-by-entries.md +2 -2
- package/zh/configure/app/html/favicon.md +2 -2
- package/zh/configure/app/html/inject-by-entries.md +2 -2
- package/zh/configure/app/html/inject.md +2 -2
- package/zh/configure/app/html/meta-by-entries.md +2 -2
- package/zh/configure/app/html/meta.md +2 -2
- package/zh/configure/app/html/mount-id.md +2 -2
- package/zh/configure/app/html/tags-by-entries.md +12 -0
- package/zh/configure/app/html/tags.md +12 -0
- package/zh/configure/app/html/template-by-entries.md +2 -2
- package/zh/configure/app/html/template-parameters-by-entries.md +2 -2
- package/zh/configure/app/html/template-parameters.md +2 -2
- package/zh/configure/app/html/template.md +2 -2
- package/zh/configure/app/html/title-by-entries.md +2 -2
- package/zh/configure/app/html/title.md +2 -2
- package/zh/configure/app/output/asset-prefix.md +2 -2
- package/zh/configure/app/output/assets-retry.md +2 -2
- package/zh/configure/app/output/charset.md +2 -2
- package/zh/configure/app/output/clean-dist-path.md +2 -2
- package/zh/configure/app/output/convert-to-rem.md +2 -2
- package/zh/configure/app/output/copy.md +2 -2
- package/zh/configure/app/output/css-module-local-ident-name.md +2 -2
- package/zh/configure/app/output/data-uri-limit.md +2 -2
- package/zh/configure/app/output/disable-css-extract.md +2 -2
- package/zh/configure/app/output/disable-css-module-extension.md +2 -2
- package/zh/configure/app/output/disable-filename-hash.md +2 -2
- package/zh/configure/app/output/disable-inline-runtime-chunk.md +2 -2
- package/zh/configure/app/output/disable-minimize.md +2 -2
- package/zh/configure/app/output/disable-node-polyfill.md +8 -8
- package/zh/configure/app/output/disable-source-map.md +2 -2
- package/zh/configure/app/output/disable-ts-checker.md +2 -2
- package/zh/configure/app/output/dist-path.md +2 -2
- package/zh/configure/app/output/enable-asset-fallback.md +2 -2
- package/zh/configure/app/output/enable-asset-manifest.md +2 -2
- package/zh/configure/app/output/enable-css-module-tsdeclaration.md +2 -2
- package/zh/configure/app/output/enable-inline-scripts.md +2 -2
- package/zh/configure/app/output/enable-inline-styles.md +2 -2
- package/zh/configure/app/output/enable-latest-decorators.md +2 -2
- package/zh/configure/app/output/externals.md +2 -2
- package/zh/configure/app/output/filename.md +2 -2
- package/zh/configure/app/output/legal-comments.md +2 -2
- package/zh/configure/app/output/override-browserslist.md +2 -2
- package/zh/configure/app/output/polyfill.md +2 -2
- package/zh/configure/app/output/ssg.md +3 -2
- package/zh/configure/app/output/svg-default-export.md +2 -2
- package/zh/configure/app/performance/build-cache.md +2 -2
- package/zh/configure/app/performance/bundle-analyze.md +2 -2
- package/zh/configure/app/performance/chunk-split.md +2 -2
- package/zh/configure/app/performance/print-file-size.md +2 -2
- package/zh/configure/app/performance/profile.md +2 -2
- package/zh/configure/app/performance/remove-console.md +2 -2
- package/zh/configure/app/performance/remove-moment-locale.md +2 -2
- package/zh/configure/app/plugins.md +6 -6
- package/zh/configure/app/runtime/intro.md +39 -11
- package/zh/configure/app/runtime/master-app.md +1 -2
- package/zh/configure/app/runtime/router.md +6 -7
- package/zh/configure/app/runtime/state.md +15 -16
- package/zh/configure/app/security/sri.md +2 -2
- package/zh/configure/app/server/base-url.md +3 -6
- package/zh/configure/app/server/enable-framework-ext.md +5 -4
- package/zh/configure/app/server/port.md +24 -6
- package/zh/configure/app/server/public-routes.md +6 -8
- package/zh/configure/app/server/routes.md +6 -6
- package/zh/configure/app/server/ssr-by-entries.md +5 -8
- package/zh/configure/app/server/ssr.md +4 -5
- package/zh/configure/app/source/alias.md +2 -2
- package/zh/configure/app/source/compile-js-data-uri.md +2 -2
- package/zh/configure/app/source/config-dir.md +2 -2
- package/zh/configure/app/source/define.md +2 -2
- package/zh/configure/app/source/design-system.md +656 -630
- package/zh/configure/app/source/disable-default-entries.md +3 -3
- package/zh/configure/app/source/disable-entry-dirs.md +8 -7
- package/zh/configure/app/source/enable-async-entry.md +3 -3
- package/zh/configure/app/source/entries-dir.md +7 -7
- package/zh/configure/app/source/entries.md +5 -6
- package/zh/configure/app/source/exclude.md +2 -2
- package/zh/configure/app/source/global-vars.md +2 -2
- package/zh/configure/app/source/include.md +2 -2
- package/zh/configure/app/source/module-scopes.md +2 -2
- package/zh/configure/app/source/pre-entry.md +2 -2
- package/zh/configure/app/source/resolve-extension-prefix.md +2 -2
- package/zh/configure/app/source/resolve-main-fields.md +2 -2
- package/zh/configure/app/testing/transformer.md +2 -3
- package/zh/configure/app/tools/autoprefixer.md +2 -2
- package/zh/configure/app/tools/babel.md +2 -2
- package/zh/configure/app/tools/css-extract.md +2 -2
- package/zh/configure/app/tools/css-loader.md +2 -2
- package/zh/configure/app/tools/dev-server.md +2 -2
- package/zh/configure/app/tools/html-plugin.md +2 -2
- package/zh/configure/app/tools/inspector.md +2 -2
- package/zh/configure/app/tools/jest.md +9 -9
- package/zh/configure/app/tools/less.md +2 -2
- package/zh/configure/app/tools/minify-css.md +2 -2
- package/zh/configure/app/tools/postcss.md +2 -2
- package/zh/configure/app/tools/pug.md +2 -2
- package/zh/configure/app/tools/sass.md +2 -2
- package/zh/configure/app/tools/style-loader.md +2 -2
- package/zh/configure/app/tools/styled-components.md +2 -2
- package/zh/configure/app/tools/swc.md +12 -1
- package/zh/configure/app/tools/terser.md +2 -2
- package/zh/configure/app/tools/ts-checker.md +2 -2
- package/zh/configure/app/tools/ts-loader.md +2 -2
- package/zh/configure/app/tools/webpack-chain.md +2 -2
- package/zh/configure/app/tools/webpack.md +2 -2
- package/zh/guides/advanced-features/bff/frameworks.md +6 -6
- package/zh/guides/advanced-features/bff/function.md +49 -44
- package/zh/guides/advanced-features/bff/index.md +9 -9
- package/zh/guides/advanced-features/bff/type.md +0 -1
- package/zh/guides/advanced-features/code-split.md +3 -3
- package/zh/guides/advanced-features/compatibility.md +6 -7
- package/zh/guides/advanced-features/eslint.md +0 -1
- package/zh/guides/advanced-features/index.md +0 -5
- package/zh/guides/advanced-features/low-level.md +17 -19
- package/zh/guides/advanced-features/ssg.md +8 -9
- package/zh/guides/advanced-features/ssr.md +5 -11
- package/zh/guides/advanced-features/testing.md +3 -2
- package/zh/guides/advanced-features/web-server.md +3 -4
- package/zh/guides/basic-features/alias.md +7 -11
- package/zh/guides/basic-features/css/css-in-js.md +5 -5
- package/zh/guides/basic-features/css/css-modules.md +2 -2
- package/zh/guides/basic-features/css/postcss.md +42 -46
- package/zh/guides/basic-features/css/tailwindcss.md +5 -5
- package/zh/guides/basic-features/data-fetch.md +109 -192
- package/zh/guides/basic-features/env-vars.md +7 -6
- package/zh/guides/basic-features/html.md +54 -46
- package/zh/guides/basic-features/index.md +0 -5
- package/zh/guides/basic-features/mock.md +4 -4
- package/zh/guides/basic-features/proxy.md +4 -5
- package/zh/guides/basic-features/routes.md +105 -18
- package/zh/guides/concept/entries.md +5 -7
- package/zh/guides/get-started/quick-start.md +3 -4
- package/zh/guides/topic-detail/changesets/add.md +1 -3
- package/zh/guides/topic-detail/changesets/changelog.md +30 -31
- package/zh/guides/topic-detail/changesets/commit.md +44 -45
- package/zh/guides/topic-detail/changesets/config.md +2 -1
- package/zh/guides/topic-detail/changesets/github.md +6 -10
- package/zh/guides/topic-detail/changesets/introduce.md +0 -1
- package/zh/guides/topic-detail/changesets/release-note.md +9 -12
- package/zh/guides/topic-detail/changesets/release-pre.md +1 -1
- package/zh/guides/topic-detail/framework-plugin/extend.md +13 -13
- package/zh/guides/topic-detail/framework-plugin/hook-list.md +2 -2
- package/zh/guides/topic-detail/framework-plugin/hook.md +57 -54
- package/zh/guides/topic-detail/framework-plugin/implement.md +11 -11
- package/zh/guides/topic-detail/framework-plugin/plugin-api.md +4 -4
- package/zh/guides/topic-detail/generator/codesmith/api/app.md +36 -36
- package/zh/guides/topic-detail/generator/codesmith/api/ejs.md +2 -2
- package/zh/guides/topic-detail/generator/codesmith/api/fs.md +2 -2
- package/zh/guides/topic-detail/generator/codesmith/api/git.md +3 -2
- package/zh/guides/topic-detail/generator/codesmith/api/handlebars.md +2 -2
- package/zh/guides/topic-detail/generator/codesmith/api/json.md +9 -11
- package/zh/guides/topic-detail/generator/codesmith/api/npm.md +4 -2
- package/zh/guides/topic-detail/generator/codesmith/introduce.md +20 -7
- package/zh/guides/topic-detail/generator/codesmith/run-in-js.md +4 -5
- package/zh/guides/topic-detail/generator/codesmith/structure.md +13 -10
- package/zh/guides/topic-detail/generator/config/common.md +18 -27
- package/zh/guides/topic-detail/generator/plugin/abstract.md +1 -1
- package/zh/guides/topic-detail/generator/plugin/api/file/introduce.md +1 -0
- package/zh/guides/topic-detail/generator/plugin/api/file/updateJSONFile.md +4 -4
- package/zh/guides/topic-detail/generator/plugin/api/info/locale.md +1 -1
- package/zh/guides/topic-detail/generator/plugin/api/input/addInputAfter.md +2 -2
- package/zh/guides/topic-detail/generator/plugin/api/input/addInputBefore.md +3 -4
- package/zh/guides/topic-detail/generator/plugin/api/input/setInput.md +1 -1
- package/zh/guides/topic-detail/generator/plugin/api/input/type.md +1 -1
- package/zh/guides/topic-detail/generator/plugin/api/introduce.md +8 -9
- package/zh/guides/topic-detail/generator/plugin/develop.md +13 -13
- package/zh/guides/topic-detail/generator/plugin/use.md +8 -8
- package/zh/guides/topic-detail/generator/project.md +1 -1
- package/zh/guides/topic-detail/micro-frontend/c01-introduction.md +7 -8
- package/zh/guides/topic-detail/micro-frontend/c02-development.md +20 -23
- package/zh/guides/topic-detail/micro-frontend/c03-main-app.md +41 -44
- package/zh/guides/topic-detail/micro-frontend/c04-communicate.md +7 -5
- package/zh/guides/topic-detail/micro-frontend/c05-mixed-stack.md +1 -1
- package/zh/guides/topic-detail/model/auto-actions.md +0 -1
- package/zh/guides/topic-detail/model/computed-state.md +0 -2
- package/zh/guides/topic-detail/model/define-model.md +3 -6
- package/zh/guides/topic-detail/model/faq.md +2 -5
- package/zh/guides/topic-detail/model/manage-effects.md +2 -5
- package/zh/guides/topic-detail/model/model-communicate.md +1 -4
- package/zh/guides/topic-detail/model/performance.md +1 -5
- package/zh/guides/topic-detail/model/quick-start.md +0 -6
- package/zh/guides/topic-detail/model/redux-integration.md +3 -2
- package/zh/guides/topic-detail/model/test-model.md +1 -1
- package/zh/guides/topic-detail/model/typescript-best-practice.md +13 -14
- package/zh/guides/topic-detail/model/use-model.md +14 -12
- package/zh/guides/topic-detail/model/use-out-of-modernjs.md +4 -6
- package/zh/guides/topic-detail/monorepo/intro.md +0 -1
- package/zh/guides/topic-detail/monorepo/sub-project-interface.md +14 -7
- package/zh/tutorials/first-app/c01-start.md +2 -2
- package/zh/tutorials/first-app/c03-css.md +6 -9
- package/zh/tutorials/first-app/c04-routes.md +1 -1
- package/zh/tutorials/first-app/c05-loader.md +2 -1
- package/zh/tutorials/first-app/c07-container.md +6 -7
- package/zh/tutorials/first-app/c08-entries.md +5 -7
@@ -3,8 +3,8 @@ title: source.designSystem
|
|
3
3
|
sidebar_label: designSystem
|
4
4
|
---
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
- Type: `Object`
|
7
|
+
- Default: See configuration details below。
|
8
8
|
|
9
9
|
:::caution Caution
|
10
10
|
You need to enable the Tailwind CSS feature through `pnpm run new` first.
|
@@ -14,630 +14,639 @@ You need to enable the Tailwind CSS feature through `pnpm run new` first.
|
|
14
14
|
<summary>DesignSystem Configuration Details</summary>
|
15
15
|
|
16
16
|
```js
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
},
|
42
|
-
red: {
|
43
|
-
100: '#fff5f5',
|
44
|
-
200: '#fed7d7',
|
45
|
-
300: '#feb2b2',
|
46
|
-
400: '#fc8181',
|
47
|
-
500: '#f56565',
|
48
|
-
600: '#e53e3e',
|
49
|
-
700: '#c53030',
|
50
|
-
800: '#9b2c2c',
|
51
|
-
900: '#742a2a',
|
52
|
-
},
|
53
|
-
orange: {
|
54
|
-
100: '#fffaf0',
|
55
|
-
200: '#feebc8',
|
56
|
-
300: '#fbd38d',
|
57
|
-
400: '#f6ad55',
|
58
|
-
500: '#ed8936',
|
59
|
-
600: '#dd6b20',
|
60
|
-
700: '#c05621',
|
61
|
-
800: '#9c4221',
|
62
|
-
900: '#7b341e',
|
63
|
-
},
|
64
|
-
yellow: {
|
65
|
-
100: '#fffff0',
|
66
|
-
200: '#fefcbf',
|
67
|
-
300: '#faf089',
|
68
|
-
400: '#f6e05e',
|
69
|
-
500: '#ecc94b',
|
70
|
-
600: '#d69e2e',
|
71
|
-
700: '#b7791f',
|
72
|
-
800: '#975a16',
|
73
|
-
900: '#744210',
|
74
|
-
},
|
75
|
-
green: {
|
76
|
-
100: '#f0fff4',
|
77
|
-
200: '#c6f6d5',
|
78
|
-
300: '#9ae6b4',
|
79
|
-
400: '#68d391',
|
80
|
-
500: '#48bb78',
|
81
|
-
600: '#38a169',
|
82
|
-
700: '#2f855a',
|
83
|
-
800: '#276749',
|
84
|
-
900: '#22543d',
|
85
|
-
},
|
86
|
-
teal: {
|
87
|
-
100: '#e6fffa',
|
88
|
-
200: '#b2f5ea',
|
89
|
-
300: '#81e6d9',
|
90
|
-
400: '#4fd1c5',
|
91
|
-
500: '#38b2ac',
|
92
|
-
600: '#319795',
|
93
|
-
700: '#2c7a7b',
|
94
|
-
800: '#285e61',
|
95
|
-
900: '#234e52',
|
96
|
-
},
|
97
|
-
blue: {
|
98
|
-
100: '#ebf8ff',
|
99
|
-
200: '#bee3f8',
|
100
|
-
300: '#90cdf4',
|
101
|
-
400: '#63b3ed',
|
102
|
-
500: '#4299e1',
|
103
|
-
600: '#3182ce',
|
104
|
-
700: '#2b6cb0',
|
105
|
-
800: '#2c5282',
|
106
|
-
900: '#2a4365',
|
107
|
-
},
|
108
|
-
indigo: {
|
109
|
-
100: '#ebf4ff',
|
110
|
-
200: '#c3dafe',
|
111
|
-
300: '#a3bffa',
|
112
|
-
400: '#7f9cf5',
|
113
|
-
500: '#667eea',
|
114
|
-
600: '#5a67d8',
|
115
|
-
700: '#4c51bf',
|
116
|
-
800: '#434190',
|
117
|
-
900: '#3c366b',
|
118
|
-
},
|
119
|
-
purple: {
|
120
|
-
100: '#faf5ff',
|
121
|
-
200: '#e9d8fd',
|
122
|
-
300: '#d6bcfa',
|
123
|
-
400: '#b794f4',
|
124
|
-
500: '#9f7aea',
|
125
|
-
600: '#805ad5',
|
126
|
-
700: '#6b46c1',
|
127
|
-
800: '#553c9a',
|
128
|
-
900: '#44337a',
|
129
|
-
},
|
130
|
-
pink: {
|
131
|
-
100: '#fff5f7',
|
132
|
-
200: '#fed7e2',
|
133
|
-
300: '#fbb6ce',
|
134
|
-
400: '#f687b3',
|
135
|
-
500: '#ed64a6',
|
136
|
-
600: '#d53f8c',
|
137
|
-
700: '#b83280',
|
138
|
-
800: '#97266d',
|
139
|
-
900: '#702459',
|
140
|
-
},
|
141
|
-
},
|
142
|
-
spacing: {
|
143
|
-
px: '1px',
|
144
|
-
'0': '0',
|
145
|
-
'1': '0.25rem',
|
146
|
-
'2': '0.5rem',
|
147
|
-
'3': '0.75rem',
|
148
|
-
'4': '1rem',
|
149
|
-
'5': '1.25rem',
|
150
|
-
'6': '1.5rem',
|
151
|
-
'8': '2rem',
|
152
|
-
'10': '2.5rem',
|
153
|
-
'12': '3rem',
|
154
|
-
'16': '4rem',
|
155
|
-
'20': '5rem',
|
156
|
-
'24': '6rem',
|
157
|
-
'32': '8rem',
|
158
|
-
'40': '10rem',
|
159
|
-
'48': '12rem',
|
160
|
-
'56': '14rem',
|
161
|
-
'64': '16rem',
|
162
|
-
},
|
163
|
-
backgroundColor: theme => theme('colors'),
|
164
|
-
backgroundOpacity: theme => theme('opacity'),
|
165
|
-
backgroundPosition: {
|
166
|
-
bottom: 'bottom',
|
167
|
-
center: 'center',
|
168
|
-
left: 'left',
|
169
|
-
'left-bottom': 'left bottom',
|
170
|
-
'left-top': 'left top',
|
171
|
-
right: 'right',
|
172
|
-
'right-bottom': 'right bottom',
|
173
|
-
'right-top': 'right top',
|
174
|
-
top: 'top',
|
175
|
-
},
|
176
|
-
backgroundSize: {
|
177
|
-
auto: 'auto',
|
178
|
-
cover: 'cover',
|
179
|
-
contain: 'contain',
|
180
|
-
},
|
181
|
-
borderColor: theme => ({
|
182
|
-
...theme('colors'),
|
183
|
-
default: theme('colors.gray.300', 'currentColor'),
|
184
|
-
}),
|
185
|
-
borderOpacity: theme => theme('opacity'),
|
186
|
-
borderRadius: {
|
187
|
-
none: '0',
|
188
|
-
sm: '0.125rem',
|
189
|
-
default: '0.25rem',
|
190
|
-
md: '0.375rem',
|
191
|
-
lg: '0.5rem',
|
192
|
-
full: '9999px',
|
193
|
-
},
|
194
|
-
borderWidth: {
|
195
|
-
default: '1px',
|
196
|
-
'0': '0',
|
197
|
-
'2': '2px',
|
198
|
-
'4': '4px',
|
199
|
-
'8': '8px',
|
200
|
-
},
|
201
|
-
boxShadow: {
|
202
|
-
xs: '0 0 0 1px rgba(0, 0, 0, 0.05)',
|
203
|
-
sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
|
204
|
-
default: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',
|
205
|
-
md: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
|
206
|
-
lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
|
207
|
-
xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
|
208
|
-
'2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
|
209
|
-
inner: 'inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)',
|
210
|
-
outline: '0 0 0 3px rgba(66, 153, 225, 0.5)',
|
211
|
-
none: 'none',
|
212
|
-
},
|
213
|
-
container: {},
|
214
|
-
cursor: {
|
215
|
-
auto: 'auto',
|
216
|
-
default: 'default',
|
217
|
-
pointer: 'pointer',
|
218
|
-
wait: 'wait',
|
219
|
-
text: 'text',
|
220
|
-
move: 'move',
|
221
|
-
'not-allowed': 'not-allowed',
|
222
|
-
},
|
223
|
-
divideColor: theme => theme('borderColor'),
|
224
|
-
divideOpacity: theme => theme('borderOpacity'),
|
225
|
-
divideWidth: theme => theme('borderWidth'),
|
226
|
-
fill: {
|
227
|
-
current: 'currentColor',
|
228
|
-
},
|
229
|
-
flex: {
|
230
|
-
'1': '1 1 0%',
|
231
|
-
auto: '1 1 auto',
|
232
|
-
initial: '0 1 auto',
|
233
|
-
none: 'none',
|
234
|
-
},
|
235
|
-
flexGrow: {
|
236
|
-
'0': '0',
|
237
|
-
default: '1',
|
238
|
-
},
|
239
|
-
flexShrink: {
|
240
|
-
'0': '0',
|
241
|
-
default: '1',
|
242
|
-
},
|
243
|
-
fontFamily: {
|
244
|
-
sans: [
|
245
|
-
'system-ui',
|
246
|
-
'-apple-system',
|
247
|
-
'BlinkMacSystemFont',
|
248
|
-
'"Segoe UI"',
|
249
|
-
'Roboto',
|
250
|
-
'"Helvetica Neue"',
|
251
|
-
'Arial',
|
252
|
-
'"Noto Sans"',
|
253
|
-
'sans-serif',
|
254
|
-
'"Apple Color Emoji"',
|
255
|
-
'"Segoe UI Emoji"',
|
256
|
-
'"Segoe UI Symbol"',
|
257
|
-
'"Noto Color Emoji"',
|
258
|
-
],
|
259
|
-
serif: ['Georgia', 'Cambria', '"Times New Roman"', 'Times', 'serif'],
|
260
|
-
mono: ['Menlo', 'Monaco', 'Consolas', '"Liberation Mono"', '"Courier New"', 'monospace'],
|
261
|
-
},
|
262
|
-
fontSize: {
|
263
|
-
xs: '0.75rem',
|
264
|
-
sm: '0.875rem',
|
265
|
-
base: '1rem',
|
266
|
-
lg: '1.125rem',
|
267
|
-
xl: '1.25rem',
|
268
|
-
'2xl': '1.5rem',
|
269
|
-
'3xl': '1.875rem',
|
270
|
-
'4xl': '2.25rem',
|
271
|
-
'5xl': '3rem',
|
272
|
-
'6xl': '4rem',
|
273
|
-
},
|
274
|
-
fontWeight: {
|
275
|
-
hairline: '100',
|
276
|
-
thin: '200',
|
277
|
-
light: '300',
|
278
|
-
normal: '400',
|
279
|
-
medium: '500',
|
280
|
-
semibold: '600',
|
281
|
-
bold: '700',
|
282
|
-
extrabold: '800',
|
283
|
-
black: '900',
|
284
|
-
},
|
285
|
-
height: theme => ({
|
286
|
-
auto: 'auto',
|
287
|
-
...theme('spacing'),
|
288
|
-
full: '100%',
|
289
|
-
screen: '100vh',
|
290
|
-
}),
|
291
|
-
inset: {
|
292
|
-
'0': '0',
|
293
|
-
auto: 'auto',
|
294
|
-
},
|
295
|
-
letterSpacing: {
|
296
|
-
tighter: '-0.05em',
|
297
|
-
tight: '-0.025em',
|
298
|
-
normal: '0',
|
299
|
-
wide: '0.025em',
|
300
|
-
wider: '0.05em',
|
301
|
-
widest: '0.1em',
|
302
|
-
},
|
303
|
-
lineHeight: {
|
304
|
-
none: '1',
|
305
|
-
tight: '1.25',
|
306
|
-
snug: '1.375',
|
307
|
-
normal: '1.5',
|
308
|
-
relaxed: '1.625',
|
309
|
-
loose: '2',
|
310
|
-
'3': '.75rem',
|
311
|
-
'4': '1rem',
|
312
|
-
'5': '1.25rem',
|
313
|
-
'6': '1.5rem',
|
314
|
-
'7': '1.75rem',
|
315
|
-
'8': '2rem',
|
316
|
-
'9': '2.25rem',
|
317
|
-
'10': '2.5rem',
|
318
|
-
},
|
319
|
-
listStyleType: {
|
320
|
-
none: 'none',
|
321
|
-
disc: 'disc',
|
322
|
-
decimal: 'decimal',
|
323
|
-
},
|
324
|
-
margin: (theme, { negative }) => ({
|
325
|
-
auto: 'auto',
|
326
|
-
...theme('spacing'),
|
327
|
-
...negative(theme('spacing')),
|
328
|
-
}),
|
329
|
-
maxHeight: {
|
330
|
-
full: '100%',
|
331
|
-
screen: '100vh',
|
332
|
-
},
|
333
|
-
maxWidth: (theme, { breakpoints }) => ({
|
334
|
-
none: 'none',
|
335
|
-
xs: '20rem',
|
336
|
-
sm: '24rem',
|
337
|
-
md: '28rem',
|
338
|
-
lg: '32rem',
|
339
|
-
xl: '36rem',
|
340
|
-
'2xl': '42rem',
|
341
|
-
'3xl': '48rem',
|
342
|
-
'4xl': '56rem',
|
343
|
-
'5xl': '64rem',
|
344
|
-
'6xl': '72rem',
|
345
|
-
full: '100%',
|
346
|
-
...breakpoints(theme('screens')),
|
347
|
-
}),
|
348
|
-
minHeight: {
|
349
|
-
'0': '0',
|
350
|
-
full: '100%',
|
351
|
-
screen: '100vh',
|
352
|
-
},
|
353
|
-
minWidth: {
|
354
|
-
'0': '0',
|
355
|
-
full: '100%',
|
356
|
-
},
|
357
|
-
objectPosition: {
|
358
|
-
bottom: 'bottom',
|
359
|
-
center: 'center',
|
360
|
-
left: 'left',
|
361
|
-
'left-bottom': 'left bottom',
|
362
|
-
'left-top': 'left top',
|
363
|
-
right: 'right',
|
364
|
-
'right-bottom': 'right bottom',
|
365
|
-
'right-top': 'right top',
|
366
|
-
top: 'top',
|
367
|
-
},
|
368
|
-
opacity: {
|
369
|
-
'0': '0',
|
370
|
-
'25': '0.25',
|
371
|
-
'50': '0.5',
|
372
|
-
'75': '0.75',
|
373
|
-
'100': '1',
|
374
|
-
},
|
375
|
-
order: {
|
376
|
-
first: '-9999',
|
377
|
-
last: '9999',
|
378
|
-
none: '0',
|
379
|
-
'1': '1',
|
380
|
-
'2': '2',
|
381
|
-
'3': '3',
|
382
|
-
'4': '4',
|
383
|
-
'5': '5',
|
384
|
-
'6': '6',
|
385
|
-
'7': '7',
|
386
|
-
'8': '8',
|
387
|
-
'9': '9',
|
388
|
-
'10': '10',
|
389
|
-
'11': '11',
|
390
|
-
'12': '12',
|
391
|
-
},
|
392
|
-
padding: theme => theme('spacing'),
|
393
|
-
placeholderColor: theme => theme('colors'),
|
394
|
-
placeholderOpacity: theme => theme('opacity'),
|
395
|
-
space: (theme, { negative }) => ({
|
396
|
-
...theme('spacing'),
|
397
|
-
...negative(theme('spacing')),
|
398
|
-
}),
|
399
|
-
stroke: {
|
400
|
-
current: 'currentColor',
|
401
|
-
},
|
402
|
-
strokeWidth: {
|
403
|
-
'0': '0',
|
404
|
-
'1': '1',
|
405
|
-
'2': '2',
|
406
|
-
},
|
407
|
-
textColor: theme => theme('colors'),
|
408
|
-
textOpacity: theme => theme('opacity'),
|
409
|
-
width: theme => ({
|
410
|
-
auto: 'auto',
|
411
|
-
...theme('spacing'),
|
412
|
-
'1/2': '50%',
|
413
|
-
'1/3': '33.333333%',
|
414
|
-
'2/3': '66.666667%',
|
415
|
-
'1/4': '25%',
|
416
|
-
'2/4': '50%',
|
417
|
-
'3/4': '75%',
|
418
|
-
'1/5': '20%',
|
419
|
-
'2/5': '40%',
|
420
|
-
'3/5': '60%',
|
421
|
-
'4/5': '80%',
|
422
|
-
'1/6': '16.666667%',
|
423
|
-
'2/6': '33.333333%',
|
424
|
-
'3/6': '50%',
|
425
|
-
'4/6': '66.666667%',
|
426
|
-
'5/6': '83.333333%',
|
427
|
-
'1/12': '8.333333%',
|
428
|
-
'2/12': '16.666667%',
|
429
|
-
'3/12': '25%',
|
430
|
-
'4/12': '33.333333%',
|
431
|
-
'5/12': '41.666667%',
|
432
|
-
'6/12': '50%',
|
433
|
-
'7/12': '58.333333%',
|
434
|
-
'8/12': '66.666667%',
|
435
|
-
'9/12': '75%',
|
436
|
-
'10/12': '83.333333%',
|
437
|
-
'11/12': '91.666667%',
|
438
|
-
full: '100%',
|
439
|
-
screen: '100vw',
|
440
|
-
}),
|
441
|
-
zIndex: {
|
442
|
-
auto: 'auto',
|
443
|
-
'0': '0',
|
444
|
-
'10': '10',
|
445
|
-
'20': '20',
|
446
|
-
'30': '30',
|
447
|
-
'40': '40',
|
448
|
-
'50': '50',
|
449
|
-
},
|
450
|
-
gap: theme => theme('spacing'),
|
451
|
-
gridTemplateColumns: {
|
452
|
-
none: 'none',
|
453
|
-
'1': 'repeat(1, minmax(0, 1fr))',
|
454
|
-
'2': 'repeat(2, minmax(0, 1fr))',
|
455
|
-
'3': 'repeat(3, minmax(0, 1fr))',
|
456
|
-
'4': 'repeat(4, minmax(0, 1fr))',
|
457
|
-
'5': 'repeat(5, minmax(0, 1fr))',
|
458
|
-
'6': 'repeat(6, minmax(0, 1fr))',
|
459
|
-
'7': 'repeat(7, minmax(0, 1fr))',
|
460
|
-
'8': 'repeat(8, minmax(0, 1fr))',
|
461
|
-
'9': 'repeat(9, minmax(0, 1fr))',
|
462
|
-
'10': 'repeat(10, minmax(0, 1fr))',
|
463
|
-
'11': 'repeat(11, minmax(0, 1fr))',
|
464
|
-
'12': 'repeat(12, minmax(0, 1fr))',
|
465
|
-
},
|
466
|
-
gridColumn: {
|
467
|
-
auto: 'auto',
|
468
|
-
'span-1': 'span 1 / span 1',
|
469
|
-
'span-2': 'span 2 / span 2',
|
470
|
-
'span-3': 'span 3 / span 3',
|
471
|
-
'span-4': 'span 4 / span 4',
|
472
|
-
'span-5': 'span 5 / span 5',
|
473
|
-
'span-6': 'span 6 / span 6',
|
474
|
-
'span-7': 'span 7 / span 7',
|
475
|
-
'span-8': 'span 8 / span 8',
|
476
|
-
'span-9': 'span 9 / span 9',
|
477
|
-
'span-10': 'span 10 / span 10',
|
478
|
-
'span-11': 'span 11 / span 11',
|
479
|
-
'span-12': 'span 12 / span 12',
|
480
|
-
},
|
481
|
-
gridColumnStart: {
|
482
|
-
auto: 'auto',
|
483
|
-
'1': '1',
|
484
|
-
'2': '2',
|
485
|
-
'3': '3',
|
486
|
-
'4': '4',
|
487
|
-
'5': '5',
|
488
|
-
'6': '6',
|
489
|
-
'7': '7',
|
490
|
-
'8': '8',
|
491
|
-
'9': '9',
|
492
|
-
'10': '10',
|
493
|
-
'11': '11',
|
494
|
-
'12': '12',
|
495
|
-
'13': '13',
|
496
|
-
},
|
497
|
-
gridColumnEnd: {
|
498
|
-
auto: 'auto',
|
499
|
-
'1': '1',
|
500
|
-
'2': '2',
|
501
|
-
'3': '3',
|
502
|
-
'4': '4',
|
503
|
-
'5': '5',
|
504
|
-
'6': '6',
|
505
|
-
'7': '7',
|
506
|
-
'8': '8',
|
507
|
-
'9': '9',
|
508
|
-
'10': '10',
|
509
|
-
'11': '11',
|
510
|
-
'12': '12',
|
511
|
-
'13': '13',
|
512
|
-
},
|
513
|
-
gridTemplateRows: {
|
514
|
-
none: 'none',
|
515
|
-
'1': 'repeat(1, minmax(0, 1fr))',
|
516
|
-
'2': 'repeat(2, minmax(0, 1fr))',
|
517
|
-
'3': 'repeat(3, minmax(0, 1fr))',
|
518
|
-
'4': 'repeat(4, minmax(0, 1fr))',
|
519
|
-
'5': 'repeat(5, minmax(0, 1fr))',
|
520
|
-
'6': 'repeat(6, minmax(0, 1fr))',
|
521
|
-
},
|
522
|
-
gridRow: {
|
523
|
-
auto: 'auto',
|
524
|
-
'span-1': 'span 1 / span 1',
|
525
|
-
'span-2': 'span 2 / span 2',
|
526
|
-
'span-3': 'span 3 / span 3',
|
527
|
-
'span-4': 'span 4 / span 4',
|
528
|
-
'span-5': 'span 5 / span 5',
|
529
|
-
'span-6': 'span 6 / span 6',
|
530
|
-
},
|
531
|
-
gridRowStart: {
|
532
|
-
auto: 'auto',
|
533
|
-
'1': '1',
|
534
|
-
'2': '2',
|
535
|
-
'3': '3',
|
536
|
-
'4': '4',
|
537
|
-
'5': '5',
|
538
|
-
'6': '6',
|
539
|
-
'7': '7',
|
17
|
+
const designSystem = {
|
18
|
+
screens: {
|
19
|
+
sm: '640px',
|
20
|
+
md: '768px',
|
21
|
+
lg: '1024px',
|
22
|
+
xl: '1280px',
|
23
|
+
},
|
24
|
+
colors: {
|
25
|
+
transparent: 'transparent',
|
26
|
+
current: 'currentColor',
|
27
|
+
|
28
|
+
black: '#000',
|
29
|
+
white: '#fff',
|
30
|
+
|
31
|
+
gray: {
|
32
|
+
100: '#f7fafc',
|
33
|
+
200: '#edf2f7',
|
34
|
+
300: '#e2e8f0',
|
35
|
+
400: '#cbd5e0',
|
36
|
+
500: '#a0aec0',
|
37
|
+
600: '#718096',
|
38
|
+
700: '#4a5568',
|
39
|
+
800: '#2d3748',
|
40
|
+
900: '#1a202c',
|
540
41
|
},
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
42
|
+
red: {
|
43
|
+
100: '#fff5f5',
|
44
|
+
200: '#fed7d7',
|
45
|
+
300: '#feb2b2',
|
46
|
+
400: '#fc8181',
|
47
|
+
500: '#f56565',
|
48
|
+
600: '#e53e3e',
|
49
|
+
700: '#c53030',
|
50
|
+
800: '#9b2c2c',
|
51
|
+
900: '#742a2a',
|
550
52
|
},
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
53
|
+
orange: {
|
54
|
+
100: '#fffaf0',
|
55
|
+
200: '#feebc8',
|
56
|
+
300: '#fbd38d',
|
57
|
+
400: '#f6ad55',
|
58
|
+
500: '#ed8936',
|
59
|
+
600: '#dd6b20',
|
60
|
+
700: '#c05621',
|
61
|
+
800: '#9c4221',
|
62
|
+
900: '#7b341e',
|
561
63
|
},
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
'150': '1.5',
|
64
|
+
yellow: {
|
65
|
+
100: '#fffff0',
|
66
|
+
200: '#fefcbf',
|
67
|
+
300: '#faf089',
|
68
|
+
400: '#f6e05e',
|
69
|
+
500: '#ecc94b',
|
70
|
+
600: '#d69e2e',
|
71
|
+
700: '#b7791f',
|
72
|
+
800: '#975a16',
|
73
|
+
900: '#744210',
|
573
74
|
},
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
75
|
+
green: {
|
76
|
+
100: '#f0fff4',
|
77
|
+
200: '#c6f6d5',
|
78
|
+
300: '#9ae6b4',
|
79
|
+
400: '#68d391',
|
80
|
+
500: '#48bb78',
|
81
|
+
600: '#38a169',
|
82
|
+
700: '#2f855a',
|
83
|
+
800: '#276749',
|
84
|
+
900: '#22543d',
|
582
85
|
},
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
'-6': '-6deg',
|
594
|
-
'-3': '-3deg',
|
595
|
-
'0': '0',
|
596
|
-
'3': '3deg',
|
597
|
-
'6': '6deg',
|
598
|
-
'12': '12deg',
|
86
|
+
teal: {
|
87
|
+
100: '#e6fffa',
|
88
|
+
200: '#b2f5ea',
|
89
|
+
300: '#81e6d9',
|
90
|
+
400: '#4fd1c5',
|
91
|
+
500: '#38b2ac',
|
92
|
+
600: '#319795',
|
93
|
+
700: '#2c7a7b',
|
94
|
+
800: '#285e61',
|
95
|
+
900: '#234e52',
|
599
96
|
},
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
97
|
+
blue: {
|
98
|
+
100: '#ebf8ff',
|
99
|
+
200: '#bee3f8',
|
100
|
+
300: '#90cdf4',
|
101
|
+
400: '#63b3ed',
|
102
|
+
500: '#4299e1',
|
103
|
+
600: '#3182ce',
|
104
|
+
700: '#2b6cb0',
|
105
|
+
800: '#2c5282',
|
106
|
+
900: '#2a4365',
|
608
107
|
},
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
108
|
+
indigo: {
|
109
|
+
100: '#ebf4ff',
|
110
|
+
200: '#c3dafe',
|
111
|
+
300: '#a3bffa',
|
112
|
+
400: '#7f9cf5',
|
113
|
+
500: '#667eea',
|
114
|
+
600: '#5a67d8',
|
115
|
+
700: '#4c51bf',
|
116
|
+
800: '#434190',
|
117
|
+
900: '#3c366b',
|
614
118
|
},
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
119
|
+
purple: {
|
120
|
+
100: '#faf5ff',
|
121
|
+
200: '#e9d8fd',
|
122
|
+
300: '#d6bcfa',
|
123
|
+
400: '#b794f4',
|
124
|
+
500: '#9f7aea',
|
125
|
+
600: '#805ad5',
|
126
|
+
700: '#6b46c1',
|
127
|
+
800: '#553c9a',
|
128
|
+
900: '#44337a',
|
624
129
|
},
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
130
|
+
pink: {
|
131
|
+
100: '#fff5f7',
|
132
|
+
200: '#fed7e2',
|
133
|
+
300: '#fbb6ce',
|
134
|
+
400: '#f687b3',
|
135
|
+
500: '#ed64a6',
|
136
|
+
600: '#d53f8c',
|
137
|
+
700: '#b83280',
|
138
|
+
800: '#97266d',
|
139
|
+
900: '#702459',
|
634
140
|
},
|
635
|
-
}
|
141
|
+
},
|
142
|
+
spacing: {
|
143
|
+
px: '1px',
|
144
|
+
0: '0',
|
145
|
+
1: '0.25rem',
|
146
|
+
2: '0.5rem',
|
147
|
+
3: '0.75rem',
|
148
|
+
4: '1rem',
|
149
|
+
5: '1.25rem',
|
150
|
+
6: '1.5rem',
|
151
|
+
8: '2rem',
|
152
|
+
10: '2.5rem',
|
153
|
+
12: '3rem',
|
154
|
+
16: '4rem',
|
155
|
+
20: '5rem',
|
156
|
+
24: '6rem',
|
157
|
+
32: '8rem',
|
158
|
+
40: '10rem',
|
159
|
+
48: '12rem',
|
160
|
+
56: '14rem',
|
161
|
+
64: '16rem',
|
162
|
+
},
|
163
|
+
backgroundColor: theme => theme('colors'),
|
164
|
+
backgroundOpacity: theme => theme('opacity'),
|
165
|
+
backgroundPosition: {
|
166
|
+
bottom: 'bottom',
|
167
|
+
center: 'center',
|
168
|
+
left: 'left',
|
169
|
+
'left-bottom': 'left bottom',
|
170
|
+
'left-top': 'left top',
|
171
|
+
right: 'right',
|
172
|
+
'right-bottom': 'right bottom',
|
173
|
+
'right-top': 'right top',
|
174
|
+
top: 'top',
|
175
|
+
},
|
176
|
+
backgroundSize: {
|
177
|
+
auto: 'auto',
|
178
|
+
cover: 'cover',
|
179
|
+
contain: 'contain',
|
180
|
+
},
|
181
|
+
borderColor: theme => ({
|
182
|
+
...theme('colors'),
|
183
|
+
default: theme('colors.gray.300', 'currentColor'),
|
184
|
+
}),
|
185
|
+
borderOpacity: theme => theme('opacity'),
|
186
|
+
borderRadius: {
|
187
|
+
none: '0',
|
188
|
+
sm: '0.125rem',
|
189
|
+
default: '0.25rem',
|
190
|
+
md: '0.375rem',
|
191
|
+
lg: '0.5rem',
|
192
|
+
full: '9999px',
|
193
|
+
},
|
194
|
+
borderWidth: {
|
195
|
+
default: '1px',
|
196
|
+
0: '0',
|
197
|
+
2: '2px',
|
198
|
+
4: '4px',
|
199
|
+
8: '8px',
|
200
|
+
},
|
201
|
+
boxShadow: {
|
202
|
+
xs: '0 0 0 1px rgba(0, 0, 0, 0.05)',
|
203
|
+
sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
|
204
|
+
default: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',
|
205
|
+
md: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
|
206
|
+
lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
|
207
|
+
xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
|
208
|
+
'2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
|
209
|
+
inner: 'inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)',
|
210
|
+
outline: '0 0 0 3px rgba(66, 153, 225, 0.5)',
|
211
|
+
none: 'none',
|
212
|
+
},
|
213
|
+
container: {},
|
214
|
+
cursor: {
|
215
|
+
auto: 'auto',
|
216
|
+
default: 'default',
|
217
|
+
pointer: 'pointer',
|
218
|
+
wait: 'wait',
|
219
|
+
text: 'text',
|
220
|
+
move: 'move',
|
221
|
+
'not-allowed': 'not-allowed',
|
222
|
+
},
|
223
|
+
divideColor: theme => theme('borderColor'),
|
224
|
+
divideOpacity: theme => theme('borderOpacity'),
|
225
|
+
divideWidth: theme => theme('borderWidth'),
|
226
|
+
fill: {
|
227
|
+
current: 'currentColor',
|
228
|
+
},
|
229
|
+
flex: {
|
230
|
+
1: '1 1 0%',
|
231
|
+
auto: '1 1 auto',
|
232
|
+
initial: '0 1 auto',
|
233
|
+
none: 'none',
|
234
|
+
},
|
235
|
+
flexGrow: {
|
236
|
+
0: '0',
|
237
|
+
default: '1',
|
238
|
+
},
|
239
|
+
flexShrink: {
|
240
|
+
0: '0',
|
241
|
+
default: '1',
|
242
|
+
},
|
243
|
+
fontFamily: {
|
244
|
+
sans: [
|
245
|
+
'system-ui',
|
246
|
+
'-apple-system',
|
247
|
+
'BlinkMacSystemFont',
|
248
|
+
'"Segoe UI"',
|
249
|
+
'Roboto',
|
250
|
+
'"Helvetica Neue"',
|
251
|
+
'Arial',
|
252
|
+
'"Noto Sans"',
|
253
|
+
'sans-serif',
|
254
|
+
'"Apple Color Emoji"',
|
255
|
+
'"Segoe UI Emoji"',
|
256
|
+
'"Segoe UI Symbol"',
|
257
|
+
'"Noto Color Emoji"',
|
258
|
+
],
|
259
|
+
serif: ['Georgia', 'Cambria', '"Times New Roman"', 'Times', 'serif'],
|
260
|
+
mono: [
|
261
|
+
'Menlo',
|
262
|
+
'Monaco',
|
263
|
+
'Consolas',
|
264
|
+
'"Liberation Mono"',
|
265
|
+
'"Courier New"',
|
266
|
+
'monospace',
|
267
|
+
],
|
268
|
+
},
|
269
|
+
fontSize: {
|
270
|
+
xs: '0.75rem',
|
271
|
+
sm: '0.875rem',
|
272
|
+
base: '1rem',
|
273
|
+
lg: '1.125rem',
|
274
|
+
xl: '1.25rem',
|
275
|
+
'2xl': '1.5rem',
|
276
|
+
'3xl': '1.875rem',
|
277
|
+
'4xl': '2.25rem',
|
278
|
+
'5xl': '3rem',
|
279
|
+
'6xl': '4rem',
|
280
|
+
},
|
281
|
+
fontWeight: {
|
282
|
+
hairline: '100',
|
283
|
+
thin: '200',
|
284
|
+
light: '300',
|
285
|
+
normal: '400',
|
286
|
+
medium: '500',
|
287
|
+
semibold: '600',
|
288
|
+
bold: '700',
|
289
|
+
extrabold: '800',
|
290
|
+
black: '900',
|
291
|
+
},
|
292
|
+
height: theme => ({
|
293
|
+
auto: 'auto',
|
294
|
+
...theme('spacing'),
|
295
|
+
full: '100%',
|
296
|
+
screen: '100vh',
|
297
|
+
}),
|
298
|
+
inset: {
|
299
|
+
0: '0',
|
300
|
+
auto: 'auto',
|
301
|
+
},
|
302
|
+
letterSpacing: {
|
303
|
+
tighter: '-0.05em',
|
304
|
+
tight: '-0.025em',
|
305
|
+
normal: '0',
|
306
|
+
wide: '0.025em',
|
307
|
+
wider: '0.05em',
|
308
|
+
widest: '0.1em',
|
309
|
+
},
|
310
|
+
lineHeight: {
|
311
|
+
none: '1',
|
312
|
+
tight: '1.25',
|
313
|
+
snug: '1.375',
|
314
|
+
normal: '1.5',
|
315
|
+
relaxed: '1.625',
|
316
|
+
loose: '2',
|
317
|
+
3: '.75rem',
|
318
|
+
4: '1rem',
|
319
|
+
5: '1.25rem',
|
320
|
+
6: '1.5rem',
|
321
|
+
7: '1.75rem',
|
322
|
+
8: '2rem',
|
323
|
+
9: '2.25rem',
|
324
|
+
10: '2.5rem',
|
325
|
+
},
|
326
|
+
listStyleType: {
|
327
|
+
none: 'none',
|
328
|
+
disc: 'disc',
|
329
|
+
decimal: 'decimal',
|
330
|
+
},
|
331
|
+
margin: (theme, { negative }) => ({
|
332
|
+
auto: 'auto',
|
333
|
+
...theme('spacing'),
|
334
|
+
...negative(theme('spacing')),
|
335
|
+
}),
|
336
|
+
maxHeight: {
|
337
|
+
full: '100%',
|
338
|
+
screen: '100vh',
|
339
|
+
},
|
340
|
+
maxWidth: (theme, { breakpoints }) => ({
|
341
|
+
none: 'none',
|
342
|
+
xs: '20rem',
|
343
|
+
sm: '24rem',
|
344
|
+
md: '28rem',
|
345
|
+
lg: '32rem',
|
346
|
+
xl: '36rem',
|
347
|
+
'2xl': '42rem',
|
348
|
+
'3xl': '48rem',
|
349
|
+
'4xl': '56rem',
|
350
|
+
'5xl': '64rem',
|
351
|
+
'6xl': '72rem',
|
352
|
+
full: '100%',
|
353
|
+
...breakpoints(theme('screens')),
|
354
|
+
}),
|
355
|
+
minHeight: {
|
356
|
+
0: '0',
|
357
|
+
full: '100%',
|
358
|
+
screen: '100vh',
|
359
|
+
},
|
360
|
+
minWidth: {
|
361
|
+
0: '0',
|
362
|
+
full: '100%',
|
363
|
+
},
|
364
|
+
objectPosition: {
|
365
|
+
bottom: 'bottom',
|
366
|
+
center: 'center',
|
367
|
+
left: 'left',
|
368
|
+
'left-bottom': 'left bottom',
|
369
|
+
'left-top': 'left top',
|
370
|
+
right: 'right',
|
371
|
+
'right-bottom': 'right bottom',
|
372
|
+
'right-top': 'right top',
|
373
|
+
top: 'top',
|
374
|
+
},
|
375
|
+
opacity: {
|
376
|
+
0: '0',
|
377
|
+
25: '0.25',
|
378
|
+
50: '0.5',
|
379
|
+
75: '0.75',
|
380
|
+
100: '1',
|
381
|
+
},
|
382
|
+
order: {
|
383
|
+
first: '-9999',
|
384
|
+
last: '9999',
|
385
|
+
none: '0',
|
386
|
+
1: '1',
|
387
|
+
2: '2',
|
388
|
+
3: '3',
|
389
|
+
4: '4',
|
390
|
+
5: '5',
|
391
|
+
6: '6',
|
392
|
+
7: '7',
|
393
|
+
8: '8',
|
394
|
+
9: '9',
|
395
|
+
10: '10',
|
396
|
+
11: '11',
|
397
|
+
12: '12',
|
398
|
+
},
|
399
|
+
padding: theme => theme('spacing'),
|
400
|
+
placeholderColor: theme => theme('colors'),
|
401
|
+
placeholderOpacity: theme => theme('opacity'),
|
402
|
+
space: (theme, { negative }) => ({
|
403
|
+
...theme('spacing'),
|
404
|
+
...negative(theme('spacing')),
|
405
|
+
}),
|
406
|
+
stroke: {
|
407
|
+
current: 'currentColor',
|
408
|
+
},
|
409
|
+
strokeWidth: {
|
410
|
+
0: '0',
|
411
|
+
1: '1',
|
412
|
+
2: '2',
|
413
|
+
},
|
414
|
+
textColor: theme => theme('colors'),
|
415
|
+
textOpacity: theme => theme('opacity'),
|
416
|
+
width: theme => ({
|
417
|
+
auto: 'auto',
|
418
|
+
...theme('spacing'),
|
419
|
+
'1/2': '50%',
|
420
|
+
'1/3': '33.333333%',
|
421
|
+
'2/3': '66.666667%',
|
422
|
+
'1/4': '25%',
|
423
|
+
'2/4': '50%',
|
424
|
+
'3/4': '75%',
|
425
|
+
'1/5': '20%',
|
426
|
+
'2/5': '40%',
|
427
|
+
'3/5': '60%',
|
428
|
+
'4/5': '80%',
|
429
|
+
'1/6': '16.666667%',
|
430
|
+
'2/6': '33.333333%',
|
431
|
+
'3/6': '50%',
|
432
|
+
'4/6': '66.666667%',
|
433
|
+
'5/6': '83.333333%',
|
434
|
+
'1/12': '8.333333%',
|
435
|
+
'2/12': '16.666667%',
|
436
|
+
'3/12': '25%',
|
437
|
+
'4/12': '33.333333%',
|
438
|
+
'5/12': '41.666667%',
|
439
|
+
'6/12': '50%',
|
440
|
+
'7/12': '58.333333%',
|
441
|
+
'8/12': '66.666667%',
|
442
|
+
'9/12': '75%',
|
443
|
+
'10/12': '83.333333%',
|
444
|
+
'11/12': '91.666667%',
|
445
|
+
full: '100%',
|
446
|
+
screen: '100vw',
|
447
|
+
}),
|
448
|
+
zIndex: {
|
449
|
+
auto: 'auto',
|
450
|
+
0: '0',
|
451
|
+
10: '10',
|
452
|
+
20: '20',
|
453
|
+
30: '30',
|
454
|
+
40: '40',
|
455
|
+
50: '50',
|
456
|
+
},
|
457
|
+
gap: theme => theme('spacing'),
|
458
|
+
gridTemplateColumns: {
|
459
|
+
none: 'none',
|
460
|
+
1: 'repeat(1, minmax(0, 1fr))',
|
461
|
+
2: 'repeat(2, minmax(0, 1fr))',
|
462
|
+
3: 'repeat(3, minmax(0, 1fr))',
|
463
|
+
4: 'repeat(4, minmax(0, 1fr))',
|
464
|
+
5: 'repeat(5, minmax(0, 1fr))',
|
465
|
+
6: 'repeat(6, minmax(0, 1fr))',
|
466
|
+
7: 'repeat(7, minmax(0, 1fr))',
|
467
|
+
8: 'repeat(8, minmax(0, 1fr))',
|
468
|
+
9: 'repeat(9, minmax(0, 1fr))',
|
469
|
+
10: 'repeat(10, minmax(0, 1fr))',
|
470
|
+
11: 'repeat(11, minmax(0, 1fr))',
|
471
|
+
12: 'repeat(12, minmax(0, 1fr))',
|
472
|
+
},
|
473
|
+
gridColumn: {
|
474
|
+
auto: 'auto',
|
475
|
+
'span-1': 'span 1 / span 1',
|
476
|
+
'span-2': 'span 2 / span 2',
|
477
|
+
'span-3': 'span 3 / span 3',
|
478
|
+
'span-4': 'span 4 / span 4',
|
479
|
+
'span-5': 'span 5 / span 5',
|
480
|
+
'span-6': 'span 6 / span 6',
|
481
|
+
'span-7': 'span 7 / span 7',
|
482
|
+
'span-8': 'span 8 / span 8',
|
483
|
+
'span-9': 'span 9 / span 9',
|
484
|
+
'span-10': 'span 10 / span 10',
|
485
|
+
'span-11': 'span 11 / span 11',
|
486
|
+
'span-12': 'span 12 / span 12',
|
487
|
+
},
|
488
|
+
gridColumnStart: {
|
489
|
+
auto: 'auto',
|
490
|
+
1: '1',
|
491
|
+
2: '2',
|
492
|
+
3: '3',
|
493
|
+
4: '4',
|
494
|
+
5: '5',
|
495
|
+
6: '6',
|
496
|
+
7: '7',
|
497
|
+
8: '8',
|
498
|
+
9: '9',
|
499
|
+
10: '10',
|
500
|
+
11: '11',
|
501
|
+
12: '12',
|
502
|
+
13: '13',
|
503
|
+
},
|
504
|
+
gridColumnEnd: {
|
505
|
+
auto: 'auto',
|
506
|
+
1: '1',
|
507
|
+
2: '2',
|
508
|
+
3: '3',
|
509
|
+
4: '4',
|
510
|
+
5: '5',
|
511
|
+
6: '6',
|
512
|
+
7: '7',
|
513
|
+
8: '8',
|
514
|
+
9: '9',
|
515
|
+
10: '10',
|
516
|
+
11: '11',
|
517
|
+
12: '12',
|
518
|
+
13: '13',
|
519
|
+
},
|
520
|
+
gridTemplateRows: {
|
521
|
+
none: 'none',
|
522
|
+
1: 'repeat(1, minmax(0, 1fr))',
|
523
|
+
2: 'repeat(2, minmax(0, 1fr))',
|
524
|
+
3: 'repeat(3, minmax(0, 1fr))',
|
525
|
+
4: 'repeat(4, minmax(0, 1fr))',
|
526
|
+
5: 'repeat(5, minmax(0, 1fr))',
|
527
|
+
6: 'repeat(6, minmax(0, 1fr))',
|
528
|
+
},
|
529
|
+
gridRow: {
|
530
|
+
auto: 'auto',
|
531
|
+
'span-1': 'span 1 / span 1',
|
532
|
+
'span-2': 'span 2 / span 2',
|
533
|
+
'span-3': 'span 3 / span 3',
|
534
|
+
'span-4': 'span 4 / span 4',
|
535
|
+
'span-5': 'span 5 / span 5',
|
536
|
+
'span-6': 'span 6 / span 6',
|
537
|
+
},
|
538
|
+
gridRowStart: {
|
539
|
+
auto: 'auto',
|
540
|
+
1: '1',
|
541
|
+
2: '2',
|
542
|
+
3: '3',
|
543
|
+
4: '4',
|
544
|
+
5: '5',
|
545
|
+
6: '6',
|
546
|
+
7: '7',
|
547
|
+
},
|
548
|
+
gridRowEnd: {
|
549
|
+
auto: 'auto',
|
550
|
+
1: '1',
|
551
|
+
2: '2',
|
552
|
+
3: '3',
|
553
|
+
4: '4',
|
554
|
+
5: '5',
|
555
|
+
6: '6',
|
556
|
+
7: '7',
|
557
|
+
},
|
558
|
+
transformOrigin: {
|
559
|
+
center: 'center',
|
560
|
+
top: 'top',
|
561
|
+
'top-right': 'top right',
|
562
|
+
right: 'right',
|
563
|
+
'bottom-right': 'bottom right',
|
564
|
+
bottom: 'bottom',
|
565
|
+
'bottom-left': 'bottom left',
|
566
|
+
left: 'left',
|
567
|
+
'top-left': 'top left',
|
568
|
+
},
|
569
|
+
scale: {
|
570
|
+
0: '0',
|
571
|
+
50: '.5',
|
572
|
+
75: '.75',
|
573
|
+
90: '.9',
|
574
|
+
95: '.95',
|
575
|
+
100: '1',
|
576
|
+
105: '1.05',
|
577
|
+
110: '1.1',
|
578
|
+
125: '1.25',
|
579
|
+
150: '1.5',
|
580
|
+
},
|
581
|
+
rotate: {
|
582
|
+
'-180': '-180deg',
|
583
|
+
'-90': '-90deg',
|
584
|
+
'-45': '-45deg',
|
585
|
+
0: '0',
|
586
|
+
45: '45deg',
|
587
|
+
90: '90deg',
|
588
|
+
180: '180deg',
|
589
|
+
},
|
590
|
+
translate: (theme, { negative }) => ({
|
591
|
+
...theme('spacing'),
|
592
|
+
...negative(theme('spacing')),
|
593
|
+
'-full': '-100%',
|
594
|
+
'-1/2': '-50%',
|
595
|
+
'1/2': '50%',
|
596
|
+
full: '100%',
|
597
|
+
}),
|
598
|
+
skew: {
|
599
|
+
'-12': '-12deg',
|
600
|
+
'-6': '-6deg',
|
601
|
+
'-3': '-3deg',
|
602
|
+
0: '0',
|
603
|
+
3: '3deg',
|
604
|
+
6: '6deg',
|
605
|
+
12: '12deg',
|
606
|
+
},
|
607
|
+
transitionProperty: {
|
608
|
+
none: 'none',
|
609
|
+
all: 'all',
|
610
|
+
default:
|
611
|
+
'background-color, border-color, color, fill, stroke, opacity, box-shadow, transform',
|
612
|
+
colors: 'background-color, border-color, color, fill, stroke',
|
613
|
+
opacity: 'opacity',
|
614
|
+
shadow: 'box-shadow',
|
615
|
+
transform: 'transform',
|
616
|
+
},
|
617
|
+
transitionTimingFunction: {
|
618
|
+
linear: 'linear',
|
619
|
+
in: 'cubic-bezier(0.4, 0, 1, 1)',
|
620
|
+
out: 'cubic-bezier(0, 0, 0.2, 1)',
|
621
|
+
'in-out': 'cubic-bezier(0.4, 0, 0.2, 1)',
|
622
|
+
},
|
623
|
+
transitionDuration: {
|
624
|
+
75: '75ms',
|
625
|
+
100: '100ms',
|
626
|
+
150: '150ms',
|
627
|
+
200: '200ms',
|
628
|
+
300: '300ms',
|
629
|
+
500: '500ms',
|
630
|
+
700: '700ms',
|
631
|
+
1000: '1000ms',
|
632
|
+
},
|
633
|
+
transitionDelay: {
|
634
|
+
75: '75ms',
|
635
|
+
100: '100ms',
|
636
|
+
150: '150ms',
|
637
|
+
200: '200ms',
|
638
|
+
300: '300ms',
|
639
|
+
500: '500ms',
|
640
|
+
700: '700ms',
|
641
|
+
1000: '1000ms',
|
642
|
+
},
|
643
|
+
};
|
636
644
|
```
|
637
645
|
|
638
646
|
:::tip 提示
|
639
647
|
More about:<a href="https://tailwindcss.com/docs/configuration#theme" target="_blank">TailwindCSS configuration</a>。
|
640
648
|
:::
|
649
|
+
|
641
650
|
</details>
|
642
651
|
|
643
652
|
`designSystem` is used to define the project's color palette, typographic scale (Typographic Scales or Type Scale), font list, breakpoints, border rounded values, and more. Because Modern.js borrowed the design method of Tailwind Theme, and also integrates Tailwind CSS internally, the `designSystem` is used in the same way as Tailwind CSS Theme.
|
@@ -703,18 +712,26 @@ const designSystem = {
|
|
703
712
|
These screen names are reflected in `utilities`, so `text-center` now looks like this:
|
704
713
|
|
705
714
|
```css
|
706
|
-
.text-center {
|
715
|
+
.text-center {
|
716
|
+
text-align: center;
|
717
|
+
}
|
707
718
|
|
708
719
|
@media (min-width: 640px) {
|
709
|
-
|
720
|
+
.tablet\:text-center {
|
721
|
+
text-align: center;
|
722
|
+
}
|
710
723
|
}
|
711
724
|
|
712
725
|
@media (min-width: 1024px) {
|
713
|
-
|
726
|
+
.laptop\:text-center {
|
727
|
+
text-align: center;
|
728
|
+
}
|
714
729
|
}
|
715
730
|
|
716
731
|
@media (min-width: 1280px) {
|
717
|
-
|
732
|
+
.desktop\:text-center {
|
733
|
+
text-align: center;
|
734
|
+
}
|
718
735
|
}
|
719
736
|
```
|
720
737
|
|
@@ -864,7 +881,6 @@ const designSystem = {
|
|
864
881
|
|
865
882
|
By default, these colors are inherited by the `backgroundColor`, `textColor`, and `borderColor` core plugins.
|
866
883
|
|
867
|
-
|
868
884
|
o learn more, see: [Customizing Colors](https://tailwindcss.com/docs/customizing-colors)。
|
869
885
|
|
870
886
|
#### Spacing
|
@@ -896,8 +912,8 @@ const designSystem = {
|
|
896
912
|
},
|
897
913
|
};
|
898
914
|
```
|
899
|
-
By default, these values are inherited by the `padding`, `margin`, `negativeMargin`, `width`, and `height` core plugins.
|
900
915
|
|
916
|
+
By default, these values are inherited by the `padding`, `margin`, `negativeMargin`, `width`, and `height` core plugins.
|
901
917
|
|
902
918
|
To learn more, see: [Customizing Spacing](https://tailwindcss.com/docs/customizing-spacing)。
|
903
919
|
|
@@ -922,15 +938,24 @@ const designSystem = {
|
|
922
938
|
** The property name determines the suffix of the generated class, and the value determines the value of the actual CSS declaration. ** The example `borderRadius` configuration above will generate the following CSS class:
|
923
939
|
|
924
940
|
```css
|
925
|
-
.rounded-none {
|
926
|
-
|
927
|
-
|
928
|
-
.rounded-
|
929
|
-
|
941
|
+
.rounded-none {
|
942
|
+
border-radius: 0;
|
943
|
+
}
|
944
|
+
.rounded-sm {
|
945
|
+
border-radius: 0.125rem;
|
946
|
+
}
|
947
|
+
.rounded {
|
948
|
+
border-radius: 0.25rem;
|
949
|
+
}
|
950
|
+
.rounded-lg {
|
951
|
+
border-radius: 0.5rem;
|
952
|
+
}
|
953
|
+
.rounded-full {
|
954
|
+
border-radius: 9999px;
|
955
|
+
}
|
930
956
|
```
|
931
957
|
|
932
|
-
You will notice that the `rounded`
|
933
|
-
|
958
|
+
You will notice that the `rounded` class is created without the suffix using the `default` property in the theme configuration. This is a common convention in Tailwind CSS supported by many, though not all, core plugins.
|
934
959
|
|
935
960
|
To learn more about customizing a specific core plugin, visit the plugin's documentation.
|
936
961
|
|
@@ -942,7 +967,7 @@ Out of the box, your project will automatically inherit values from the default
|
|
942
967
|
|
943
968
|
To override the options in the default configuration, add the properties to override in `designSystem`:
|
944
969
|
|
945
|
-
```
|
970
|
+
```ts title="modern.config.ts"
|
946
971
|
const designSystem = {
|
947
972
|
// Replaces all of the default `opacity` values
|
948
973
|
opacity: {
|
@@ -970,9 +995,9 @@ Any properties you don't provide will be inherited from the default theme, so in
|
|
970
995
|
|
971
996
|
If you want to keep the default value for the theme option, but want to add a new value, add the extended content in the `designSystem.extend` property.
|
972
997
|
|
973
|
-
For example, if you want to add an additional breakpoint but keep the existing one, you can extend the `screens`
|
998
|
+
For example, if you want to add an additional breakpoint but keep the existing one, you can extend the `screens` property:
|
974
999
|
|
975
|
-
```
|
1000
|
+
```ts title="modern.config.ts"
|
976
1001
|
const designSystem = {
|
977
1002
|
extend: {
|
978
1003
|
// Adds a new breakpoint in addition to the default breakpoints
|
@@ -991,7 +1016,7 @@ export default defineConfig({
|
|
991
1016
|
|
992
1017
|
You can of course override some parts of the default theme and extend other parts of the default theme in the same configuration:
|
993
1018
|
|
994
|
-
```
|
1019
|
+
```ts title="modern.config.ts"
|
995
1020
|
const designSystem = {
|
996
1021
|
opacity: {
|
997
1022
|
0: '0',
|
@@ -1019,10 +1044,9 @@ export default defineConfig({
|
|
1019
1044
|
|
1020
1045
|
If you need to reference another value in the configuration, you can do so by providing a closure function instead of a static value. The function will receive a `theme()` function as an argument, which you can use to look up other values in the configuration using dot notation.
|
1021
1046
|
|
1022
|
-
|
1023
1047
|
For example, you can generate a `fill` utility for each color in the palette by referencing `theme('colors')` on a `fill` configuration.
|
1024
1048
|
|
1025
|
-
```
|
1049
|
+
```ts title="modern.config.ts"
|
1026
1050
|
const designSystem = {
|
1027
1051
|
colors: {
|
1028
1052
|
// ...
|
@@ -1043,7 +1067,7 @@ The `theme()` function tries to find the value you're looking for from a fully m
|
|
1043
1067
|
|
1044
1068
|
If you want to reference a value in the default configuration for any reason, you can import it from `tailwindcss/defaultTheme`. A useful example is if you want to add one of the fonts provided by the default configuration:
|
1045
1069
|
|
1046
|
-
```
|
1070
|
+
```ts title="modern.config.ts"
|
1047
1071
|
const defaultTheme = require('tailwindcss/defaultTheme');
|
1048
1072
|
|
1049
1073
|
const designSystem = {
|
@@ -1108,7 +1132,7 @@ const designSystem = {
|
|
1108
1132
|
|
1109
1133
|
Another example is adding new attributes to a custom plugin for reference. For example, if you wrote a gradual change plugin for a project, you can add a gradual change attribute to the subject object referenced by the plugin:
|
1110
1134
|
|
1111
|
-
```
|
1135
|
+
```ts title="modern.config.ts"
|
1112
1136
|
const designSystem = {
|
1113
1137
|
gradients: theme => ({
|
1114
1138
|
'blue-green': [theme('colors.blue.500'), theme('colors.green.500')],
|
@@ -1133,7 +1157,6 @@ export default defineConfig({
|
|
1133
1157
|
|
1134
1158
|
With the exception of `screens`, `colors`, and `spacing`, all properties in the configuration object map to the core plugin of `Tailwind CSS`. Since many plugins are responsible for accepting only CSS properties for static value sets (eg `float`), note that not every plugin has corresponding properties in the theme object.
|
1135
1159
|
|
1136
|
-
|
1137
1160
|
All of these properties can also be used in the `designSystem.extend` property to extend the default theme.
|
1138
1161
|
|
1139
1162
|
See this [link](https://tailwindcss.com/docs/theme#configuration-reference) for what all properties do.
|
@@ -1146,5 +1169,4 @@ In addition to the same configuration as the Tailwind CSS Theme, there are addit
|
|
1146
1169
|
|
1147
1170
|
The configuration type is `boolean` and defaults to `false`.
|
1148
1171
|
|
1149
|
-
|
1150
1172
|
When the configuration value is `true`, the runtime provides the `styled-components` `ThemeProvider` component outside the application and will inject it through the `Theme Token` object generated by `designSystem`.
|