You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have access to Nuxt Instance within RulesContext object in all Uno entitits such as Theme, Rules, Shortcuts, Safelist, Variants.
There is frequetly a need to get access to a Nuxt specific entity e.g. runtimeConfig when generating theme and extending UnoCSS funcitonality. This is extra valuable in Nuxt app with layered architecture.
I tried to attach runtimeConfig as an object on theme in unocss:config Nuxt hook but for some reason the object is not available on the final theme as if something is overriding it
Clear and concise description of the problem
I would like to have access to Nuxt Instance within RulesContext object in all Uno entitits such as Theme, Rules, Shortcuts, Safelist, Variants.
There is frequetly a need to get access to a Nuxt specific entity e.g. runtimeConfig when generating theme and extending UnoCSS funcitonality. This is extra valuable in Nuxt app with layered architecture.
Suggested solution
Example of usage in Theme:
Example in usage in Rules:
Example of usage in Shortcuts:
Example of usage in Variants:
Example of usage in Safelist:
Alternative
I tried to attach runtimeConfig as an object on theme in unocss:config Nuxt hook but for some reason the object is not available on the final theme as if something is overriding it
Additional context
No response
Validations
README.md
of using the package.The text was updated successfully, but these errors were encountered: