How do I use Colors in BlueprintJS?

991 views Asked by At

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.

1

There are 1 answers

1
Andrii Starusiev On BEST ANSWER

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

const homeStyle = {
   background: Colors.BLUE3;
};