Skip to Content
Hashti Design System
Foundations

Spacing & Geometry

Explore Hashti's 8-point spatial grid, standardized control heights, arch ratios, and corner radii.

Spacing & Geometry

Hashti’s layout engine is built upon an 8-point spatial grid system reinforced with geometric proportions derived from Persian architectural vaulting and courtyards.


1. The 8-Point Spatial Grid

Every layout offset, container padding, and inter-component margin aligns strictly with powers or multiples of 8 (with 4px reserved as a half-step micro-grid unit):

Spacing TokenPixel ValueRem Equiv.Common Application
--hashti-spacing-014px0.25remIcon-to-text gaps, badge inner padding, micro offsets.
--hashti-spacing-028px0.5remRelated item spacing, compact button inline padding.
--hashti-spacing-0312px0.75remControl padding, input field horizontal gutter.
--hashti-spacing-0416px1.0remDefault card padding, compact stack gap, standard gutter.
--hashti-spacing-0524px1.5remModal dialog padding, section separation, form row gap.
--hashti-spacing-0632px2.0remPage section margins, hero layout boundaries.
--hashti-spacing-0748px3.0remLarge section dividers, macro container margins.
--hashti-spacing-0864px4.0remPage canvas gutters, major architectural thresholds.

2. Standardized Control Heights

All interactive controls (Buttons, TextFields, Select dropdowns, SearchFields, DatePickers) share synchronized vertical heights across three ergonomic sizes:

SizeHeightTypographyIdeal Context
Small (sm)32px13px / CaptionHigh-density tables, compact toolbars, data-heavy inspection drawers.
Medium (md)40px (Default)14px / BodyStandard forms, general product workflows, dialogue action rows.
Large (lg)48px16px / TitleMobile-optimized touch surfaces, public landing pages, search hero bars.

[!NOTE] The default 40px height provides a comfortable 48px touch target buffer with padding, satisfying WCAG 2.2 Target Size (Minimum) criteria.


3. Geometric Arch Ratios

The visual identity of Hashti is anchored in the classic pointed ogival arch that characterizes Persian portals from Isfahan’s Naqsh-e Jahan to Yazd’s Jameh Mosque:

        ▲  Apex (32° Included Angle)
       / \
      /   \
     /     \     Golden Proportion (1 : 1.618)
    /       \
   |         |
   |         |   Vertical Stilt Height
   +---------+
      Width
  • 32° Arch Pitch: The authentic angle found in Safavid vaulted entrances.
  • Golden Ratio Proportion (1:1.618): The relationship between the arch height and its span width follows the divine proportion, creating natural balance and calm.
  • Concentric Offset: In vector iconography, arch layers maintain a uniform 16px stroke weight separated by a 14px negative clearance channel.

4. Border Radius Scale

Corners in Hashti are disciplined and intentional, avoiding the overly pill-shaped look of consumer apps while maintaining soft modern tactile edges:

Radius TokenValueApplied To
--hashti-radius-sm2pxCheckbox boxes, progress bar indicators, table row highlights.
--hashti-radius-md6pxStandard buttons, input controls, dropdown popovers, badges.
--hashti-radius-lg12pxCards, modal dialogs, flyout drawers, floating sheets.
--hashti-radius-full9999pxAvatars, circular icon buttons, status indicator dots.
/* Example radius token usage */
.hashti-button {
  border-radius: var(--hashti-radius-md, 6px);
}

.hashti-card {
  border-radius: var(--hashti-radius-lg, 12px);
}