Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: 'themeRoot' does not exist in type 'DaisyUIConfig'. #3094

Closed
flexchar opened this issue Jun 21, 2024 · 1 comment
Closed

bug: 'themeRoot' does not exist in type 'DaisyUIConfig'. #3094

flexchar opened this issue Jun 21, 2024 · 1 comment

Comments

@flexchar
Copy link

What version of daisyUI are you using?

4.12.2

Which browsers are you seeing the problem on?

No response

Reproduction URL

Describe your issue

I am using types in my tailwind file and seems like theme root is forgotten, even though it works. :)

import daisyui, { type Config as DConfig } from 'daisyui';

/** @type {import('tailwindcss').Config} */
export default {
    content: [
        //
        './src/**/*.{tsx,ts,html}',
    ],
    plugins: [
        //
        daisyui,
    ],
    // https://daisyui.com/docs/config/
    // daisyUI config (optional - here are the default values)
    daisyui: {
        themes: ['light', 'dark'], // false: only light + dark | true: all themes | array: specific themes like this ["light", "dark", "cupcake"]
        darkTheme: 'dark', // name of one of the included themes for dark mode
        base: false, // applies background color and foreground color for root element by default
        styled: true, // include daisyUI colors and design decisions for all components
        utils: true, // adds responsive and modifier utility classes
        prefix: '', // prefix for daisyUI classnames (components, modifiers and responsive class names. Not colors)
        logs: false, // Shows info about daisyUI version and used config in the console when building your CSS
        themeRoot: '#container', // The element that receives theme color CSS variables
    } satisfies DConfig,
};
Copy link

Thank you @flexchar for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant