@moda/tokens
Version:
Constant values for modaoperandi.com
68 lines (67 loc) • 2.01 kB
TypeScript
import { colors } from './colors';
import { typography } from './typography';
export type Font = keyof typeof typography.fonts;
export type TextTreatment = keyof (typeof typography)['text-treatments'];
export type Color = keyof typeof colors.all;
export declare const text: (name: TextTreatment, font?: Font) => {
'font-family': string;
'line-height': string;
"font-size": string;
"letter-spacing": number;
} | {
'font-family': string;
'line-height': string;
"font-size": string;
"letter-spacing": number;
} | {
'font-family': string;
'line-height': string;
"font-size": string;
"letter-spacing": number;
} | {
'font-family': string;
'line-height': string;
"font-size": string;
"letter-spacing": number;
} | {
'font-family': string;
'line-height': string;
"font-size": string;
"letter-spacing": number;
} | {
'font-family': string;
'line-height': string;
"font-size": string;
"letter-spacing": string;
} | {
'font-family': string;
'line-height': string;
"font-size": string;
"letter-spacing": string;
} | {
'font-family': string;
'line-height': string;
"font-size": string;
"letter-spacing": string;
} | {
'font-family': string;
'line-height': string;
"font-size": string;
"letter-spacing": string;
"font-weight": string;
} | {
'font-family': string;
'line-height': string;
"font-size": string;
"letter-spacing": string;
} | {
'font-family': string;
'line-height': string;
"font-size": string;
"letter-spacing": string;
"text-transform": string;
};
export declare const remToUnitlessPx: (value: string) => number;
export declare const color: (name: Color, alpha?: number) => string | null;
export declare const colorInHex: (name: Color, alpha?: number) => string;
export declare const spacing: (topY: number | string, rightX?: number | string, bottom?: number | string, left?: number | string) => string | number | undefined;