mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-10-03 04:54:41 +00:00
Refactor: Fix docstring for getCardColors utils function (#3011)
This commit is contained in:
1 parent
d7b534abb8
commit
ffafcf29ed
1 file changed
+13
-8
+13
-8
@@ -191,6 +191,18 @@ const flexLayout = ({ items, gap, direction, sizes = [] }) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Object containing card colors.
|
||||||
|
* @typedef {{
|
||||||
|
* titleColor: string | string[];
|
||||||
|
* iconColor: string | string[];
|
||||||
|
* textColor: string | string[];
|
||||||
|
* bgColor: string | string[];
|
||||||
|
* borderColor: string | string[];
|
||||||
|
* ringColor: string | string[];
|
||||||
|
* }} CardColors
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns theme based colors with proper overrides and defaults.
|
* Returns theme based colors with proper overrides and defaults.
|
||||||
*
|
*
|
||||||
@@ -203,14 +215,7 @@ const flexLayout = ({ items, gap, direction, sizes = [] }) => {
|
|||||||
* @param {string=} args.ring_color Card ring color.
|
* @param {string=} args.ring_color Card ring color.
|
||||||
* @param {string=} args.theme Card theme.
|
* @param {string=} args.theme Card theme.
|
||||||
* @param {string=} args.fallbackTheme Fallback theme.
|
* @param {string=} args.fallbackTheme Fallback theme.
|
||||||
* @returns {{
|
* @returns {CardColors} Card colors.
|
||||||
* titleColor: string | string[];
|
|
||||||
* iconColor: string | string[];
|
|
||||||
* textColor: string | string[];
|
|
||||||
* bgColor: string | string[];
|
|
||||||
* borderColor: string | string[];
|
|
||||||
* ringColor: string | string[];
|
|
||||||
* }} Card colors.
|
|
||||||
*/
|
*/
|
||||||
const getCardColors = ({
|
const getCardColors = ({
|
||||||
title_color,
|
title_color,
|
||||||
|
|||||||
Reference in new issue
Block a user