Craft UI演示

Craft UI Hand-drawn Design System / 手绘风格组件库完整展示

Typography 排版

Heading 1 一级标题

Heading 2 二级标题

Heading 3 三级标题

Heading 4 四级标题

Heading 5 五级标题

This is body text for a blog article. Good typography is the foundation of readability. 这是博客文章的正文文本。好的排版是可读性的基础,让读者能够专注于内容本身。

Secondary text with lighter weight. 次要文本使用较浅的颜色。

Small / Caption text 小号说明文字 — used for dates, metadata, footnotes.

Notation 文本标注

Hand-drawn underline 手绘下划线
Circled 圈注
Highlight 高亮标记
Half-highlight 半高亮
Boxed 方框标注
Strikethrough 删除线
Bracket 括号强调
Wavy underline 波浪线

Blockquote 引用

"The best design is the one you don't notice."

"最好的设计是你注意不到的设计。"

— Dieter Rams

"简约不是少,而是没有多余。足够也不是多,而是刚好你需要。"

— 无名

Lists 列表

Unordered 无序列表

  • First item 第一项
  • Second item 第二项
    • Nested child 嵌套子项
    • Another child 另一个子项
  • Third item 第三项

Ordered 有序列表

  1. Setup project 初始化项目
  2. Install dependencies 安装依赖
  3. Write components 编写组件
  4. Deploy 部署上线

Checklist 任务列表

  • Design system 设计系统
  • Typography 排版体系
  • Components 组件开发
  • Dark mode 暗色模式
  • Accessibility 无障碍适配

Code 代码

Inline code: use const greeting = "Hello" to declare a variable. 行内代码:使用 npm install 安装依赖。

JavaScript
main.js
function greet(name) {
  const message = `Hello, ${name}!`;
  console.log(message);
  return message;
}

// 调用示例 Usage example
greet('World');
CSS
style.css
.hand-drawn-card {
  background: #fffdf7;
  border: 2px solid #3d3229;
  filter: url(#hand-drawn);
  border-radius: 3px;
  transition: transform 0.3s ease;
}

.hand-drawn-card:hover {
  transform: translateY(-4px) rotate(0.5deg);
}
Diff
config.js
 const config = {
-  theme: 'default',
+  theme: 'hand-drawn',
   lang: 'zh-CN',
-  wobble: 0,
+  wobble: 0.5,
 };

Callouts 提示框

𝓘
Info 提示

This is an informational callout for helpful tips. 这是一条信息提示,用于展示有用的小贴士。

!
Warning 警告

Be careful with this operation. 请注意,此操作需要谨慎。

Success 成功

Operation completed successfully! 操作已成功完成!

Error 错误

Something went wrong, please try again. 出了点问题,请重试。

Note 备注

A side note for additional context. 一条补充说明,提供更多背景信息。

Tags & Badges 标签

Basic Tags 基础标签

Default 默认 Primary 主要 Secondary 次要 Accent 强调 Warning 警告 Danger 危险 Success 成功

Outline Tags 描边标签

Outline Primary Accent Warning

Pill Badges 胶囊徽章

v2.0 New 新 Beta WIP Hot 热门

Category Tags 分类标签

# JavaScript # CSS # 设计 # 前端 # React # 教程

Table 表格

Component 组件 Status 状态 Description 描述
Typography 排版 Done 完成 Headings, body, links 标题、正文、链接
Code Block 代码块 Done 完成 Syntax highlight, inline code 语法高亮、行内代码
Callout 提示 Done 完成 Info, warning, error, success 信息、警告、错误、成功
Dark Mode 暗色 WIP Theme toggle 主题切换

Modal Title 弹窗标题

This is a hand-drawn style modal dialog. You can put any content here.

这是一个手绘风格的弹窗对话框,你可以在这里放置任何内容。

Toast 轻提示

Tooltip 提示气泡

Tooltip on top 顶部提示 Bottom tooltip 底部提示 Hover this text 悬停此文本 A helpful tooltip 有用的提示信息

Accordion 折叠面板

Craft UI is a hand-drawn style design system for blogs, built with pure CSS, JS, and SVG. No frameworks needed.

Craft UI 是一套手绘风格的博客设计系统,使用纯 CSS、JS 和 SVG 构建,无需任何框架。

We use SVG filters (feTurbulence + feDisplacementMap) to create the wobble effect on borders and shapes.

我们使用 SVG 滤镜来为边框和图形创建抖动效果。

Yes! Use the theme panel on the right to change primary colors, background, wobble intensity, and more.

当然可以!使用右侧的主题面板即可更换主色调、背景色、抖动强度等。

Progress 进度条

Design 设计80%
Development 开发55%
Testing 测试30%

Keyboard 键盘快捷键

Press Ctrl + C to copy 复制

Press Ctrl + V to paste 粘贴

Press Ctrl + Z to undo 撤销

Press ⌘ Cmd + Shift + P to open command palette 打开命令面板

Press Esc to close 关闭

Pagination 分页

Avatar & Image 头像与图片

A
B
C
D
Avatar Avatar Avatar
Demo image
Image caption 图片说明 — A hand-drawn style image
Placeholder 占位图 — When no image is available

Social Icons 社交图标

Dividers 分割线

Straight 直线

Wave 波浪

Dashed 虚线

Dots 点线

Stars 星星

Ornamental 装饰线

Buttons 按钮

Cards 卡片

Sketchy Borders 手绘边框

Every border wobbles slightly, mimicking real hand-drawn strokes. 每条边框都会轻微抖动,模拟真实的手绘笔触。

SVG Filter

SVG Filters 滤镜效果

Pencil textures and ink bleeding effects via SVG filter chains. 通过SVG滤镜链实现铅笔纹理和墨水晕染效果。

CSS Art

Animations 动画

Float, swing, twinkle and squiggly motion effects for lively pages. 浮动、摇摆、闪烁和抖动动效,让页面充满活力。

Motion UX

Form Elements 表单

Option A 选项A
Option B 选项B
Option C 选项C

Animations 动画

Float 浮动
Swing 摇摆
Spin 旋转
Twinkle 闪烁
Pulse 脉冲
Squiggly 抖动

Confetti 彩纸特效