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

[Feature Request] ThemeDefinition namespace Doesnt work correctly #327

Closed
smartcontentor opened this issue May 19, 2022 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@smartcontentor
Copy link

Problem to solve

ThemeDefinition namespace in vuetify.js can`t use as a type;

Proposed solution

i don`t have any idea

@spras
Copy link

spras commented Jul 13, 2022

same here:

"version": "3.0.0-beta.5"

import { createVuetify } from 'vuetify'
import type { ThemeDefinition } from 'vuetify'

const Lighttheme: ThemeDefinition = {
    dark: false,
    variables: {},
    colors: {
        primary: '#186dde',
        info: '#7460ee',
        success: '#0acc95',
        accent: '#fc4b6c',
        warning: '#fec90f',
        error: '#ef5350',
        secondary: '#0acc95',
    },
}

And typescript complains :

src/plugins/vuetify.ts:8:19 - error TS2709: Cannot use namespace 'ThemeDefinition' as a type.

8 const Lighttheme: ThemeDefinition = {

@KaelWD
Copy link
Member

KaelWD commented Jul 13, 2022

@KaelWD KaelWD transferred this issue from vuetifyjs/vuetify Jul 13, 2022
@KaelWD KaelWD added bug Something isn't working and removed S: triage labels Jul 13, 2022
@KaelWD KaelWD closed this as completed in c79a5cd Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants