refactor(docs): replace palette function

pull/1736/head
三咲智子 Kevin Deng 2023-03-24 07:51:30 +08:00
rodzic 331d652ef0
commit 0916b05afd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 69992F2250DFD93E
3 zmienionych plików z 13 dodań i 2 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

@ -219,6 +219,9 @@ importers:
specifiers:
'@nuxt-themes/docus': ^1.8.1
nuxt: ^3.3.1
theme-colors: ^0.0.5
dependencies:
theme-colors: 0.0.5
devDependencies:
'@nuxt-themes/docus': 1.8.1_nuxt@3.3.1
nuxt: 3.3.1
@ -12279,6 +12282,10 @@ packages:
/text-table/0.2.0:
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:
resolution: {integrity: sha512-/XEZFGXLTK/AlWSe9t+NIXB1tP3yqdzugcSJJ2Fg0KYM1PcoL/zWs5AuaEcCFt1pfi/9Og++tzOdiU2aKf/+Xw==}
engines: {vscode: ^1.43.0}