Skip to content

Update plugin options interface #4

@samuelmaddock

Description

The current plugin options are inflexible and will possibly lead to breaking changes in the future:

new ThemePlugin({
    themes: {
        light: 'light.css',
        dark: 'dark.css'
    }
})

Using an array for themes would be more flexible:

new ThemePlugin({
    themes: [
        {name: 'light', file: 'light.css'}
        {name: 'dark', file: 'dark.css'}
    ]
})

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