9 lines
264 B
TypeScript
9 lines
264 B
TypeScript
// Copyright 2017-2022 @polkadot/react-components authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { color } from 'chart.js/helpers';
|
|
|
|
export function alphaColor (hexColor: string): string {
|
|
return color(hexColor).alpha(0.65).rgbString();
|
|
}
|