10% off on all-access. Use code SUPER10.
    d :
    h :
    m :
    Logo

    Scales

    A repeating diagonal, horizontal, or vertical line pattern background effect.

    Portrait

    Installation

    Run the following command

    npx shadcn@latest add @aceternity/scales

    Horizontal Scales

    Horizontal Scales

    Vertical Scales

    Vertical Scales

    Scales Container

    A wrapper component that makes it easy to add scales behind any content.

    Scales Container

    Wrap your content with the ScalesContainer component for a clean API.

    Scales with Image

    Portrait

    Props

    Scales Props

    PropTypeDefaultDescriptionRequired
    orientation"horizontal" | "vertical" | "diagonal""diagonal"Direction of the scales pattern.No
    sizenumber10Size of each scale unit in pixels.No
    classNamestring-Additional CSS classes to apply to the scales container.No
    colorstring-Custom color for the scales pattern.No

    ScalesContainer Props

    PropTypeDefaultDescriptionRequired
    childrenReact.ReactNode-Content to display inside the container.No
    orientation"horizontal" | "vertical" | "diagonal""diagonal"Direction of the scales pattern.No
    sizenumber10Size of each scale unit in pixels.No
    classNamestring-Additional CSS classes to apply to the scales background.No
    containerClassNamestring-Additional CSS classes to apply to the outer container.No
    colorstring-Custom color for the scales pattern.No

    Build websites faster and 10x better than your competitors with

    Aceternity UI Pro

    Next.js 15, Tailwind CSS v4 and Motion for react powered templates

    200+ templates and blocks combined

    Ready to copy paste component blocks, save days of development time

    Aceternity UI Pro Demo - Light Mode
    Logo
    Aceternity UI

    Access an ever-growing collection of premium, meticulously crafted templates and Component Blocks.

    A product by Aceternity
    Building in public at @mannupaaji

    © 2026 Aceternity Labs LLC. All Rights Reserved.