Skip to content

Commit

Permalink
spelling: lighter
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
  • Loading branch information
jsoref committed Jul 13, 2023
1 parent 538a566 commit 863b21a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ import { Color } from '@memgraph/orb';
// Constructor always receives a color HEX code
const red = new Color('#FF0000');

// Returns darker or ligher color by input factor (default is 0.3)
// Returns darker or lighter color by input factor (default is 0.3)
const darkerRed = red.getDarkerColor();
const lighterRed = red.getLighterColor();

Expand All @@ -183,7 +183,7 @@ const randomColor = Color.getRandomColor();
```

If you would like to have a lighter/darker tone of a node on node select/hover, then you can easily do
that with `getLigherColor` or `getDarkerColor` functions:
that with `getLighterColor` or `getDarkerColor` functions:

```typescript
const nodeBaseColor = new Color('#FF0000');
Expand Down

0 comments on commit 863b21a

Please sign in to comment.