2

At the top of my react file I include the following:

import { Colors } from '@blueprintjs/core';

How do I go from this point on to using the colors such as @blue3?

const homeStyle = {
 background: '@blue2';
};

This doesn't seem to work.

Andrii Starusiev
  • 7,564
  • 2
  • 28
  • 37
Shahzeb Khan
  • 437
  • 3
  • 12

1 Answers1

3

Colors exported as a single object, so to access it, you should do:

const homeStyle = {
   background: Colors.BLUE3;
};
Andrii Starusiev
  • 7,564
  • 2
  • 28
  • 37