@coko/client
Version:
Client side common code for coko apps
18 lines (17 loc) • 578 B
TypeScript
import { CSSObject, Interpolation } from 'styled-components';
import { type ThemeValue } from './themeHelper';
type ThemeGetter = (props: {
theme: Record<string, unknown>;
}) => Interpolation<object>;
type MediaSizes = {
mobileUp: ThemeGetter;
tabletPortraitUp: ThemeGetter;
tabletLandscapeUp: ThemeGetter;
desktopUp: ThemeGetter;
};
type MediaFunction = (first: CSSObject | TemplateStringsArray, ...rest: Interpolation<object>[]) => ThemeValue;
type Media = {
[K in keyof MediaSizes]: MediaFunction;
};
declare const media: Media;
export default media;