Skip to content

Theming solution #2

@egoist

Description

@egoist

Currently it supports:

  • provide/inject
  • rootOptions
  • vuex
styled('div', (props, ctx) => {
  // ctx: the context of created functional component
  // so you can access:
  // ctx.injections.theme
  // ctx.parent.$root.$options
  // ctx.parent.$store
})

Not sure which one is the best though 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions