Best For
手绘 / 铅笔 / 素描
Sketch Style
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
手绘 / 铅笔 / 素描
Primary Move
Use paper-colored background bg-[#f5f0e8]
Watch Out
Do NOT use perfect straight lines and rounded corners
Showcase Entry
Live preview of the showcase page. Click to explore the full experience.
Color Palette
Primary
#2c2c2c
Secondary
#f5f0e8
Accent 1
#e74c3c
Accent 2
#3498db
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.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
/* 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.