Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Brand containers #370

Open
petemill opened this issue Feb 6, 2019 · 0 comments
Open

Brand containers #370

petemill opened this issue Feb 6, 2019 · 0 comments
Labels

Comments

@petemill
Copy link
Member

petemill commented Feb 6, 2019

Goals

  • Allow designer to specify areas which are themed according to sub-brands

Needs

  • Know which areas which will have Brave / Rewards / Publishers 'look'

Method

  • Each core component needs to be able to be Brave or Rewards (or maybe Publishers). Default to Brave. For example:
    • Button's accent variant
    • Toggle's on variant
    • Text which is accent
  • Any layout area can specify whether all descendant Brave-UI controls change their brand default to Rewards or Publishers.

e.g. on it's own, Toggle and Button could be forced in to a brand via:

<div>
  <Toggle brand="Rewards" />
  <Button brand="Rewards" type="accent" level="primary" text="Save" />
</div>

...but it could be inside a new BrandContainer component which would change it automatically:

<BrandContainer brand="Rewards">
  <Toggle />
  <Button type="accent" level="primary" text="Save" />
</BrandContainer>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants