xAIcreator
Tech11 min read

The Art of Rounded Corners: Inside xAIcreator's Design System

Jay LeeJay Lee11 min read·10 days ago
The Art of Rounded Corners: Inside xAIcreator's Design System
SUMMARY

Explore how xAIcreator's design system creates a cohesive, humanized UI through thoughtful border radius, adaptive menus, and intelligent component patterns.

Introduction

When you interact with a well-designed interface, something feels right. The buttons respond naturally, menus appear exactly where you expect them, and every element seems to belong together. This isn't magic. It's the result of a carefully crafted design system.

At xAIcreator, we've developed a design system built on three principles: visual harmony through layered border radius, adaptive behaviors that respect user context, and humanized interactions that feel natural.

What Makes It Different

Unlike generic component libraries, our design system is opinionated about the details that matter: border radius relationships, padding distributions, and overflow behaviors that "just work."

The Border Radius Philosophy

Border radius isn't just decoration. It's a visual language. Our system uses three primary radius values that create natural hierarchy:

18px
Containers
Cards, Menus, Dialogs
12px
Items
Menu items, Inputs
40px
Buttons
Pill-shaped controls

This creates a visual relationship: containers (18px) hold items (12px), and buttons (pill) stand out as interactive elements. The nested radius ensures inner elements never feel cramped against outer edges.

Radius in Practice: Dropdown Menu

See how the radius values work together in a real component:

Edit icon Edit
Duplicate icon Duplicate
Archive icon Archive
Delete icon Delete
Container: 18px radius + 6px padding
Items: 12px radius + 32px height
Gap: 6px between container edge and item edge
18px - 6px = 12px
Container radius minus padding equals item radius

Adaptive Menu Behaviors

Menus that overflow the viewport are frustrating. Our dropdown menus automatically adapt to available space:

Auto Height
Menus use max-height: var(--available-height) to never exceed viewport bounds. Long lists become scrollable.
Smart Positioning
Submenus automatically flip from right to left when approaching screen edges. No menu ever gets cut off.
Smooth Animations
Entry animations adapt based on direction: slide from top when opening below, from bottom when opening above.

Humanized Interaction Patterns

Small details make interfaces feel thoughtful. Here are patterns that elevate user experience:

Hover Actions

Instead of cluttering the UI with action buttons, we reveal them on hover:

Writing Styles
Check icon Professional
Edit icon Delete icon
Casual
Humorous
Add icon Add style...

Edit and delete buttons appear on hover, keeping the UI clean

Button Variants

Four variants for different levels of emphasis:

Plus icon Primary Save icon Secondary More options icon Tertiary Link icon Ghost
Main actions
Secondary actions
Subtle actions
Toolbar icons

Tertiary Button with Custom Colors

The tertiary variant supports custom icon colors with automatic 6% opacity backgrounds:

Analytics icon Analytics Check icon Published Delete icon Delete

Background automatically uses 6% opacity of the icon color

Elevation System

Shadows define visual hierarchy. Our elevation system creates depth through three carefully calibrated levels:

100
Subtle
Cards, panels
200
Medium
Hover states
300
Strong
Menus, modals

Each elevation level includes a subtle inner highlight (white inset) and a thin border ring for definition. This creates a refined, paper-like quality that feels tactile without being heavy.

Usage Guidelines
elevation-100: Default state for cards and containers
elevation-200: Hover transitions for interactive elements
elevation-300: Floating elements that overlay content

Spacing & Padding System

Consistent spacing creates visual rhythm. Our system uses an 8px base grid:

6px
Menu padding
Container inner spacing
32px
Item height
Touch-friendly targets
16px
Icon gap
Space between icon and text

Component Inventory

Our design system includes 20+ components, each following these principles:

Button
Input
Select
Textarea
Card
Dialog
Dropdown
Tooltip
Popover
Accordion
Tabs
Switch

Conclusion

A design system is more than components. It's a philosophy encoded in code. The details matter: the relationship between border radius values, how menus adapt to viewport constraints, how actions reveal themselves at the right moment.

These aren't arbitrary decisions. Each choice serves the goal of creating interfaces that feel natural and respectful of user attention.

EXPLORE

See It in Action

Visit our interactive documentation to explore every component with live examples and code snippets.

Jay Lee

Written by Jay Lee

Jay Lee is the lead product designer at XAICreator, bringing a unique blend of design thinking and user experience expertise. He focuses on creating intuitive interfaces that make AI-powered tools accessible to everyone.

With a background in visual design and human-computer interaction, Jay crafts delightful user experiences that balance aesthetics with functionality, helping creators achieve their goals effortlessly.