Components
Interactive components with all states, transitions, and specifications.
Links
Text links for navigation. Accent color with underline on hover.
Inline Link
Links within body text. Uses accent color to stand out.
SpecificationBase
color oklch(0.585 0.233 264) var(--accent)
text-decoration none
Hover
text-decoration underline
text-underline-offset 3px
transition 150ms ease
Navigation Link
SpecificationDefault
color oklch(0.556 0 0) var(--muted-foreground)
font-size 14px
Hover
color oklch(0.145 0 0) var(--foreground)
transition color 150ms ease
Active
color oklch(0.145 0 0) var(--foreground)
font-weight 500
Cards
Container components with border-radius: 12px.
Feature Card
Interactive cards with hover lift and glow effect. Try hovering.
Multi-Rail Router
Route payments to the optimal rail automatically.
Hover State
Lifted with accent border glow.
DefaultHover
SpecificationBase
background var(--background)
border 1px solid oklch(0.922 0 0)
padding 24px
border-radius 12px
Hover
transform translateY(-2px)
box-shadow 0 8px 16px -6px rgba(0, 0, 0, 0.08)
border-color oklch(0.585 0.233 264 / 0.2)
transition all 400ms ease-out
Pseudo-elements:
::before Gradient border glow
::after Shine sweep effect (600ms)
Static Card
Non-Interactive Content
Used for content display without hover effects.
Code Blocks
Display code with proper syntax formatting. All code blocks have border-radius: 12px.
Inline Code
Use flowly.pay() to process payments.
Specificationfont-family var(--font-geist-mono)
font-size 0.85em (relative)
font-weight 450
background oklch(0.96 0 0)
color oklch(0.3 0 0)
padding 2px 6px
border-radius 4px
Code Window
Terminal-style display with macOS window chrome.
import { Flowly } from '@flowly/sdk'
const flowly = new Flowly({
apiKey: process.env.FLOWLY_API_KEY
})
const result = await flowly.pay({
amount: 50.00,
vendor: 'openai.com',
optimize_for: 'cost'
})
console.log(result.rail_used) // 'ramp'
SpecificationContainer
background oklch(0.15 0 0)
border-radius 12px
box-shadow 0 25px 50px -12px rgba(0, 0, 0, 0.25),
0 0 0 1px rgba(255, 255, 255, 0.05)
Header
background oklch(0.12 0 0)
border-bottom 1px solid oklch(0.2 0 0)
padding 12px 16px
Window Dots
size 12px × 12px
gap 6px
colors #ff5f56 (red), #ffbd2e (yellow), #27ca40 (green)
Content
padding 20px
font-family var(--font-mono)
font-size 14px
line-height 1.6
color #e6edf3
Badges
Small labels with border-radius: 4px for status and categories.
Status Badges
ConnectedPendingError
Label Badges
SDKAPINew
Specificationpadding 4px 10px
font-size 12px
font-weight 500
border-radius 4px
Status Variants
success bg: green-500/10 text: green-600
warning bg: yellow-500/10 text: yellow-600
error bg: red-500/10 text: red-600
neutral bg: var(--muted) text: var(--muted-foreground)
accent bg: accent/10 text: var(--accent)
Keyboard Shortcuts
Display keyboard shortcuts with proper styling.
SpecificationContainer
font-family var(--font-mono)
font-size 11px
font-weight 500
background oklch(0.15 0 0)
padding 4px 8px
border-radius 4px
Key
background oklch(0.25 0 0)
padding 2px 6px
border-radius 3px
Border Radius Scale
Consistent rounded corners throughout the design system.
Transition Timing
Consistent animation timing for all interactive elements.
Timing FunctionsFast (hover, focus)
duration 150ms
easing ease
use Button hovers, link underlines, input focus
Medium (state changes)
duration 200ms
easing ease-out
use Accordion expand, modal open
Emphasis (cards)
duration 400ms
easing ease-out
use Card lift, glow effects
Quick feedback (active)
duration 50ms
easing ease
use Button press scale