UNPKG

@flexnative/theme-context

Version:
37 lines (36 loc) 1.58 kB
/** * @file constants.ts * @author Redon Alla <redon.alla@gmail.com> * @createDate 2024-11-05 22:13:28 * @modifyDate 2025-03-09 23:05:53 * @description Constants used for theming and styling in the application. */ import { BorderRadius, BorderWidth, FontSize, Spaces } from "./props"; export declare const FONT_SIZE: Record<FontSize, number>; /** * A constant object that maps different border radius sizes to their corresponding numeric values. * * @constant * @type {Record<BorderRadius, number>} * * @property {number} none - Represents no border radius (0). * @property {number} small - Represents a small border radius (2). * @property {number} medium - Represents a medium border radius (4). * @property {number} large - Represents a large border radius (6). * @property {number} full - Represents a fully rounded border radius (99999). */ export declare const BORDER_RADIUS: Record<BorderRadius, number>; /** * A constant object that maps different border width types to their corresponding numeric values. * * @constant * @type {Record<BorderWidth, number>} * * @property {number} none - Represents no border width (0). * @property {number} hairline - Represents a hairline border width, using the platform's hairline width. * @property {number} thin - Represents a thin border width (1). * @property {number} base - Represents a base border width (2). * @property {number} thick - Represents a thick border width (3). */ export declare const BORDER_WIDTH: Record<BorderWidth, number>; export declare const SPACING: Record<Spaces, number>;