@compiled/react
Version:
A familiar and performant compile time CSS-in-JS library for React.
10 lines (9 loc) • 517 B
TypeScript
import type { Depths } from '@compiled/utils';
/** We look at shorthands to determine what level they are because we need some shorthands to override other shorthands…
* 0 – `all`
* 1 – `border`, `margin`, `flex`, etc
* 2 – `border-block`, `border-top` `margin-inline`
* 3 – `border-block-end`, etc
* null – `border-top-color`, `border-block-start-color`, `margin-block-start`, `margin-top`, etc (not shorthands)
*/
export declare const getShorthandDepth: (shorthand: string) => Depths | null;