@reusable-ui/foreground
Version:
Foreground (text color) stuff of UI.
34 lines (33 loc) • 928 B
TypeScript
import { Factory, CssKnownProps, CssRule, CssVars } from '@cssfn/core';
export interface ForegroundVars {
/**
* functional foreground color.
*/
foregFn: any;
/**
* final foreground color.
*/
foreg: any;
/**
* functional alternate foreground color.
*/
altForegFn: any;
/**
* final alternate foreground color.
*/
altForeg: any;
}
export interface ForegroundStuff {
foregroundRule: Factory<CssRule>;
foregroundVars: CssVars<ForegroundVars>;
}
export interface ForegroundConfig {
foreg?: CssKnownProps['foreground'];
altForeg?: CssKnownProps['foreground'];
}
/**
* Uses foreground color (text color).
* @param config A configuration of `foregroundRule`.
* @returns A `ForegroundStuff` represents the foreground rules.
*/
export declare const usesForeground: (config?: ForegroundConfig) => ForegroundStuff;