@ehfuse/taskbox 0.4.5 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +7 -7
- package/dist/index.esm.js.map +4 -4
- package/dist/index.js +7 -7
- package/dist/index.js.map +4 -4
- package/dist/internal/colorUtils.d.ts +5 -0
- package/package.json +1 -1
|
@@ -4,3 +4,8 @@
|
|
|
4
4
|
* `#rgb`/`#rrggbb` 를 받고, 해석할 수 없으면 원본 색을 그대로 돌려준다(호출부에서 분기하지 않아도 되게).
|
|
5
5
|
*/
|
|
6
6
|
export declare function withAlpha(color: string, alpha: number): string;
|
|
7
|
+
/**
|
|
8
|
+
* hex 색을 흰색 쪽으로 섞어 밝게 만든다(다크에서 어두운 브랜드색을 배지 배경으로 쓸 때).
|
|
9
|
+
* ratio 0=원본, 1=흰색. 해석할 수 없으면 원본을 그대로 돌려준다.
|
|
10
|
+
*/
|
|
11
|
+
export declare function lighten(color: string, ratio: number): string;
|
package/package.json
CHANGED