Skip to content

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

@Pierstoval

Description

@Pierstoval

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions