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

Cannot import built-in themes for the dashboard. #3

Open
Pierstoval opened this issue Nov 23, 2023 · 0 comments
Open

Cannot import built-in themes for the dashboard. #3

Pierstoval opened this issue Nov 23, 2023 · 0 comments

Comments

@Pierstoval
Copy link
Member

When creating the DashboardDefinition object, it is apparently impossible to import a theme.

The default theme is always used (it's Carbon for now), but importing Carbon manually doesn't work:

import { DashboardDefinition } from '@orbitale/svelte-admin';
import theme from '@orbitale/svelte-admin/themes/carbon';

export const dashboard = new DashboardDefinition({
    // ...
    adminConfig: {
        theme: theme,
    },
});

This might be related to package.json linking, but so far I couldn't fix it, and fall back using the default theme anyway.

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