Skip to content

Find a way to extend the Theme flow type #317

@ferrannp

Description

@ferrannp

Say you want to add extra keys to your theme. Right now Flow will complain about them. Would be nice to extend the theme type and make components be aware of it.

Example:

const theme = {
  ...DarkTheme,
  colors: {
    ...DarkTheme.colors,
    primary: '#F44336',
    accent: '#F44336',
    secondaryText: 'rgba(255, 255, 255, .7)', // Custom one
  },
};

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions