Main Content (61.8034%)
The golden ratio divides space naturally, with the main content taking the larger segment.
A golden ratio (φ ≈ 1.618034) design system for Tailwind CSS
The golden ratio (φ) occurs when the ratio of two quantities is the same as the ratio of their sum to the larger quantity.
φ = 1.618034
a/b = (a+b)/a = φ
1/φ = 0.618034 (61.8%)
1/φ² = 0.381966 (38.2%)
1/φ³ = 0.236068 (23.6%)
Found throughout nature, art, and architecture, the golden ratio creates compositions that are aesthetically pleasing and naturally balanced.
The golden ratio divides space naturally, with the main content taking the larger segment.
The golden thirds grid (38.2% : 23.6% : 38.2%) creates naturally balanced layouts based on nested golden ratios. The center column is derived from applying the golden ratio to the side columns.
The golden ratio creates natural visual rhythm, even in empty space. Notice how the center gap feels perfectly balanced.
The space between elements is as important as the elements themselves.
The golden thirds grid is derived from nested applications of the golden ratio:
38.2% = 1/φ²
23.6% = 1/φ³
Sum = 100%
The Quick Brown Fox
The Quick Brown Fox
The Quick Brown Fox
The Quick Brown Fox
The Quick Brown Fox
The Quick Brown Fox
Base = 16px
φ⁴ = 6.854rem
φ³ = 4.236rem
φ² = 2.618rem
φ¹ = 1.618rem
φ⁰ = 1.000rem
φ⁻¹ = 0.618rem
<h1 class="text-phi-2xl">
<h2 class="text-phi-xl">
<p class="text-phi">
Using phi-based padding and typography.
Natural proportions create visual harmony.
Perfect for content-driven layouts.
The golden ratio (φ) appears throughout nature, from spiral galaxies to sunflower seeds. Now you can bring these divine proportions to your web layouts.
φ = 1.618034
1/φ = 0.618034
1/φ² = 0.381966
Using the smallest golden ratio division (23.6%) for subtle asymmetry that feels natural and balanced
The larger section (76.4%) provides ample space for content while the narrow sidebar creates a subtle asymmetric balance that feels natural to the eye.
The main content takes up the majority of the space, creating a natural reading width while the meta information sits in a harmonious smaller column.
Using flex and width utilities to create golden ratio compositions
Takes up 61.8% of the space using w-phi
38.2% width using w-phi-sm
Nested golden ratio split within the main content area
Secondary information
Flex-1 takes the rest
Primary content area using w-phi (61.8%)
Using w-phi-sm (38.2%)
Using phi-based units for padding, margins, and gaps creates harmonious spatial relationships
Using phi-based spacing for consistent rhythm
Margins and padding follow the golden ratio
Creating visual harmony through spacing
Main paragraph with phi-based line height. The golden ratio creates natural rhythm in typography and spacing.
"The golden ratio has been used in art and architecture for thousands of years."
Another paragraph demonstrating the harmonious spacing between elements.
The golden ratio creates perfect rhythm in typography. This paragraph uses the classic φ value for line height, creating natural spacing between lines.
For tighter spacing, we can use the square root of φ. This creates a more compact but still harmonious spacing, perfect for headings or short paragraphs.
For more spacious text, we can use φ². This creates airy, open spacing that's perfect for important quotes or featured text.
A slightly tighter spacing that maintains the golden ratio's harmony while providing more density. Perfect for body text that needs to be compact but readable.
A more relaxed spacing that combines φ with its reciprocal. This creates an open, airy feel while maintaining mathematical harmony.
Basic φ Values:
Derived Values:
Each line height value is derived from the golden ratio, creating a harmonious scale of spacing options.