@liujitcn/kratos-taro-app-cli 0.0.78 → 0.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.mjs +10 -0
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "type": "git",
8
8
  "url": "git@github.com:liujitcn/kratos-admin.git"
9
9
  },
10
- "version": "0.0.78",
10
+ "version": "0.0.80",
11
11
  "type": "module",
12
12
  "bin": {
13
13
  "kratos-taro-app": "./bin/kratos-taro-app.mjs"
package/src/index.mjs CHANGED
@@ -235,6 +235,8 @@ function writeHost(target, projectName, modules, packages, options) {
235
235
  'apps/taro-app/src/app.config.base.json',
236
236
  json({
237
237
  pages: ['pages/bootstrap/index'],
238
+ darkmode: true,
239
+ themeLocation: 'theme.json',
238
240
  window: {
239
241
  backgroundTextStyle: 'light',
240
242
  navigationBarBackgroundColor: '#f8f8f8',
@@ -244,6 +246,14 @@ function writeHost(target, projectName, modules, packages, options) {
244
246
  },
245
247
  }),
246
248
  )
249
+ write(
250
+ target,
251
+ 'apps/taro-app/src/theme.json',
252
+ json({
253
+ light: { navBgColor: '#f4f9fd', navTextStyle: 'black', pageBgColor: '#f4f9fd' },
254
+ dark: { navBgColor: '#060a12', navTextStyle: 'white', pageBgColor: '#060a12' },
255
+ }),
256
+ )
247
257
  write(
248
258
  target,
249
259
  'apps/taro-app/src/app.config.ts',