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