Skip to content
LinkedInX

Styling Fundamentals

5 min read + 20 min hands-on

Target audience: Designers and developers starting to write styling prompts for AI tools.

Visual hierarchy is how you organize elements to guide the user’s eye from the most important to the least. When prompting for UI, you need to describe this hierarchy explicitly.

Use size, color, and spacing to establish importance.

Create a card component with clear visual hierarchy:
- Large title (24px, font-weight 700)
- Medium subtitle (16px, font-weight 500, gray-500)
- Small body text (14px, font-weight 400, gray-600)
- Prominent CTA button (full-width, primary color background, white text)
Use spacing to separate each level: 8px between title and subtitle, 12px before body, 24px before button.
ElementWhat to specify
TypographyFont size, weight, and color for each level
SpacingExact padding/margin values between sections
Color contrastDarker/bolder for primary, lighter for secondary
Button prominenceSize, color fill vs. outline, position

Choosing a style type sets the entire visual tone of a component. Name it explicitly — AI will make different decisions about shadows, borders, transparency, and corners depending on the style.

Clean, solid colors. No shadows or gradients. Fast and distraction-free.

Design a settings panel using flat design:
solid white background, no shadows, 1px #E5E7EB borders,
8px border radius, blue-600 for active states.

Best for: productivity tools, content-heavy interfaces, fast-loading pages.


Transparent backgrounds with visible borders. Components feel lightweight.

Create an outline-style button set:
transparent background, 1.5px solid border in the current accent color,
text in the accent color, filled background on hover.

Best for: secondary actions, filter chips, tag components.


Simple and clean with subtle visual cues. No decorative elements.

Design a minimalist login form:
white background, no decorative elements,
single 1px bottom border on inputs (not full box border),
one accent color for the submit button only.

Best for: reading-focused apps, editorial sites, content platforms.


Backdrop blur with semi-transparent surfaces. Creates depth and a premium feel.

Create a glassmorphism card:
background: rgba(255, 255, 255, 0.15),
backdrop-filter: blur(12px),
border: 1px solid rgba(255, 255, 255, 0.2),
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1).

Best for: dashboards on image backgrounds, modern SaaS, landing pages.


Rounded corners, subtle depth, and layered surfaces. Feels native on Apple devices.

Design an iOS-style action sheet:
white card background, 14px border radius,
subtle separator lines between options,
blue system color (#007AFF) for primary actions,
red (#FF3B30) for destructive actions.

Best for: mobile web apps, PWAs, apps targeting Apple users.


Elevation-based depth using consistent shadows. Clear hierarchy through layering.

Create a Material Design card:
white surface (#FFFFFF), elevation-2 shadow (0 2px 4px rgba(0,0,0,0.12)),
4px border radius, 16px internal padding,
raised to elevation-4 shadow on hover.

Best for: Android apps, Google-adjacent tools, enterprise interfaces.


Colors carry meaning. When you name a color in a prompt, also state the intended emotional purpose so AI applies it in the right contexts.

ColorPsychologyPrompt use case
Red #EF4444Energy, urgency, warningError states, delete actions, CTAs
Blue #3B82F6Trust, stability, professionalismPrimary actions, finance, corporate
Green #10B981Growth, success, safetySuccess states, eco brands, confirmations
Yellow #F59E0BOptimism, attention, cautionWarnings, highlights, creative tools
Purple #8B5CF6Luxury, creativity, mysteryPremium tiers, creative apps
Gray #6B7280Neutrality, sophisticationText, borders, backgrounds
Create a financial dashboard using blue (#3B82F6) as primary color
to convey trust and stability.
Use green (#10B981) for positive values and gains,
red (#EF4444) for negative values and losses.
Gray (#6B7280) for secondary labels and dividers.

A strong styling prompt names the hierarchy, style type, and color intent together.

Design a pricing card with material design style:
- Visual hierarchy: plan name (20px bold), price (48px bold primary), 
  feature list (14px gray-600), CTA button (full-width)
- Style: elevation-2 shadow, 8px border radius, white surface
- Colors: blue (#3B82F6) for the recommended plan highlight,
  gray (#F9FAFB) for standard plan background,
  green (#10B981) checkmarks for included features,
  red (#EF4444) for excluded features