diff --git a/src/runtime/plugins/colors.ts b/src/runtime/plugins/colors.ts index 8c489f05..0de2b390 100644 --- a/src/runtime/plugins/colors.ts +++ b/src/runtime/plugins/colors.ts @@ -64,7 +64,8 @@ export default defineNuxtPlugin(() => { document.head.appendChild(style) headData.script = [{ - innerHTML: 'document.head.removeChild(document.querySelector(\'[data-nuxt-ui-colors]\'))' + innerHTML: 'document.head.removeChild(document.querySelector(\'[data-nuxt-ui-colors]\'))', + ...(nonce.value ? { nonce: nonce.value } : {}) }] }