UNPKG

@razorpay/blade

Version:

The Design System that powers Razorpay

89 lines (86 loc) 1.51 kB
// Base pixel values - these will be scaled based on container size var RADIUS_MAPPING = { small: { outerRadius: 80, innerRadius: 52 }, medium: { outerRadius: 120, innerRadius: 80 }, large: { outerRadius: 162, innerRadius: 100 } }; // The minimum container dimension for which the base pixel values are designed var BASE_CONTAINER_SIZE = { small: 180, // 80 * 2 + some padding medium: 260, // 120 * 2 + some padding large: 340 // 162 * 2 + some padding }; var START_AND_END_ANGLES = { circle: { startAngle: 450, endAngle: 90 }, semicircle: { startAngle: 180, endAngle: 0 } }; var componentId = { chartDonut: 'chartDonut', cell: 'cell' }; var CENTER_TEXT_POSITION = { withLegend: { x: '50%', y: '48%' }, withoutLegend: { x: '50%', y: '50%' } }; var LABEL_DISTANCE_FROM_CENTER = { small: { normal: 0, withText: -14, withLabel: 6 }, medium: { normal: 0, withText: -16, withLabel: 8 }, large: { normal: 0, withText: -18, withLabel: 10 } }; var LABEL_FONT_STYLES = { small: { fontSize: { label: 75, text: 500 } }, medium: { fontSize: { label: 100, text: 600 } }, large: { fontSize: { label: 200, text: 700 } } }; export { BASE_CONTAINER_SIZE, CENTER_TEXT_POSITION, LABEL_DISTANCE_FROM_CENTER, LABEL_FONT_STYLES, RADIUS_MAPPING, START_AND_END_ANGLES, componentId }; //# sourceMappingURL=tokens.js.map