nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
3.93k stars 488 forks source link

Theming not works with Nuxt UI Pro #1241

Closed carlosvaldesweb closed 8 months ago

carlosvaldesweb commented 8 months ago

Environment

Nuxt project info: (copied to clipboard) 9:41:06 AM


Version

3.8.2

Reproduction

export default defineAppConfig({ ui: { primary: "violet", gray: "slate", "landing.section": { wrapper: "py-0 sm:py-0 md:py-0", }, landingSection: { wrapper: "py-0 sm:py-0 md:py-0", }, }, });

Description

When i try to modify the ui from landing section it does not works, i'm adding the code in reproduction to app.config.ts

Additional context

No response

Logs

No response

benjamincanac commented 8 months ago

You should use sub objects:

export default defineAppConfig({
  ui: {
    primary: 'violet',
    gray: 'slate',
    landing: {
      section: {
        wrapper: 'py-0 sm:py-0 md:py-0"'
      }
    }
  }
})
benjamincanac commented 8 months ago

You can read more about this here: https://ui.nuxt.com/pro/guide/usage#appconfigts