mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
7 lines
237 B
JavaScript
7 lines
237 B
JavaScript
|
import {Color, textColorForBackgroundColor} from '@tryghost/color-utils';
|
||
|
import {helper} from '@ember/component/helper';
|
||
|
|
||
|
export default helper(function hexContrast([hex]) {
|
||
|
return textColorForBackgroundColor(Color(hex)).hex();
|
||
|
});
|