@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.
Files changed (525) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/en/docusaurus-plugin-content-docs/current/apis/app/commands/index.md +0 -5
  3. package/en/docusaurus-plugin-content-docs/current/apis/app/commands/lint.md +1 -1
  4. package/en/docusaurus-plugin-content-docs/current/apis/app/commands/serve.md +2 -4
  5. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/framework/lambda.md +12 -12
  6. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/functions/api.md +13 -13
  7. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/functions/app.md +0 -2
  8. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/functions/common.md +1 -3
  9. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/app.md +16 -9
  10. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/index_.md +0 -1
  11. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/routes.md +5 -3
  12. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/server.md +6 -4
  13. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/stories.md +2 -2
  14. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/test.md +1 -1
  15. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/app/define-config.md +0 -1
  16. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/bff/hook.md +3 -3
  17. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/bootstrap.md +3 -6
  18. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/create-app.md +1 -3
  19. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/use-loader.md +2 -2
  20. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/use-module-apps.md +58 -51
  21. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/use-runtime-context.md +3 -4
  22. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/index.md +0 -5
  23. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/Provider.md +1 -1
  24. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/connect.md +8 -5
  25. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/create-store.md +1 -3
  26. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/handle-effect.md +3 -3
  27. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/model_.md +0 -1
  28. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/use-model.md +0 -3
  29. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/use-store.md +0 -2
  30. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/router/router.md +23 -54
  31. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/ssr/no-ssr.md +1 -8
  32. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/ssr/pre-render.md +10 -6
  33. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/testing/render.md +0 -2
  34. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/utility/css-in-js.md +2 -2
  35. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/utility/head.md +3 -5
  36. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/utility/loadable.md +14 -15
  37. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/web-server/hook.md +4 -5
  38. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/web-server/middleware.md +7 -6
  39. package/en/docusaurus-plugin-content-docs/current/components/command-tip.md +3 -2
  40. package/en/docusaurus-plugin-content-docs/current/components/debug-app.md +17 -0
  41. package/en/docusaurus-plugin-content-docs/current/components/enable-bff.md +10 -14
  42. package/en/docusaurus-plugin-content-docs/current/components/enable-micro-frontend.md +4 -4
  43. package/en/docusaurus-plugin-content-docs/current/components/global-proxy-config.md +6 -9
  44. package/en/docusaurus-plugin-content-docs/current/components/global-proxy.md +0 -1
  45. package/en/docusaurus-plugin-content-docs/current/components/micro-master-manifest-config.md +2 -2
  46. package/en/docusaurus-plugin-content-docs/current/components/micro-runtime-config.md +1 -1
  47. package/en/docusaurus-plugin-content-docs/current/components/prerequisites.md +19 -0
  48. package/en/docusaurus-plugin-content-docs/current/components/reduck-migration.md +0 -1
  49. package/en/docusaurus-plugin-content-docs/current/components/reduck-tip.md +1 -1
  50. package/en/docusaurus-plugin-content-docs/current/components/router-legacy-tip.md +0 -1
  51. package/en/docusaurus-plugin-content-docs/current/configure/app/auto-load-plugin.md +8 -9
  52. package/en/docusaurus-plugin-content-docs/current/configure/app/bff/prefix.md +6 -6
  53. package/en/docusaurus-plugin-content-docs/current/configure/app/bff/proxy.md +8 -9
  54. package/en/docusaurus-plugin-content-docs/current/configure/app/builder-plugins.md +6 -6
  55. package/en/docusaurus-plugin-content-docs/current/configure/app/deploy/microFrontend.md +11 -13
  56. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/asset-prefix.md +2 -2
  57. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/hmr.md +2 -2
  58. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/https.md +2 -2
  59. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/port.md +2 -2
  60. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/progress-bar.md +2 -2
  61. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/proxy.md +0 -1
  62. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/start-url.md +2 -2
  63. package/en/docusaurus-plugin-content-docs/current/configure/app/experiments/lazy-compilation.md +2 -2
  64. package/en/docusaurus-plugin-content-docs/current/configure/app/html/app-icon.md +2 -2
  65. package/en/docusaurus-plugin-content-docs/current/configure/app/html/crossorigin.md +2 -2
  66. package/en/docusaurus-plugin-content-docs/current/configure/app/html/disable-html-folder.md +2 -2
  67. package/en/docusaurus-plugin-content-docs/current/configure/app/html/favicon-by-entries.md +2 -2
  68. package/en/docusaurus-plugin-content-docs/current/configure/app/html/favicon.md +2 -2
  69. package/en/docusaurus-plugin-content-docs/current/configure/app/html/inject-by-entries.md +2 -2
  70. package/en/docusaurus-plugin-content-docs/current/configure/app/html/inject.md +2 -2
  71. package/en/docusaurus-plugin-content-docs/current/configure/app/html/meta-by-entries.md +2 -2
  72. package/en/docusaurus-plugin-content-docs/current/configure/app/html/meta.md +2 -2
  73. package/en/docusaurus-plugin-content-docs/current/configure/app/html/mount-id.md +2 -2
  74. package/en/docusaurus-plugin-content-docs/current/configure/app/html/tags-by-entries.md +12 -0
  75. package/en/docusaurus-plugin-content-docs/current/configure/app/html/tags.md +12 -0
  76. package/en/docusaurus-plugin-content-docs/current/configure/app/html/template-by-entries.md +2 -2
  77. package/en/docusaurus-plugin-content-docs/current/configure/app/html/template-parameters-by-entries.md +2 -2
  78. package/en/docusaurus-plugin-content-docs/current/configure/app/html/template-parameters.md +2 -2
  79. package/en/docusaurus-plugin-content-docs/current/configure/app/html/template.md +2 -2
  80. package/en/docusaurus-plugin-content-docs/current/configure/app/html/title-by-entries.md +2 -2
  81. package/en/docusaurus-plugin-content-docs/current/configure/app/html/title.md +2 -2
  82. package/en/docusaurus-plugin-content-docs/current/configure/app/output/asset-prefix.md +2 -2
  83. package/en/docusaurus-plugin-content-docs/current/configure/app/output/assets-retry.md +2 -2
  84. package/en/docusaurus-plugin-content-docs/current/configure/app/output/charset.md +2 -2
  85. package/en/docusaurus-plugin-content-docs/current/configure/app/output/clean-dist-path.md +2 -2
  86. package/en/docusaurus-plugin-content-docs/current/configure/app/output/convert-to-rem.md +2 -2
  87. package/en/docusaurus-plugin-content-docs/current/configure/app/output/copy.md +2 -2
  88. package/en/docusaurus-plugin-content-docs/current/configure/app/output/css-module-local-ident-name.md +2 -2
  89. package/en/docusaurus-plugin-content-docs/current/configure/app/output/data-uri-limit.md +2 -2
  90. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-css-extract.md +2 -2
  91. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-css-module-extension.md +2 -2
  92. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-filename-hash.md +2 -2
  93. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-inline-runtime-chunk.md +2 -2
  94. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-minimize.md +2 -2
  95. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-node-polyfill.md +8 -6
  96. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-source-map.md +2 -2
  97. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-ts-checker.md +2 -2
  98. package/en/docusaurus-plugin-content-docs/current/configure/app/output/dist-path.md +2 -2
  99. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-asset-fallback.md +2 -2
  100. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-asset-manifest.md +2 -2
  101. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-css-module-tsdeclaration.md +2 -2
  102. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-inline-scripts.md +2 -2
  103. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-inline-styles.md +2 -2
  104. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-latest-decorators.md +2 -2
  105. package/en/docusaurus-plugin-content-docs/current/configure/app/output/externals.md +2 -2
  106. package/en/docusaurus-plugin-content-docs/current/configure/app/output/filename.md +2 -2
  107. package/en/docusaurus-plugin-content-docs/current/configure/app/output/legal-comments.md +2 -2
  108. package/en/docusaurus-plugin-content-docs/current/configure/app/output/override-browserslist.md +2 -2
  109. package/en/docusaurus-plugin-content-docs/current/configure/app/output/polyfill.md +2 -2
  110. package/en/docusaurus-plugin-content-docs/current/configure/app/output/ssg.md +3 -2
  111. package/en/docusaurus-plugin-content-docs/current/configure/app/output/svg-default-export.md +2 -2
  112. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/build-cache.md +2 -2
  113. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/bundle-analyze.md +2 -2
  114. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/chunk-split.md +2 -2
  115. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/print-file-size.md +2 -2
  116. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/profile.md +2 -2
  117. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/remove-console.md +2 -2
  118. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/remove-moment-locale.md +2 -2
  119. package/en/docusaurus-plugin-content-docs/current/configure/app/plugins.md +6 -6
  120. package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/intro.md +11 -10
  121. package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/master-app.md +1 -2
  122. package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/router.md +7 -7
  123. package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/state.md +15 -15
  124. package/en/docusaurus-plugin-content-docs/current/configure/app/security/sri.md +2 -2
  125. package/en/docusaurus-plugin-content-docs/current/configure/app/server/base-url.md +3 -4
  126. package/en/docusaurus-plugin-content-docs/current/configure/app/server/enable-framework-ext.md +5 -4
  127. package/en/docusaurus-plugin-content-docs/current/configure/app/server/port.md +24 -4
  128. package/en/docusaurus-plugin-content-docs/current/configure/app/server/public-routes.md +6 -6
  129. package/en/docusaurus-plugin-content-docs/current/configure/app/server/routes.md +7 -7
  130. package/en/docusaurus-plugin-content-docs/current/configure/app/server/ssr-by-entries.md +5 -5
  131. package/en/docusaurus-plugin-content-docs/current/configure/app/server/ssr.md +4 -4
  132. package/en/docusaurus-plugin-content-docs/current/configure/app/source/alias.md +2 -2
  133. package/en/docusaurus-plugin-content-docs/current/configure/app/source/compile-js-data-uri.md +2 -2
  134. package/en/docusaurus-plugin-content-docs/current/configure/app/source/config-dir.md +2 -2
  135. package/en/docusaurus-plugin-content-docs/current/configure/app/source/define.md +2 -2
  136. package/en/docusaurus-plugin-content-docs/current/configure/app/source/design-system.md +656 -634
  137. package/en/docusaurus-plugin-content-docs/current/configure/app/source/disable-default-entries.md +1 -1
  138. package/en/docusaurus-plugin-content-docs/current/configure/app/source/disable-entry-dirs.md +8 -8
  139. package/en/docusaurus-plugin-content-docs/current/configure/app/source/enable-async-entry.md +1 -1
  140. package/en/docusaurus-plugin-content-docs/current/configure/app/source/entries-dir.md +7 -7
  141. package/en/docusaurus-plugin-content-docs/current/configure/app/source/entries.md +4 -6
  142. package/en/docusaurus-plugin-content-docs/current/configure/app/source/exclude.md +2 -2
  143. package/en/docusaurus-plugin-content-docs/current/configure/app/source/global-vars.md +2 -2
  144. package/en/docusaurus-plugin-content-docs/current/configure/app/source/include.md +2 -2
  145. package/en/docusaurus-plugin-content-docs/current/configure/app/source/module-scopes.md +2 -2
  146. package/en/docusaurus-plugin-content-docs/current/configure/app/source/pre-entry.md +2 -2
  147. package/en/docusaurus-plugin-content-docs/current/configure/app/source/resolve-extension-prefix.md +2 -2
  148. package/en/docusaurus-plugin-content-docs/current/configure/app/source/resolve-main-fields.md +2 -2
  149. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/autoprefixer.md +2 -2
  150. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/babel.md +2 -2
  151. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/css-extract.md +2 -2
  152. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/css-loader.md +2 -2
  153. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/dev-server.md +2 -2
  154. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/html-plugin.md +2 -2
  155. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/inspector.md +2 -2
  156. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/jest.md +9 -9
  157. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/less.md +2 -2
  158. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/minify-css.md +2 -2
  159. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/postcss.md +2 -2
  160. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/pug.md +2 -2
  161. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/sass.md +2 -2
  162. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/style-loader.md +2 -2
  163. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/styled-components.md +2 -2
  164. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/swc.md +12 -1
  165. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/terser.md +2 -2
  166. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/ts-checker.md +2 -2
  167. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/ts-loader.md +2 -2
  168. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/webpack-chain.md +2 -2
  169. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/webpack.md +2 -2
  170. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/frameworks.md +6 -6
  171. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/function.md +44 -38
  172. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/index.md +9 -9
  173. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/type.md +0 -1
  174. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/code-split.md +3 -4
  175. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/compatibility.md +6 -7
  176. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/eslint.md +0 -1
  177. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/index.md +0 -5
  178. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/low-level.md +17 -19
  179. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/ssg.md +8 -10
  180. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/ssr.md +5 -11
  181. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/testing.md +3 -3
  182. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/web-server.md +3 -4
  183. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/alias.md +7 -11
  184. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/css-in-js.md +6 -6
  185. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/css-modules.md +2 -2
  186. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/less-sass.md +1 -2
  187. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/postcss.md +43 -47
  188. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/tailwindcss.md +3 -3
  189. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/data-fetch.md +106 -192
  190. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/env-vars.md +8 -8
  191. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/html.md +55 -47
  192. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/mock.md +4 -4
  193. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/proxy.md +4 -5
  194. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/routes.md +90 -9
  195. package/en/docusaurus-plugin-content-docs/current/guides/concept/entries.md +1 -2
  196. package/en/docusaurus-plugin-content-docs/current/guides/get-started/quick-start.md +2 -2
  197. package/en/docusaurus-plugin-content-docs/current/guides/get-started/upgrade.md +1 -1
  198. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/extend.md +13 -13
  199. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/hook-list.md +2 -2
  200. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/hook.md +57 -54
  201. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/implement.md +11 -11
  202. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/lifecycle.md +0 -1
  203. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/plugin-api.md +4 -4
  204. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/app.md +33 -33
  205. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/ejs.md +3 -3
  206. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/fs.md +3 -3
  207. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/git.md +3 -2
  208. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/handlebars.md +3 -4
  209. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/json.md +9 -12
  210. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/npm.md +2 -3
  211. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/introduce.md +4 -3
  212. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/run-in-js.md +4 -5
  213. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/structure.md +13 -11
  214. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/config/common.md +18 -27
  215. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/abstract.md +1 -4
  216. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/file/introduce.md +1 -1
  217. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/file/updateJSONFile.md +4 -5
  218. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/hook/onForged.md +0 -1
  219. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/addInputAfter.md +1 -4
  220. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/addInputBefore.md +1 -3
  221. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/setInput.md +1 -1
  222. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/type.md +1 -1
  223. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/introduce.md +8 -9
  224. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/develop.md +11 -12
  225. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/use.md +8 -8
  226. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/project.md +1 -2
  227. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c01-introduction.md +7 -8
  228. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c02-development.md +18 -21
  229. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c03-main-app.md +41 -44
  230. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c04-communicate.md +7 -5
  231. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c05-mixed-stack.md +1 -1
  232. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/auto-actions.md +0 -1
  233. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/computed-state.md +0 -2
  234. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/define-model.md +3 -6
  235. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/faq.md +2 -5
  236. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/manage-effects.md +2 -5
  237. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/model-communicate.md +1 -4
  238. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/performance.md +1 -5
  239. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/quick-start.md +0 -6
  240. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/redux-integration.md +3 -2
  241. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/test-model.md +1 -1
  242. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/typescript-best-practice.md +13 -14
  243. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/use-model.md +14 -12
  244. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/use-out-of-modernjs.md +4 -6
  245. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c01-start.md +19 -19
  246. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c02-component.md +11 -11
  247. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c03-css.md +52 -55
  248. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c04-routes.md +23 -23
  249. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c05-loader.md +12 -11
  250. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c06-model.md +28 -28
  251. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c07-container.md +25 -26
  252. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c08-entries.md +36 -38
  253. package/en/docusaurus-plugin-content-docs/current.json +3 -47
  254. package/package.json +3 -3
  255. package/scripts/config.ts +4 -2
  256. package/scripts/summary.en.json +1 -1
  257. package/scripts/summary.zh.json +1 -1
  258. package/scripts/sync.ts +1 -1
  259. package/zh/apis/app/commands/index.md +0 -5
  260. package/zh/apis/app/commands/lint.md +1 -1
  261. package/zh/apis/app/commands/serve.md +2 -4
  262. package/zh/apis/app/hooks/api/framework/lambda.md +12 -12
  263. package/zh/apis/app/hooks/api/functions/api.md +13 -13
  264. package/zh/apis/app/hooks/api/functions/app.md +0 -2
  265. package/zh/apis/app/hooks/api/functions/common.md +1 -1
  266. package/zh/apis/app/hooks/index.md +0 -5
  267. package/zh/apis/app/hooks/shared.md +0 -1
  268. package/zh/apis/app/hooks/src/app.md +16 -9
  269. package/zh/apis/app/hooks/src/index_.md +0 -2
  270. package/zh/apis/app/hooks/src/routes.md +6 -7
  271. package/zh/apis/app/hooks/src/server.md +6 -4
  272. package/zh/apis/app/hooks/src/stories.md +1 -1
  273. package/zh/apis/app/hooks/src/test.md +1 -1
  274. package/zh/apis/app/runtime/app/define-config.md +1 -2
  275. package/zh/apis/app/runtime/bff/hook.md +3 -3
  276. package/zh/apis/app/runtime/core/bootstrap.md +2 -3
  277. package/zh/apis/app/runtime/core/use-loader.md +2 -2
  278. package/zh/apis/app/runtime/core/use-module-apps.md +53 -50
  279. package/zh/apis/app/runtime/core/use-runtime-context.md +3 -4
  280. package/zh/apis/app/runtime/index.md +0 -5
  281. package/zh/apis/app/runtime/model/Provider.md +1 -0
  282. package/zh/apis/app/runtime/model/auto-actions.md +1 -1
  283. package/zh/apis/app/runtime/model/connect.md +9 -5
  284. package/zh/apis/app/runtime/model/create-app.md +3 -3
  285. package/zh/apis/app/runtime/model/create-store.md +2 -4
  286. package/zh/apis/app/runtime/model/handle-effect.md +3 -4
  287. package/zh/apis/app/runtime/model/model_.md +0 -3
  288. package/zh/apis/app/runtime/model/use-local-model.md +0 -1
  289. package/zh/apis/app/runtime/model/use-store.md +0 -2
  290. package/zh/apis/app/runtime/router/router.md +23 -53
  291. package/zh/apis/app/runtime/ssr/no-ssr.md +1 -5
  292. package/zh/apis/app/runtime/ssr/pre-render.md +10 -6
  293. package/zh/apis/app/runtime/testing/cleanup.md +2 -2
  294. package/zh/apis/app/runtime/testing/render.md +0 -2
  295. package/zh/apis/app/runtime/utility/css-in-js.md +2 -2
  296. package/zh/apis/app/runtime/utility/head.md +3 -5
  297. package/zh/apis/app/runtime/utility/loadable.md +14 -15
  298. package/zh/apis/app/runtime/web-server/hook.md +5 -4
  299. package/zh/apis/app/runtime/web-server/middleware.md +8 -6
  300. package/zh/apis/monorepo/commands/bump.md +1 -1
  301. package/zh/apis/monorepo/commands/change.md +3 -2
  302. package/zh/apis/monorepo/commands/gen-release-note.md +1 -2
  303. package/zh/apis/monorepo/commands/index.md +1 -6
  304. package/zh/apis/monorepo/commands/lint.md +1 -1
  305. package/zh/apis/monorepo/commands/release.md +0 -1
  306. package/zh/apis/monorepo/hooks/index.md +1 -6
  307. package/zh/components/command-tip.md +3 -2
  308. package/zh/components/enable-bff.md +10 -14
  309. package/zh/components/enable-micro-frontend.md +4 -4
  310. package/zh/components/global-proxy-config.md +6 -9
  311. package/zh/components/global-proxy.md +0 -1
  312. package/zh/components/init-app.md +0 -1
  313. package/zh/components/micro-master-manifest-config.md +2 -2
  314. package/zh/components/micro-runtime-config.md +1 -1
  315. package/zh/components/reduck-migration.md +0 -1
  316. package/zh/components/router-legacy-tip.md +0 -1
  317. package/zh/configure/app/auto-load-plugin.md +9 -10
  318. package/zh/configure/app/bff/prefix.md +6 -10
  319. package/zh/configure/app/bff/proxy.md +9 -8
  320. package/zh/configure/app/builder-plugins.md +6 -6
  321. package/zh/configure/app/deploy/microFrontend.md +11 -11
  322. package/zh/configure/app/dev/asset-prefix.md +2 -2
  323. package/zh/configure/app/dev/hmr.md +2 -2
  324. package/zh/configure/app/dev/https.md +2 -2
  325. package/zh/configure/app/dev/port.md +2 -2
  326. package/zh/configure/app/dev/progress-bar.md +2 -2
  327. package/zh/configure/app/dev/proxy.md +0 -1
  328. package/zh/configure/app/dev/start-url.md +2 -2
  329. package/zh/configure/app/experiments/lazy-compilation.md +2 -2
  330. package/zh/configure/app/html/app-icon.md +2 -2
  331. package/zh/configure/app/html/crossorigin.md +2 -2
  332. package/zh/configure/app/html/disable-html-folder.md +2 -2
  333. package/zh/configure/app/html/favicon-by-entries.md +2 -2
  334. package/zh/configure/app/html/favicon.md +2 -2
  335. package/zh/configure/app/html/inject-by-entries.md +2 -2
  336. package/zh/configure/app/html/inject.md +2 -2
  337. package/zh/configure/app/html/meta-by-entries.md +2 -2
  338. package/zh/configure/app/html/meta.md +2 -2
  339. package/zh/configure/app/html/mount-id.md +2 -2
  340. package/zh/configure/app/html/tags-by-entries.md +12 -0
  341. package/zh/configure/app/html/tags.md +12 -0
  342. package/zh/configure/app/html/template-by-entries.md +2 -2
  343. package/zh/configure/app/html/template-parameters-by-entries.md +2 -2
  344. package/zh/configure/app/html/template-parameters.md +2 -2
  345. package/zh/configure/app/html/template.md +2 -2
  346. package/zh/configure/app/html/title-by-entries.md +2 -2
  347. package/zh/configure/app/html/title.md +2 -2
  348. package/zh/configure/app/output/asset-prefix.md +2 -2
  349. package/zh/configure/app/output/assets-retry.md +2 -2
  350. package/zh/configure/app/output/charset.md +2 -2
  351. package/zh/configure/app/output/clean-dist-path.md +2 -2
  352. package/zh/configure/app/output/convert-to-rem.md +2 -2
  353. package/zh/configure/app/output/copy.md +2 -2
  354. package/zh/configure/app/output/css-module-local-ident-name.md +2 -2
  355. package/zh/configure/app/output/data-uri-limit.md +2 -2
  356. package/zh/configure/app/output/disable-css-extract.md +2 -2
  357. package/zh/configure/app/output/disable-css-module-extension.md +2 -2
  358. package/zh/configure/app/output/disable-filename-hash.md +2 -2
  359. package/zh/configure/app/output/disable-inline-runtime-chunk.md +2 -2
  360. package/zh/configure/app/output/disable-minimize.md +2 -2
  361. package/zh/configure/app/output/disable-node-polyfill.md +8 -8
  362. package/zh/configure/app/output/disable-source-map.md +2 -2
  363. package/zh/configure/app/output/disable-ts-checker.md +2 -2
  364. package/zh/configure/app/output/dist-path.md +2 -2
  365. package/zh/configure/app/output/enable-asset-fallback.md +2 -2
  366. package/zh/configure/app/output/enable-asset-manifest.md +2 -2
  367. package/zh/configure/app/output/enable-css-module-tsdeclaration.md +2 -2
  368. package/zh/configure/app/output/enable-inline-scripts.md +2 -2
  369. package/zh/configure/app/output/enable-inline-styles.md +2 -2
  370. package/zh/configure/app/output/enable-latest-decorators.md +2 -2
  371. package/zh/configure/app/output/externals.md +2 -2
  372. package/zh/configure/app/output/filename.md +2 -2
  373. package/zh/configure/app/output/legal-comments.md +2 -2
  374. package/zh/configure/app/output/override-browserslist.md +2 -2
  375. package/zh/configure/app/output/polyfill.md +2 -2
  376. package/zh/configure/app/output/ssg.md +3 -2
  377. package/zh/configure/app/output/svg-default-export.md +2 -2
  378. package/zh/configure/app/performance/build-cache.md +2 -2
  379. package/zh/configure/app/performance/bundle-analyze.md +2 -2
  380. package/zh/configure/app/performance/chunk-split.md +2 -2
  381. package/zh/configure/app/performance/print-file-size.md +2 -2
  382. package/zh/configure/app/performance/profile.md +2 -2
  383. package/zh/configure/app/performance/remove-console.md +2 -2
  384. package/zh/configure/app/performance/remove-moment-locale.md +2 -2
  385. package/zh/configure/app/plugins.md +6 -6
  386. package/zh/configure/app/runtime/intro.md +39 -11
  387. package/zh/configure/app/runtime/master-app.md +1 -2
  388. package/zh/configure/app/runtime/router.md +6 -7
  389. package/zh/configure/app/runtime/state.md +15 -16
  390. package/zh/configure/app/security/sri.md +2 -2
  391. package/zh/configure/app/server/base-url.md +3 -6
  392. package/zh/configure/app/server/enable-framework-ext.md +5 -4
  393. package/zh/configure/app/server/port.md +24 -6
  394. package/zh/configure/app/server/public-routes.md +6 -8
  395. package/zh/configure/app/server/routes.md +6 -6
  396. package/zh/configure/app/server/ssr-by-entries.md +5 -8
  397. package/zh/configure/app/server/ssr.md +4 -5
  398. package/zh/configure/app/source/alias.md +2 -2
  399. package/zh/configure/app/source/compile-js-data-uri.md +2 -2
  400. package/zh/configure/app/source/config-dir.md +2 -2
  401. package/zh/configure/app/source/define.md +2 -2
  402. package/zh/configure/app/source/design-system.md +656 -630
  403. package/zh/configure/app/source/disable-default-entries.md +3 -3
  404. package/zh/configure/app/source/disable-entry-dirs.md +8 -7
  405. package/zh/configure/app/source/enable-async-entry.md +3 -3
  406. package/zh/configure/app/source/entries-dir.md +7 -7
  407. package/zh/configure/app/source/entries.md +5 -6
  408. package/zh/configure/app/source/exclude.md +2 -2
  409. package/zh/configure/app/source/global-vars.md +2 -2
  410. package/zh/configure/app/source/include.md +2 -2
  411. package/zh/configure/app/source/module-scopes.md +2 -2
  412. package/zh/configure/app/source/pre-entry.md +2 -2
  413. package/zh/configure/app/source/resolve-extension-prefix.md +2 -2
  414. package/zh/configure/app/source/resolve-main-fields.md +2 -2
  415. package/zh/configure/app/testing/transformer.md +2 -3
  416. package/zh/configure/app/tools/autoprefixer.md +2 -2
  417. package/zh/configure/app/tools/babel.md +2 -2
  418. package/zh/configure/app/tools/css-extract.md +2 -2
  419. package/zh/configure/app/tools/css-loader.md +2 -2
  420. package/zh/configure/app/tools/dev-server.md +2 -2
  421. package/zh/configure/app/tools/html-plugin.md +2 -2
  422. package/zh/configure/app/tools/inspector.md +2 -2
  423. package/zh/configure/app/tools/jest.md +9 -9
  424. package/zh/configure/app/tools/less.md +2 -2
  425. package/zh/configure/app/tools/minify-css.md +2 -2
  426. package/zh/configure/app/tools/postcss.md +2 -2
  427. package/zh/configure/app/tools/pug.md +2 -2
  428. package/zh/configure/app/tools/sass.md +2 -2
  429. package/zh/configure/app/tools/style-loader.md +2 -2
  430. package/zh/configure/app/tools/styled-components.md +2 -2
  431. package/zh/configure/app/tools/swc.md +12 -1
  432. package/zh/configure/app/tools/terser.md +2 -2
  433. package/zh/configure/app/tools/ts-checker.md +2 -2
  434. package/zh/configure/app/tools/ts-loader.md +2 -2
  435. package/zh/configure/app/tools/webpack-chain.md +2 -2
  436. package/zh/configure/app/tools/webpack.md +2 -2
  437. package/zh/guides/advanced-features/bff/frameworks.md +6 -6
  438. package/zh/guides/advanced-features/bff/function.md +49 -44
  439. package/zh/guides/advanced-features/bff/index.md +9 -9
  440. package/zh/guides/advanced-features/bff/type.md +0 -1
  441. package/zh/guides/advanced-features/code-split.md +3 -3
  442. package/zh/guides/advanced-features/compatibility.md +6 -7
  443. package/zh/guides/advanced-features/eslint.md +0 -1
  444. package/zh/guides/advanced-features/index.md +0 -5
  445. package/zh/guides/advanced-features/low-level.md +17 -19
  446. package/zh/guides/advanced-features/ssg.md +8 -9
  447. package/zh/guides/advanced-features/ssr.md +5 -11
  448. package/zh/guides/advanced-features/testing.md +3 -2
  449. package/zh/guides/advanced-features/web-server.md +3 -4
  450. package/zh/guides/basic-features/alias.md +7 -11
  451. package/zh/guides/basic-features/css/css-in-js.md +5 -5
  452. package/zh/guides/basic-features/css/css-modules.md +2 -2
  453. package/zh/guides/basic-features/css/postcss.md +42 -46
  454. package/zh/guides/basic-features/css/tailwindcss.md +5 -5
  455. package/zh/guides/basic-features/data-fetch.md +109 -192
  456. package/zh/guides/basic-features/env-vars.md +7 -6
  457. package/zh/guides/basic-features/html.md +54 -46
  458. package/zh/guides/basic-features/index.md +0 -5
  459. package/zh/guides/basic-features/mock.md +4 -4
  460. package/zh/guides/basic-features/proxy.md +4 -5
  461. package/zh/guides/basic-features/routes.md +105 -18
  462. package/zh/guides/concept/entries.md +5 -7
  463. package/zh/guides/get-started/quick-start.md +3 -4
  464. package/zh/guides/topic-detail/changesets/add.md +1 -3
  465. package/zh/guides/topic-detail/changesets/changelog.md +30 -31
  466. package/zh/guides/topic-detail/changesets/commit.md +44 -45
  467. package/zh/guides/topic-detail/changesets/config.md +2 -1
  468. package/zh/guides/topic-detail/changesets/github.md +6 -10
  469. package/zh/guides/topic-detail/changesets/introduce.md +0 -1
  470. package/zh/guides/topic-detail/changesets/release-note.md +9 -12
  471. package/zh/guides/topic-detail/changesets/release-pre.md +1 -1
  472. package/zh/guides/topic-detail/framework-plugin/extend.md +13 -13
  473. package/zh/guides/topic-detail/framework-plugin/hook-list.md +2 -2
  474. package/zh/guides/topic-detail/framework-plugin/hook.md +57 -54
  475. package/zh/guides/topic-detail/framework-plugin/implement.md +11 -11
  476. package/zh/guides/topic-detail/framework-plugin/plugin-api.md +4 -4
  477. package/zh/guides/topic-detail/generator/codesmith/api/app.md +36 -36
  478. package/zh/guides/topic-detail/generator/codesmith/api/ejs.md +2 -2
  479. package/zh/guides/topic-detail/generator/codesmith/api/fs.md +2 -2
  480. package/zh/guides/topic-detail/generator/codesmith/api/git.md +3 -2
  481. package/zh/guides/topic-detail/generator/codesmith/api/handlebars.md +2 -2
  482. package/zh/guides/topic-detail/generator/codesmith/api/json.md +9 -11
  483. package/zh/guides/topic-detail/generator/codesmith/api/npm.md +4 -2
  484. package/zh/guides/topic-detail/generator/codesmith/introduce.md +20 -7
  485. package/zh/guides/topic-detail/generator/codesmith/run-in-js.md +4 -5
  486. package/zh/guides/topic-detail/generator/codesmith/structure.md +13 -10
  487. package/zh/guides/topic-detail/generator/config/common.md +18 -27
  488. package/zh/guides/topic-detail/generator/plugin/abstract.md +1 -1
  489. package/zh/guides/topic-detail/generator/plugin/api/file/introduce.md +1 -0
  490. package/zh/guides/topic-detail/generator/plugin/api/file/updateJSONFile.md +4 -4
  491. package/zh/guides/topic-detail/generator/plugin/api/info/locale.md +1 -1
  492. package/zh/guides/topic-detail/generator/plugin/api/input/addInputAfter.md +2 -2
  493. package/zh/guides/topic-detail/generator/plugin/api/input/addInputBefore.md +3 -4
  494. package/zh/guides/topic-detail/generator/plugin/api/input/setInput.md +1 -1
  495. package/zh/guides/topic-detail/generator/plugin/api/input/type.md +1 -1
  496. package/zh/guides/topic-detail/generator/plugin/api/introduce.md +8 -9
  497. package/zh/guides/topic-detail/generator/plugin/develop.md +13 -13
  498. package/zh/guides/topic-detail/generator/plugin/use.md +8 -8
  499. package/zh/guides/topic-detail/generator/project.md +1 -1
  500. package/zh/guides/topic-detail/micro-frontend/c01-introduction.md +7 -8
  501. package/zh/guides/topic-detail/micro-frontend/c02-development.md +20 -23
  502. package/zh/guides/topic-detail/micro-frontend/c03-main-app.md +41 -44
  503. package/zh/guides/topic-detail/micro-frontend/c04-communicate.md +7 -5
  504. package/zh/guides/topic-detail/micro-frontend/c05-mixed-stack.md +1 -1
  505. package/zh/guides/topic-detail/model/auto-actions.md +0 -1
  506. package/zh/guides/topic-detail/model/computed-state.md +0 -2
  507. package/zh/guides/topic-detail/model/define-model.md +3 -6
  508. package/zh/guides/topic-detail/model/faq.md +2 -5
  509. package/zh/guides/topic-detail/model/manage-effects.md +2 -5
  510. package/zh/guides/topic-detail/model/model-communicate.md +1 -4
  511. package/zh/guides/topic-detail/model/performance.md +1 -5
  512. package/zh/guides/topic-detail/model/quick-start.md +0 -6
  513. package/zh/guides/topic-detail/model/redux-integration.md +3 -2
  514. package/zh/guides/topic-detail/model/test-model.md +1 -1
  515. package/zh/guides/topic-detail/model/typescript-best-practice.md +13 -14
  516. package/zh/guides/topic-detail/model/use-model.md +14 -12
  517. package/zh/guides/topic-detail/model/use-out-of-modernjs.md +4 -6
  518. package/zh/guides/topic-detail/monorepo/intro.md +0 -1
  519. package/zh/guides/topic-detail/monorepo/sub-project-interface.md +14 -7
  520. package/zh/tutorials/first-app/c01-start.md +2 -2
  521. package/zh/tutorials/first-app/c03-css.md +6 -9
  522. package/zh/tutorials/first-app/c04-routes.md +1 -1
  523. package/zh/tutorials/first-app/c05-loader.md +2 -1
  524. package/zh/tutorials/first-app/c07-container.md +6 -7
  525. 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
- * 类型: `Object`
7
- * 默认值:见下方配置详情。
6
+ - 类型: `Object`
7
+ - 默认值:见下方配置详情。
8
8
 
9
9
  :::caution 注意
10
10
  需要先通过 `pnpm run new` 启用 Tailwind CSS 功能。
@@ -14,632 +14,640 @@ sidebar_label: designSystem
14
14
  <summary>designSystem 配置详情</summary>
15
15
 
16
16
  ```js
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',
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
- gridRowEnd: {
542
- auto: 'auto',
543
- '1': '1',
544
- '2': '2',
545
- '3': '3',
546
- '4': '4',
547
- '5': '5',
548
- '6': '6',
549
- '7': '7',
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
- transformOrigin: {
552
- center: 'center',
553
- top: 'top',
554
- 'top-right': 'top right',
555
- right: 'right',
556
- 'bottom-right': 'bottom right',
557
- bottom: 'bottom',
558
- 'bottom-left': 'bottom left',
559
- left: 'left',
560
- 'top-left': 'top left',
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
- scale: {
563
- '0': '0',
564
- '50': '.5',
565
- '75': '.75',
566
- '90': '.9',
567
- '95': '.95',
568
- '100': '1',
569
- '105': '1.05',
570
- '110': '1.1',
571
- '125': '1.25',
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
- rotate: {
575
- '-180': '-180deg',
576
- '-90': '-90deg',
577
- '-45': '-45deg',
578
- '0': '0',
579
- '45': '45deg',
580
- '90': '90deg',
581
- '180': '180deg',
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
- translate: (theme, { negative }) => ({
584
- ...theme('spacing'),
585
- ...negative(theme('spacing')),
586
- '-full': '-100%',
587
- '-1/2': '-50%',
588
- '1/2': '50%',
589
- full: '100%',
590
- }),
591
- skew: {
592
- '-12': '-12deg',
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
- transitionProperty: {
601
- none: 'none',
602
- all: 'all',
603
- default: 'background-color, border-color, color, fill, stroke, opacity, box-shadow, transform',
604
- colors: 'background-color, border-color, color, fill, stroke',
605
- opacity: 'opacity',
606
- shadow: 'box-shadow',
607
- transform: 'transform',
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
- transitionTimingFunction: {
610
- linear: 'linear',
611
- in: 'cubic-bezier(0.4, 0, 1, 1)',
612
- out: 'cubic-bezier(0, 0, 0.2, 1)',
613
- 'in-out': 'cubic-bezier(0.4, 0, 0.2, 1)',
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
- transitionDuration: {
616
- '75': '75ms',
617
- '100': '100ms',
618
- '150': '150ms',
619
- '200': '200ms',
620
- '300': '300ms',
621
- '500': '500ms',
622
- '700': '700ms',
623
- '1000': '1000ms',
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
- transitionDelay: {
626
- '75': '75ms',
627
- '100': '100ms',
628
- '150': '150ms',
629
- '200': '200ms',
630
- '300': '300ms',
631
- '500': '500ms',
632
- '700': '700ms',
633
- '1000': '1000ms',
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
  更多关于:<a href="https://tailwindcss.com/docs/configuration#theme" target="_blank">TailwindCSS 配置</a>。
640
648
  :::
641
- </details>
642
649
 
650
+ </details>
643
651
 
644
652
  `designSystem` 用于定义项目的调色板、排版比例(Typographic Scales 或者 Type Scale)、字体列表、断点、边框圆角值等等。因为 Modern.js 借用了 Tailwind Theme 的设计方式,并且内部也集成了 Tailwind CSS,所以 `designSystem` 使用方式与 Tailwind CSS Theme 相同。
645
653
 
@@ -704,18 +712,26 @@ const designSystem = {
704
712
  这些屏幕名称反映在 `utilities` 中,因此 `text-center` 现在是这样的:
705
713
 
706
714
  ```css
707
- .text-center { text-align: center }
715
+ .text-center {
716
+ text-align: center;
717
+ }
708
718
 
709
719
  @media (min-width: 640px) {
710
- .tablet\:text-center { text-align: center }
720
+ .tablet\:text-center {
721
+ text-align: center;
722
+ }
711
723
  }
712
724
 
713
725
  @media (min-width: 1024px) {
714
- .laptop\:text-center { text-align: center }
726
+ .laptop\:text-center {
727
+ text-align: center;
728
+ }
715
729
  }
716
730
 
717
731
  @media (min-width: 1280px) {
718
- .desktop\:text-center { text-align: center }
732
+ .desktop\:text-center {
733
+ text-align: center;
734
+ }
719
735
  }
720
736
  ```
721
737
 
@@ -741,7 +757,7 @@ const designSystem = {
741
757
  };
742
758
  ```
743
759
 
744
- 如有必要,以创建带有 `min-width` 和 `max-width` 定义的断点,例如:
760
+ 如有必要,以创建带有 `min-width` 和 `max-width` 定义的断点,例如:
745
761
 
746
762
  ```js
747
763
  const designSystem = {
@@ -919,14 +935,24 @@ const designSystem = {
919
935
  };
920
936
  ```
921
937
 
922
- **属性名确定所生成类的后缀,值确定实际CSS声明的值。**上面的示例 `borderRadius` 配置将生成以下CSS类:
938
+ **属性名确定所生成类的后缀,值确定实际 CSS 声明的值。**上面的示例 `borderRadius` 配置将生成以下 CSS 类:
923
939
 
924
940
  ```css
925
- .rounded-none { border-radius: 0 }
926
- .rounded-sm { border-radius: .125rem }
927
- .rounded { border-radius: .25rem }
928
- .rounded-lg { border-radius: .5rem }
929
- .rounded-full { border-radius: 9999px }
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
958
  会注意到,在主题配置中使用 `default` 属性创建了不带后缀的 `rounded` 类。这是许多(尽管不是全部)核心插件支持的 Tailwind CSS 中的通用约定。
@@ -941,7 +967,7 @@ const designSystem = {
941
967
 
942
968
  要覆盖默认配置中的选项,请在 `designSystem` 中添加要覆盖的属性:
943
969
 
944
- ```typescript title="modern.config.ts"
970
+ ```ts title="modern.config.ts"
945
971
  const designSystem = {
946
972
  // Replaces all of the default `opacity` values
947
973
  opacity: {
@@ -971,7 +997,7 @@ export default defineConfig({
971
997
 
972
998
  例如,如果您想添加一个额外的断点但保留现有的断点,则可以扩展 `screens` 属性:
973
999
 
974
- ```typescript title="modern.config.ts"
1000
+ ```ts title="modern.config.ts"
975
1001
  const designSystem = {
976
1002
  extend: {
977
1003
  // Adds a new breakpoint in addition to the default breakpoints
@@ -990,7 +1016,7 @@ export default defineConfig({
990
1016
 
991
1017
  您当然可以覆盖默认主题的某些部分,并在同一配置中扩展默认主题的其他部分:
992
1018
 
993
- ```typescript title="modern.config.ts"
1019
+ ```ts title="modern.config.ts"
994
1020
  const designSystem = {
995
1021
  opacity: {
996
1022
  0: '0',
@@ -1020,7 +1046,7 @@ export default defineConfig({
1020
1046
 
1021
1047
  例如,您可以在 `fill` 配置上通过引用 `theme('colors')` 为调色板中的每种颜色生成 `fill` utilities。
1022
1048
 
1023
- ```typescript title="modern.config.ts"
1049
+ ```ts title="modern.config.ts"
1024
1050
  const designSystem = {
1025
1051
  colors: {
1026
1052
  // ...
@@ -1041,7 +1067,7 @@ export default defineConfig({
1041
1067
 
1042
1068
  如果出于任何原因想要引用默认配置中的值,则可以从 `tailwindcss/defaultTheme` 导入它。一个有用的示例是,如果要将添加默认配置提供的字体中某一个字体:
1043
1069
 
1044
- ```typescript title="modern.config.ts"
1070
+ ```ts title="modern.config.ts"
1045
1071
  const defaultTheme = require('tailwindcss/defaultTheme');
1046
1072
 
1047
1073
  const designSystem = {
@@ -1106,7 +1132,7 @@ const designSystem = {
1106
1132
 
1107
1133
  另一个示例是在自定义插件中添加新的属性以进行引用。例如,如果您为项目编写了渐变插件,则可以向该插件引用的主题对象添加渐变属性:
1108
1134
 
1109
- ```typescript title="modern.config.ts"
1135
+ ```ts title="modern.config.ts"
1110
1136
  const designSystem = {
1111
1137
  gradients: theme => ({
1112
1138
  'blue-green': [theme('colors.blue.500'), theme('colors.green.500')],
@@ -1129,7 +1155,7 @@ export default defineConfig({
1129
1155
 
1130
1156
  ### 配置引用
1131
1157
 
1132
- 除了 `screens`,`colors` 和 `spacing` 外,配置对象中的所有属性都映射到 `Tailwind CSS` 的核心插件上。由于许多插件负责仅接受静态值集(例如,例如`float`)的CSS属性,因此请注意,并非每个插件在主题对象中都有对应的属性。
1158
+ 除了 `screens`,`colors` 和 `spacing` 外,配置对象中的所有属性都映射到 `Tailwind CSS` 的核心插件上。由于许多插件负责仅接受静态值集(例如,例如`float`)的 CSS 属性,因此请注意,并非每个插件在主题对象中都有对应的属性。
1133
1159
 
1134
1160
  所有这些属性也可以在 `designSystem.extend` 属性下使用,以扩展默认主题。
1135
1161