Skip to content

Pattern Library

The WyvernPress Pattern Library contains 100+ pre-built CSS patterns that match common styling requests instantly, without any AI API calls. Patterns respond in under 50ms and handle approximately 60% of typical styling requests.

  1. You type: “Add a subtle shadow”
  2. WyvernPress extracts keywords: [“subtle”, “shadow”]
  3. Pattern matcher scores all patterns: Calculates similarity scores
  4. Best match found: “subtle shadow” pattern → box-shadow: 0 1px 2px rgba(0,0,0,0.05)
  5. Confidence calculated: 95% (high match)
  6. Result returned: Instant CSS, zero API cost
ConfidenceAction
70-100%Use pattern result
50-69%Fallback to AI (if configured)
0-49%Fallback to AI (if configured)

WyvernPress includes patterns in these categories:

  • Colors: 50+ patterns (text, background, gradients)
  • Shadows: 30+ patterns (box shadows, text shadows, glows)
  • Borders: 25+ patterns (radius, styles, widths)
  • Spacing: 20+ patterns (padding, margin, gaps)
  • Typography: 20+ patterns (sizes, weights, alignment)
  • Layout: 15+ patterns (flex, grid, centering)
  • Buttons: 15+ patterns (styles, states)

PromptCSS Output
bluecolor: #0073aa
light bluecolor: #00a0d2
dark bluecolor: #005177
redcolor: #dc3232
light redcolor: #f56e28
dark redcolor: #8a1b1b
greencolor: #46b450
light greencolor: #5fd35f
dark greencolor: #2e7d32
yellowcolor: #ffb900
orangecolor: #f56e28
purplecolor: #826eb4
blackcolor: #000000
whitecolor: #ffffff
gray / greycolor: #666666

Variations: All colors work with variations like “make this blue”, “blue text”, “color blue”

PromptCSS Output
blue backgroundbackground-color: #0073aa
red backgroundbackground-color: #dc3232
green backgroundbackground-color: #46b450
white backgroundbackground-color: #ffffff
dark backgroundbackground-color: #23282d
light backgroundbackground-color: #f1f1f1
transparentbackground-color: transparent
PromptCSS Output
wordpress bluecolor: #0073aa
primary colorcolor: #0073aa
success colorcolor: #46b450
warning colorcolor: #ffb900
error colorcolor: #dc3232
info colorcolor: #00a0d2
PromptCSS Output
gradientbackground: linear-gradient(135deg, #0073aa, #00a0d2)
blue gradientbackground: linear-gradient(135deg, #0073aa, #00a0d2)
sunset gradientbackground: linear-gradient(135deg, #f56e28, #dc3232)
purple gradientbackground: linear-gradient(135deg, #826eb4, #a88cd4)

PromptCSS Output
shadowbox-shadow: 0 2px 4px rgba(0,0,0,0.1)
add shadowbox-shadow: 0 2px 4px rgba(0,0,0,0.1)
subtle shadowbox-shadow: 0 1px 2px rgba(0,0,0,0.05)
light shadowbox-shadow: 0 1px 3px rgba(0,0,0,0.08)
medium shadowbox-shadow: 0 2px 4px rgba(0,0,0,0.1)
heavy shadowbox-shadow: 0 4px 8px rgba(0,0,0,0.15)
deep shadowbox-shadow: 0 8px 16px rgba(0,0,0,0.2)
no shadowbox-shadow: none
PromptCSS Output
elevatedbox-shadow: 0 4px 12px rgba(0,0,0,0.15)
raisedbox-shadow: 0 4px 12px rgba(0,0,0,0.15)
floatingbox-shadow: 0 8px 24px rgba(0,0,0,0.15)
inner shadowbox-shadow: inset 0 2px 4px rgba(0,0,0,0.1)
PromptCSS Output
text shadowtext-shadow: 1px 1px 2px rgba(0,0,0,0.2)
subtle text shadowtext-shadow: 1px 1px 1px rgba(0,0,0,0.1)
heavy text shadowtext-shadow: 2px 2px 6px rgba(0,0,0,0.4)
PromptCSS Output
glowbox-shadow: 0 0 10px rgba(0,123,255,0.5)
blue glowbox-shadow: 0 0 15px rgba(0,115,170,0.6)
green glowbox-shadow: 0 0 15px rgba(70,180,80,0.6)
red glowbox-shadow: 0 0 15px rgba(220,50,50,0.6)
text glowtext-shadow: 0 0 8px rgba(0,123,255,0.8)

PromptCSS Output
roundedborder-radius: 4px
rounded cornersborder-radius: 8px
more roundedborder-radius: 12px
very roundedborder-radius: 16px
pillborder-radius: 9999px
circleborder-radius: 50%
squareborder-radius: 0
PromptCSS Output
borderborder: 1px solid #ddd
thin borderborder: 1px solid #ddd
thick borderborder: 3px solid #ddd
no borderborder: none
dashed borderborder: 1px dashed #ddd
dotted borderborder: 1px dotted #ddd
PromptCSS Output
blue borderborder: 1px solid #0073aa
red borderborder: 1px solid #dc3232
green borderborder: 1px solid #46b450
gray borderborder: 1px solid #ccc

PromptCSS Output
paddingpadding: 1rem
add paddingpadding: 1rem
small paddingpadding: 0.5rem
large paddingpadding: 2rem
extra paddingpadding: 3rem
no paddingpadding: 0
PromptCSS Output
marginmargin: 1rem
add marginmargin: 1rem
small marginmargin: 0.5rem
large marginmargin: 2rem
no marginmargin: 0
centermargin: 0 auto
PromptCSS Output
gapgap: 1rem
small gapgap: 0.5rem
large gapgap: 2rem
space betweengap: 1rem

PromptCSS Output
larger textfont-size: 1.25rem
large textfont-size: 1.5rem
biggerfont-size: 1.25rem
smaller textfont-size: 0.875rem
tiny textfont-size: 0.75rem
PromptCSS Output
boldfont-weight: 700
semiboldfont-weight: 600
normal weightfont-weight: 400
light weightfont-weight: 300
PromptCSS Output
uppercasetext-transform: uppercase
lowercasetext-transform: lowercase
capitalizetext-transform: capitalize
italicfont-style: italic
underlinetext-decoration: underline
strikethroughtext-decoration: line-through
PromptCSS Output
center texttext-align: center
left aligntext-align: left
right aligntext-align: right
justifytext-align: justify

PromptCSS Output
flexdisplay: flex
inlinedisplay: inline
blockdisplay: block
hiddendisplay: none
griddisplay: grid
PromptCSS Output
centerdisplay: flex; justify-content: center; align-items: center
center horizontallydisplay: flex; justify-content: center
center verticallydisplay: flex; align-items: center
space betweendisplay: flex; justify-content: space-between
stackdisplay: flex; flex-direction: column
PromptCSS Output
full widthwidth: 100%
half widthwidth: 50%
auto widthwidth: auto

PromptCSS Output
primary buttonbackground: #0073aa; color: #fff; padding: 10px 20px; border: none; border-radius: 4px
secondary buttonbackground: #f1f1f1; color: #23282d; padding: 10px 20px; border: 1px solid #ddd; border-radius: 4px
outline buttonbackground: transparent; color: #0073aa; padding: 10px 20px; border: 2px solid #0073aa; border-radius: 4px
pill buttonborder-radius: 9999px; padding: 10px 24px
PromptCSS Output
disabledopacity: 0.5; cursor: not-allowed
loadingopacity: 0.7; cursor: wait

PromptCSS Output
hover effecttransition: all 0.2s ease
lift on hover:hover { transform: translateY(-2px) }
grow on hover:hover { transform: scale(1.05) }
brighten on hover:hover { filter: brightness(1.1) }
dim on hover:hover { opacity: 0.8 }

You can combine multiple pattern terms in one request:

Example: “Blue background with rounded corners and subtle shadow”

  • Matches: blue background + rounded corners + subtle shadow
  • Result: Combined CSS from all three patterns

Works best when:

  • Each term clearly matches a pattern
  • Terms don’t conflict (e.g., “blue” and “red”)
  • 2-4 patterns combined

Falls back to AI when:

  • Too many terms to match confidently
  • Conflicting terms
  • Unknown styling concepts

Colors: blue, red, green, yellow, orange, purple, black, white, gray Intensity: light, dark, bright, subtle Shadows: shadow, glow, elevated, floating Borders: rounded, pill, circle, border, outline Spacing: padding, margin, gap, center Typography: bold, large, uppercase, italic

All of these work the same:

  • “Blue background”
  • “BLUE BACKGROUND”
  • “blue BACKGROUND”
  • “make it blue” → matches “blue” pattern
  • “give it shadow” → matches “shadow” pattern
  • “add some padding” → matches “padding” pattern

Developers can add custom patterns. See Custom Patterns Guide →

Example custom pattern:

// In your theme's functions.php or a custom plugin
add_filter( 'wyvernpress_patterns', function( $patterns ) {
$patterns['brand blue'] = array(
'background-color' => '#1a73e8',
'color' => '#ffffff',
);
return $patterns;
} );

ScenarioUse PatternUse AI
Common colorsYesNo
Basic shadowsYesNo
Standard bordersYesNo
Common spacingYesNo
Creative stylingNoYes
Complex animationsNoYes
Brand-specific stylesMaybeMaybe
Unknown conceptsNoYes

MetricPattern LibraryAI Generation
Response time<50ms1-3 seconds
API costZeroPer-request
CacheWordPress cache24-hour cache
AvailabilityAlwaysRequires API key