1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-19 23:40:07 +00:00

refactor(docs): replace palette function

This commit is contained in:
三咲智子 Kevin Deng 2023-03-24 07:51:30 +08:00
parent 331d652ef0
commit 0916b05afd
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
3 changed files with 13 additions and 2 deletions

View file

@ -8,6 +8,9 @@
"generate": "nuxi generate", "generate": "nuxi generate",
"preview": "nuxi preview" "preview": "nuxi preview"
}, },
"dependencies": {
"theme-colors": "^0.0.5"
},
"devDependencies": { "devDependencies": {
"@nuxt-themes/docus": "^1.8.1", "@nuxt-themes/docus": "^1.8.1",
"nuxt": "^3.3.1" "nuxt": "^3.3.1"

View file

@ -1,7 +1,8 @@
import { defineTheme, palette } from 'pinceau' import { defineTheme } from 'pinceau'
import { getColors } from 'theme-colors'
export default defineTheme({ export default defineTheme({
color: { color: {
primary: palette('#d98018'), primary: getColors('#d98018'),
}, },
}) })

View file

@ -219,6 +219,9 @@ importers:
specifiers: specifiers:
'@nuxt-themes/docus': ^1.8.1 '@nuxt-themes/docus': ^1.8.1
nuxt: ^3.3.1 nuxt: ^3.3.1
theme-colors: ^0.0.5
dependencies:
theme-colors: 0.0.5
devDependencies: devDependencies:
'@nuxt-themes/docus': 1.8.1_nuxt@3.3.1 '@nuxt-themes/docus': 1.8.1_nuxt@3.3.1
nuxt: 3.3.1 nuxt: 3.3.1
@ -12279,6 +12282,10 @@ packages:
/text-table/0.2.0: /text-table/0.2.0:
resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==}
/theme-colors/0.0.5:
resolution: {integrity: sha512-EAxGOASXbsrhcaFxEWsCRZb29sHhII/cs8a+Cn3a3AI/FT9uCqNM8rMQBf10jtgqIdl8kxg2rQXz5I2JLHuplA==}
dev: false
/theme-vitesse/0.6.0: /theme-vitesse/0.6.0:
resolution: {integrity: sha512-/XEZFGXLTK/AlWSe9t+NIXB1tP3yqdzugcSJJ2Fg0KYM1PcoL/zWs5AuaEcCFt1pfi/9Og++tzOdiU2aKf/+Xw==} resolution: {integrity: sha512-/XEZFGXLTK/AlWSe9t+NIXB1tP3yqdzugcSJJ2Fg0KYM1PcoL/zWs5AuaEcCFt1pfi/9Og++tzOdiU2aKf/+Xw==}
engines: {vscode: ^1.43.0} engines: {vscode: ^1.43.0}