本页出处
设计风格资料库
内容来自 luckymaomi 的 UI 风格库(复刻版),以 MIT 许可 提供。本站镜像收录,仅作学习参考;这一页的原始地址是 原站页面。
← 回到导览访问原站仓库
返回配方目录
Comic Style

漫画风格组件配方

font-black uppercase tracking-wide border-4 border-[#1a1a1a] rounded-lg transition-all duration-150 bg-[#ef4444] text-white shadow-[4px_4px_0px_0px_rgba(26,26,26,1)] md:shadow-[6px_6px_0px_0px_rgba(26,26,26,1)] hover:shadow-[2px_2px_0px_0px_rgba(26,26,26,1)] hover:translate-x-[2px] hover:translate-y-[2px] active:translate-x-[4px] active:translate-y-[4px] active:shadow-none
button

按钮

Bold comic button with thick black outlines, bright colors and action effects

基础骨架
font-black uppercase tracking-wide border-4 border-[#1a1a1a] rounded-lg transition-all duration-150
变体
主要、次要、轮廓
状态
hover、active、disabled
card

卡片

Comic panel card with thick black borders, offset shadow and bright background

基础骨架
bg-[#fffef0] border-4 border-[#1a1a1a] rounded-lg transition-all duration-150
变体
默认、动作、高亮
状态
hover
input

输入框

Comic-style input with thick borders and bold typography

基础骨架
w-full border-4 border-[#1a1a1a] rounded-lg bg-[#fffef0] font-bold text-[#1a1a1a] placeholder:text-[#4a4a4a] focus:outline-none transition-all duration-150
变体
默认、彩色
状态
focus、disabled
speechBubble

对话气泡

Comic speech bubble container with thick borders and tail

基础骨架
bg-[#fffef0] border-4 border-[#1a1a1a] rounded-2xl p-4 md:p-6 relative font-bold transition-all duration-150
变体
对话、思考、喊叫
状态
hover
actionPanel

动作面板

Panel with comic action lines background effect

基础骨架
bg-[#fffef0] border-4 border-[#1a1a1a] rounded-lg relative overflow-hidden bg-[repeating-conic-gradient(#fffef0_0deg,#fffef0_5deg,rgba(26,26,26,0.03)_5deg,rgba(26,26,26,0.03)_10deg)] transition-all duration-150
变体
默认、强烈、柔和
状态
hover
halftoneOverlay

半调叠加

Container with halftone dot pattern overlay effect

基础骨架
bg-[#fffef0] border-4 border-[#1a1a1a] rounded-lg p-4 md:p-6 relative overflow-hidden bg-[radial-gradient(circle_1.5px,rgba(26,26,26,0.12)_0%,transparent_100%)] bg-[size:8px_8px] transition-all duration-150
变体
默认、密集、稀疏
状态
hover