question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add color pairings to theme

See original GitHub issue

Would be good to add set color pairings to the theme so that components like Badge & Banner can use them.

An example & reference can be found in @jxnblk’s styled-system.

colorStyles: {
  warning: {
    color: 'text',
    backgroundColor: 'orange'
  },
  error: {
    color: 'white',
    backgroundColor: 'red'
  },
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
odmlncommented, Apr 27, 2018

Updated naming convention.

colorStyles: {
  whiteOnText: {
    color: 'white',
    backgroundColor: 'text'
  },
  whiteOnGray: {
    color: 'white',
    backgroundColor: 'gray'
  },
  textOnLightGray: {
    color: 'text',
    backgroundColor: 'lightGray'
  },
  whiteOnBlue: {
    color: 'white',
    backgroundColor: 'blue',
  },
  blueOnLightBlue: {
    color: 'blue',
    backgroundColor: 'lightBlue',
  },
  whiteOnGreen: {
    color: 'white',
    backgroundColor: 'green',
  },
  greenOnLightGreen: {
    color: 'green',
    backgroundColor: 'lightGreen',
  },
  whiteOnRed: {
    color: 'white',
    backgroundColor: 'red',
  },
  redOnLightRed: {
    color: 'red',
    backgroundColor: 'lightRed',
  },
  textOnOrange: {
    color: 'text',
    backgroundColor: 'orange',
  },
  textOnLightOrange: {
    color: 'text',
    backgroundColor: 'lightOrange',
  },
  whiteOnPurple: {
    color: 'white',
    backgroundColor: 'purple',
  },
  purpleOnLightPurple: {
    color: 'purple',
    backgroundColor: 'lightPurple',
  },
  textOnWhite: {
    color: 'text',
    backgroundColor: 'white',
  },
  grayOnWhite: {
    color: 'gray',
    backgroundColor: 'white',
  },
  blueOnWhite: {
    color: 'blue',
    backgroundColor: 'white',
  },
  greenOnWhite: {
    color: 'green',
    backgroundColor: 'white',
  },
  redOnWhite: {
    color: 'red',
    backgroundColor: 'white',
  },
  purpleOnWhite: {
    color: 'purple',
    backgroundColor: 'white',
  },
}
0reactions
jxnblkcommented, Sep 14, 2018

Closing this since it’s now in the v2 branch

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add color and design to your slides with Themes
PowerPoint provides a variety of design themes. Learn how to add color and design to your slides with themes to give them a...
Read more >
80 Eye-Catching Color Combinations For 2021 - Design Wizard
Over 80 stunning colour combinations for your designs, interiors or artwork! With combinations of two colours to four, you are sure to find ......
Read more >
100 color combination ideas and examples - Canva
Canva's color wheel tool allows you to select your desired color combinations—complementary, monochromatic, analogous, triadic, or tetradic—along the spectrum ...
Read more >
Color system best practices - Shopify.dev
To ensure that you always have sufficient color contrast between your theme elements, build your theme using color pairings from the same color...
Read more >
Color Theory 101: A Complete Guide to Color Wheels & Color ...
Analogous color schemes are formed by pairing one main color with the two colors directly next to it on the color wheel. You...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found