Best For
hand-drawn ui / sketch style / pencil sketch
A design style simulating pencil hand-drawing, with irregular line borders, paper texture backgrounds, handwritten font feel, sketch shadows, and doodle decorations, conveying a warm and approachable handcrafted texture.
Best For
hand-drawn ui / sketch style / pencil sketch
Primary Move
Use paper-colored background bg-[#f5f0e8]
Watch Out
Do NOT use perfect straight lines and rounded corners
AI Implementation
Use the Hard Prompt by default to generate UI. Use the Design Spec to understand, modify, and review the style. Use the Creative Brief for early exploration.
Use this by default: copy it, append the concrete requirement, and let AI generate consistent production UI.
When to use
How to use
STYLEKIT_STYLE_REFERENCE
style_name: Sketch Style
style_slug: sketch-style
style_source: /styles/sketch-style
# Hard Prompt
## When To Use
Use this when you want AI to generate code with strict style consistency. It is the safest default for production UI.
## How To Use
- Copy the full prompt into ChatGPT, Claude, Cursor, or another coding assistant.
- Append the concrete product/page requirement after the prompt.
- After generation, check the forbidden rules and interaction states before accepting the output.
Strictly follow the style rules below and maintain consistency. No style drift allowed.
## Requirements
- Prioritize style consistency first, then creative extension.
- When conflicts arise, treat prohibitions as the highest priority.
- Self-check before output: verify colors, typography, spacing, and interactions still match this style.
## Style Rules
You are a Sketch Style design frontend development expert. All generated code must strictly follow these constraints:
## Absolute Prohibitions
- Using perfect straight-line borders border-solid (prefer border-dashed)
- Using pure white backgrounds bg-white
- Using gradients bg-gradient-*
- Using glass blur backdrop-blur
- Using perfect rounded corners rounded-xl, rounded-2xl
- Using overly saturated colors
## Must Follow
- Paper-colored background bg-[#f5f0e8]
- Dashed or irregular borders border-2 border-dashed border-[#2c2c2c]
- Serif italic fonts font-serif italic
- Slight tilt rotate-[-0.5deg] or rotate-[0.5deg]
- Pencil gray primary color #2c2c2c
- Hand-drawn feel shadows shadow-[3px_3px_0_rgba(44,44,44,0.15)]
## Color Palette
Primary:
- Pencil gray: #2c2c2c
- Paper beige: #f5f0e8
Accent colors (low saturation):
- Red: #e74c3c
- Blue: #3498db
- Green: #27ae60
- Yellow: #f39c12
## Special Effects
Paper texture: Using SVG texture backgrounds
Cross-hatching shadows: Line-style semi-transparent shadows
Hand-drawn annotations: Dashed circles, wavy underlines
Irregular arrangement: Elements slightly tilted
## Self-Check
After generating code, verify:
1. Using paper-colored background not pure white
2. Borders are dashed or irregular style
3. Text uses serif italic
4. Elements have slight tilt
5. Overall feel is like a hand-drawn sketchbook
## Animation & Interaction Rules
- Pencil Shading: Hover can quickly shade line elements to pencil gray with inverted white text, simulating pencil smudging.
- Stroke Jitter: Interactions allow slight rotation and displacement jitter, preserving hand-drawn brush stroke instability.
- Scribble Reveal: Text emphasis prioritizes dashed/wavy underlines or hand-drawn trajectory styles.
- Paper Press: Active state should reduce shadow and enhance tilt, expressing pen-tip paper-pressing damping feel.
---
# Sketch Style Design System
> A design style simulating pencil hand-drawing, with irregular line borders, paper texture backgrounds, handwritten font feel, sketch shadows, and doodle decorations, conveying a warm and approachable handcrafted texture.
## Design Philosophy
Sketch Style is a design style simulating hand-drawn pencil sketches, injecting warm handcrafted texture into digital interfaces through irregular lines, paper textures, and handwritten-feel elements.
Core principles:
- Handcrafted feel: Lines and shapes don't pursue perfect alignment, preserving the irregularity of hand-drawing
- Paper texture: Warm beige backgrounds simulating sketchbook paper
- Pencil lines: Borders use uneven hand-drawn style lines
- Sketch shadows: Using cross-hatching to simulate shadow effects
---
## Token Dictionary (exact class mapping)
### Border
```
Width: border-2
Color: border-[#2c2c2c]
Radius: rounded-sm
```
### Shadow
```
sm: shadow-[1px_1px_0px_rgba(44,44,44,0.3)]
md: shadow-[2px_2px_0px_rgba(44,44,44,0.3)]
lg: shadow-[3px_3px_0px_rgba(44,44,44,0.3)]
hover: hover:shadow-[2px_2px_0px_rgba(44,44,44,0.5)]
focus: focus:shadow-[2px_2px_0px_rgba(44,44,44,0.4)]
```
### Interaction
```
Hover translate: (none)
Hover scale: (none)
Hover opacity: hover:opacity-90
Transition: transition-opacity duration-200
Active: active:opacity-80
```
### Typefaces
```
Heading: font-sans font-semibold tracking-normal
Body: font-sans
Mono: font-mono
```
### Type scale
```
Hero: text-3xl md:text-5xl lg:text-6xl
H1: text-2xl md:text-4xl
H2: text-xl md:text-2xl
H3: text-lg md:text-xl
Body: text-sm md:text-base
Small: text-xs md:text-sm
```
### Spacing
```
Section: py-10 md:py-16 lg:py-24
Container: px-4 md:px-6 lg:px-10
Card: p-4 md:p-6
Gap sm: gap-2 md:gap-3
Gap md: gap-3 md:gap-5
Gap lg: gap-5 md:gap-8
```
### Color roles
```
Background primary: bg-[#f5f0e8]
Background secondary: bg-[#e8e2d8]
Background accent: bg-[#2c2c2c], bg-[#6b6b6b], bg-[#a0a0a0]
Text primary: text-[#2c2c2c]
Text secondary: text-[#5a5a5a]
Text muted: text-[#8a8a8a]
Button primary: bg-[#2c2c2c] text-[#f5f0e8]
Button secondary: bg-transparent text-[#2c2c2c] border-2 border-dashed border-[#2c2c2c]
```
---
## [FORBIDDEN]
These classes are banned in this style. Check for them before returning code:
### Banned classes
- `rounded-xl`
- `rounded-2xl`
- `rounded-3xl`
- `rounded-full`
- `shadow-lg`
- `shadow-xl`
- `shadow-2xl`
- `bg-[#ff71ce]`
- `bg-[#01cdfe]`
- `bg-[#ff006e]`
- `bg-[#00ff00]`
- `text-[#ff71ce]`
- `text-[#01cdfe]`
- `text-[#ff006e]`
- `border-4`
- `font-black`
- `bg-gradient-to-r`
- `bg-gradient-to-l`
### Banned patterns
- matches `^rounded-(?:xl|2xl|3xl|full)$`
- matches `^shadow-(?:lg|xl|2xl)$`
- matches `^bg-(?:\[#ff|\[#01cd|\[#00ff)`
- matches `^bg-gradient-`
### Why they are banned
- `rounded-xl`: Sketch style uses minimal rounding (rounded-sm) for a hand-drawn feel
- `shadow-xl`: Sketch style uses very subtle pencil-like shadows, not heavy shadows
- `bg-[#ff71ce]`: Sketch style uses pencil tones (grays, cream), not neon colors
- `bg-gradient-to-r`: Sketch style uses flat paper-like surfaces, not gradients
> WARNING: if your code contains any of the above, replace it before shipping.
---
## [REQUIRED]
### Every button must include
```
rounded-sm
border-2 border-dashed border-[#2c2c2c]
transition-opacity duration-200
font-semibold
```
### Every card must include
```
rounded-sm
border-2 border-dashed border-[#2c2c2c]
bg-[#f5f0e8]
shadow-[2px_2px_0px_rgba(44,44,44,0.3)]
```
### Every input must include
```
rounded-sm
border-2 border-dashed border-[#2c2c2c]
bg-[#faf5ed]
font-sans
focus:shadow-[2px_2px_0px_rgba(44,44,44,0.4)]
focus:outline-none
```
---
## [COMPARE] Sketch Style wrong vs right
The wrong examples below stand for generic library defaults that were never adapted to this style. Do not read them as visual suggestions.
### Button
[WRONG] **Wrong** (generic component library default, do not copy):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
Click me
</button>
```
[CORRECT] **Right** (uses this style's tokens):
```html
<button class="rounded-sm border-2 border-dashed border-[#2c2c2c] transition-opacity duration-200 font-semibold bg-[#2c2c2c] text-[#f5f0e8]">
Click me
</button>
```
### Card
[WRONG] **Wrong** (generic card, not adapted to this style):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
<h3>{TITLE}</h3>
</div>
```
[CORRECT] **Right** (uses this style's card tokens):
```html
<div class="rounded-sm border-2 border-dashed border-[#2c2c2c] bg-[#f5f0e8] shadow-[2px_2px_0px_rgba(44,44,44,0.3)] p-4 md:p-6">
<h3 class="font-sans font-semibold tracking-normal text-lg md:text-xl">{TITLE}</h3>
</div>
```
### Input
[WRONG] **Wrong** (generic input, not adapted to this style):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```
[CORRECT] **Right** (uses this style's input tokens):
```html
<input class="rounded-sm border-2 border-dashed border-[#2c2c2c] bg-[#faf5ed] font-sans focus:shadow-[2px_2px_0px_rgba(44,44,44,0.4)] focus:outline-none" placeholder="{PLACEHOLDER}" />
```
---
## [TEMPLATES] Sketch Style page skeletons
These skeletons use this style's tokens only. Replace `{PLACEHOLDER}` values, but keep every token in place:
### Navigation
```html
<nav class="bg-[#f5f0e8] text-[#2c2c2c] border-2 border-[#2c2c2c] px-4 md:px-6 lg:px-10">
<div class="flex items-center justify-between max-w-6xl mx-auto gap-3 md:gap-5">
<a href="/" class="font-sans font-semibold tracking-normal text-lg md:text-xl">
{LOGO_TEXT}
</a>
<div class="flex gap-3 md:gap-5 font-sans text-xs md:text-sm">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero section
```html
<section class="bg-[#2c2c2c] text-[#2c2c2c] py-10 md:py-16 lg:py-24 px-4 md:px-6 lg:px-10">
<div class="max-w-4xl mx-auto">
<h1 class="font-sans font-semibold tracking-normal text-3xl md:text-5xl lg:text-6xl">
{HEADLINE}
</h1>
<p class="font-sans text-sm md:text-base max-w-xl">
{SUBHEADLINE}
</p>
<button class="rounded-sm border-2 border-dashed border-[#2c2c2c] transition-opacity duration-200 font-semibold bg-[#2c2c2c] text-[#f5f0e8]">
{CTA_TEXT}
</button>
</div>
</section>
```
### Card grid
```html
<section class="bg-[#f5f0e8] text-[#2c2c2c] py-10 md:py-16 lg:py-24 px-4 md:px-6 lg:px-10">
<div class="max-w-6xl mx-auto">
<h2 class="font-sans font-semibold tracking-normal text-xl md:text-2xl">{SECTION_TITLE}</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 md:gap-5">
<!-- Card template - repeat for each card -->
<div class="rounded-sm border-2 border-dashed border-[#2c2c2c] bg-[#f5f0e8] shadow-[2px_2px_0px_rgba(44,44,44,0.3)] p-4 md:p-6">
<h3 class="font-sans font-semibold tracking-normal text-lg md:text-xl">{CARD_TITLE}</h3>
<p class="font-sans text-sm md:text-base text-[#8a8a8a]">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### Form input
```html
<input class="rounded-sm border-2 border-dashed border-[#2c2c2c] bg-[#faf5ed] font-sans focus:shadow-[2px_2px_0px_rgba(44,44,44,0.4)] focus:outline-none" placeholder="{PLACEHOLDER}" />
```
### Footer
```html
<footer class="bg-[#e8e2d8] text-[#5a5a5a] py-10 md:py-16 lg:py-24 px-4 md:px-6 lg:px-10">
<div class="max-w-6xl mx-auto">
<div class="grid grid-cols-1 md:grid-cols-3 gap-5 md:gap-8">
<div>
<span class="font-sans font-semibold tracking-normal text-lg md:text-xl">{LOGO_TEXT}</span>
<p class="font-sans text-xs md:text-sm">{TAGLINE}</p>
</div>
<div>
<h4 class="font-sans font-semibold tracking-normal text-lg md:text-xl">{COLUMN_TITLE}</h4>
<ul class="font-sans text-xs md:text-sm">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] Sketch Style post-generation self check
**Before returning code, verify every token and rule below. Fix any violation before delivering:**
### Token check
- [ ] Button includes: `rounded-sm border-2 border-dashed border-[#2c2c2c] transition-opacity duration-200 font-semibold`
- [ ] Card includes: `rounded-sm border-2 border-dashed border-[#2c2c2c] bg-[#f5f0e8] shadow-[2px_2px_0px_rgba(44,44,44,0.3)]`
- [ ] Input includes: `rounded-sm border-2 border-dashed border-[#2c2c2c] bg-[#faf5ed] font-sans focus:shadow-[2px_2px_0px_rgba(44,44,44,0.4)] focus:outline-none`
### Forbidden check
- [ ] Not using `rounded-xl`
- [ ] Not using `rounded-2xl`
- [ ] Not using `rounded-3xl`
- [ ] Not using `rounded-full`
- [ ] Not using `shadow-lg`
- [ ] Not using `shadow-xl`
- [ ] Not using `shadow-2xl`
- [ ] Not using `bg-[#ff71ce]`
### Style rule check
- [ ] Use paper-colored background bg-[#f5f0e8]
- [ ] Use irregular style borders border-2 border-dashed or wavy
- [ ] Use handwritten-style or serif fonts
- [ ] Use cross-hatching effects for shadows instead of solid colors
- [ ] Keep elements slightly tilted rotate-[-1deg] for hand-drawn feel
### Style drift check
- [ ] Does not violate: Do NOT use perfect straight lines and rounded corners
- [ ] Does not violate: Do NOT use pure white backgrounds (should use paper color)
- [ ] Does not violate: Do NOT use gradient effects
- [ ] Does not violate: Do NOT use glass blur effects
- [ ] Does not violate: Do NOT use overly saturated colors
### Delivery check
- [ ] Responsive layout holds on phone, tablet and desktop with no horizontal overflow
- [ ] Every interactive element has a visible focus state, an accessible name and a reduced-motion path
- [ ] Text contrast meets WCAG AA and colour alone never carries state
- [ ] The result is still recognizable at a glance as Sketch Style
## Absolute Bans (Match and Refuse)
If any of the following patterns appear, it is a style violation — rewrite without exception.
- use perfect straight lines and rounded corners
- use pure white backgrounds (should use paper color)
- use gradient effects
- use glass blur effects
- use overly saturated colors
- use long smooth animations (hand-drawn feedback should be short and direct)
- use overly regular hover changes (need to preserve rough brush stroke feel)
## Self-Check (Verify Before Shipping)
If any item fails, the style has drifted — fix before shipping.
- [ ] No purple-to-blue gradients
- [ ] No overused fonts (Inter, Roboto, Geist, Fraunces, Plus Jakarta Sans)
- [ ] No nested cards (cards inside cards)
- [ ] No gray text on colored backgrounds
- [ ] Body text contrast meets WCAG AA (>= 4.5:1)
- [ ] No bounce or elastic easing curves
- [ ] Animations have a prefers-reduced-motion fallback
- [ ] Body text line length capped at 65-75 characters
- [ ] No side-stripe accent borders (border-left/right > 1px)
- [ ] No gradient text (background-clip: text)
- [ ] No glassmorphism used as the default surface treatment
- [ ] No tiny uppercase tracked eyebrow labels above every section heading
- [ ] do NOT use perfect straight lines and rounded corners
- [ ] do NOT use pure white backgrounds (should use paper color)
- [ ] do NOT use gradient effects
- [ ] do NOT use glass blur effects
- [ ] do NOT use overly saturated colorsMore prompt libraries: All UI Prompts · Tailwind UI Prompts · Dark Mode UI Prompts
Component Templates
手绘风格按钮,不规则边框
Frontend Readiness
This layer tracks whether the style is ready for real websites: theme modes, state feedback, keyboard access, and performance constraints.
Overall
58%
Fallback
Dark Mode
35%
FallbackUI States
79%
PartialMotion
70%
PartialA11y
70%
PartialPerformance
35%
FallbackButton
Default / Hover / Focus Visible / Active / Disabled
Input
Default / Hover / Focus Visible / Disabled / Error
Card
Default / Hover / Focus Visible / Loading / Skeleton
Form
Default / Focus Visible / Disabled / Loading / Error
FAQ
/* Sketch Style 全局样式 */
:root {
--sketch-dark: #2c2c2c;
--sketch-paper: #f5f0e8;
--sketch-red: #e74c3c;
--sketch-blue: #3498db;
--sketch-green: #27ae60;
--sketch-yellow: #f39c12;
}
/* 纸张纹理背景 */
.sketch-paper {
background-color: var(--sketch-paper);
background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232c2c2c' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}
/* 手绘边框效果 */
.sketch-border {
border: 2px dashed var(--sketch-dark);
border-radius: 2px;
}
/* 交叉阴影效果 */
.sketch-shadow {
box-shadow: 3px 3px 0 rgba(44, 44, 44, 0.15);
}
/* 手绘不规则效果 */
.sketch-wobbly {
transform: rotate(-0.5deg);
}
.sketch-wobbly:nth-child(even) {
transform: rotate(0.5deg);
}
/* 手写字体 */
.sketch-text {
font-family: 'Georgia', 'Times New Roman', serif;
font-style: italic;
}
/* 铅笔下划线 */
.sketch-underline {
text-decoration: underline;
text-decoration-style: wavy;
text-decoration-color: var(--sketch-dark);
text-underline-offset: 4px;
}
/* 涂鸦圆圈标记 */
.sketch-circle {
border: 2px solid var(--sketch-dark);
border-radius: 50%;
transform: rotate(-2deg);
}
@keyframes sketch-style-fade-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes sketch-style-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.sketch-style-card {
position: relative;
overflow: hidden;
}
.sketch-style-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(44, 44, 44, 0.05), transparent);
pointer-events: none;
}
.sketch-style-card:hover::before {
opacity: 1;
}
.sketch-style-gradient {
background: linear-gradient(135deg, #2c2c2c, #e74c3c);
}
.sketch-style-gradient-text {
background: linear-gradient(135deg, #2c2c2c, #e74c3c);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.sketch-style-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(44, 44, 44, 0.08);
}
.sketch-style-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.sketch-style-animate-in {
animation: sketch-style-fade-in 0.5s ease-out both;
}IDE Integration
Download configuration files for AI coding assistants to generate code in this style.
Style Pack
Get complete machine-readable style assets including design tokens, Tailwind presets, CSS variables, and shadcn/ui themes.
Metadata
Style metadata including version information
Design Tokens
Compatible with Figma / Style Dictionary / Tokens Studio
Tailwind Preset
Tailwind CSS theme preset, import directly in config
Global CSS
CSS variables and base styles
shadcn Theme
shadcn/ui theme configuration
CSS Variables
Pure CSS variables, works with any project
SKILL.md
Loadable skill pack for Cursor / Claude Code / VS Code
Sketch Style is a design style simulating hand-drawn pencil sketches, injecting warm handcrafted texture into digital interfaces through irregular lines, paper textures, and handwritten-feel elements.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: D - Poor
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Text on background | /#2c2c2c / #f5f0e8 | 12.31:1 | ||
| Secondary text on background | /#5a5a5a / #f5f0e8 | 6.08:1 | ||
| Muted text on background | /#8a8a8a / #f5f0e8 | 3.04:1 | ||
| Text on secondary background | /#2c2c2c / #e8e2d8 | 10.84:1 | ||
| Secondary text on secondary | /#5a5a5a / #e8e2d8 | 5.35:1 | ||
| Button primary | /#f5f0e8 / #2c2c2c | 12.31:1 | ||
| Text on accent 1 | /#2c2c2c / #2c2c2c | 1:1 | ||
| Alt text on accent 1 | /#5a5a5a / #2c2c2c | 2.02:1 | ||
| Text on accent 2 | /#2c2c2c / #6b6b6b | 2.62:1 | ||
| Alt text on accent 2 | /#5a5a5a / #6b6b6b | 1.29:1 | ||
| Text on accent 3 | /#2c2c2c / #a0a0a0 | 5.34:1 | ||
| Alt text on accent 3 | /#5a5a5a / #a0a0a0 | 2.64:1 |
Readability
Score
85/100
Font Size
text-sm md:text-base
Font Weight
font-sans font-semibold tracking-normal
Line Height
default
Scoring is based on WCAG 2.1 standards. AA requires 4.5:1 contrast for normal text, 3:1 for large text; AAA requires 7:1 for normal text, 4.5:1 for large text.