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

包豪斯风格

Bauhaus

德国包豪斯学派的设计理念,强调功能主义、几何形式和原色运用,形式追随功能的现代主义经典。

包豪斯风格视觉预览
主色#000000
次色#ffffff
强调色 1#ff0000
强调色 2#ffcc00
强调色 3#0000ff
强调色 4#6c3b00

AI 实现规则

你是一个 Bauhaus 设计风格的前端开发专家。生成的所有代码必须严格遵守以下约束:

## 绝对禁止

- 使用复杂的渐变效果
- 使用装饰性元素
- 使用衬线字体
- 使用非原色的复杂配色
- 使用柔和缓慢的 ease-in-out 或 duration-500 以上
- 使用圆角(rounded-lg, rounded-xl),仅 rounded-full 用于纯圆形

## 必须遵守

- 原色配色 bg-red-600, bg-yellow-400, bg-blue-600
- 黑白基础 bg-black, bg-white, text-black
- 粗边框 border-4 border-black
- 无衬线字体 font-bold, font-black
- 大写字母 uppercase
- 几何形状装饰

## Animation & Interaction Rules

- Structural Shifts: 动画展现"结构",使用硬朗位移或大面积纯色相互覆盖。
- Mechanical Precision: 过渡时间短促有力 duration-150 或 duration-200,使用 ease-out。
- Primary Color Swaps: 交互时在红(#ff0000)、黄(#ffcc00)、蓝(#0000ff)、黑、白之间进行高对比度色彩翻转。
- Geometric Reveals: 利用伪元素(如 absolute inset-0 bg-yellow-400),在悬停时像滑轨一样从 -translate-x-full 滑入 translate-x-0,覆盖原色块。
- Geometric Animation: 几何装饰元素在悬停时 scale-125 或 rotate-45,体现机械运转感。

## 配色

仅使用:
- 红色: #ff0000, bg-red-600
- 黄色: #ffcc00, bg-yellow-400
- 蓝色: #0000ff, bg-blue-600
- 黑色: #000000, bg-black
- 白色: #ffffff, bg-white

## 几何元素

- 圆形 rounded-full
- 方形(无圆角)
- 三角形(用 border 实现)

组件预览与实现

font-sans font-bold uppercase tracking-widest border-2 border-black rounded-none transition-opacity duration-200 bg-[#dd0000] text-white hover:opacity-80 active:opacity-70
button

按钮

包豪斯按钮,色块滑轨机制覆盖

<button className="
  group relative px-8 py-4
  bg-red-600 text-white
  font-bold uppercase tracking-wider
  border-4 border-black
  overflow-hidden
  hover:text-black
  active:translate-y-1
  transition-all duration-150
">
  <span className="relative z-10">Action</span>
  <div className="absolute inset-0 bg-yellow-400 -translate-x-full group-hover:translate-x-0 transition-transform duration-200 ease-out" />
</button>
card

卡片

包豪斯卡片,几何装饰元素可动

<div className="
  group relative p-8
  bg-white
  border-4 border-black
  hover:-translate-y-2
  hover:shadow-[8px_8px_0px_rgba(0,0,255,1)]
  transition-all duration-200 ease-out
">
  <div className="absolute -top-6 -left-6 w-12 h-12 bg-yellow-400 rounded-full border-4 border-black group-hover:scale-125 transition-transform duration-200" />
  <div className="absolute -bottom-4 -right-4 w-8 h-8 bg-blue-600 border-4 border-black group-hover:rotate-45 transition-transform duration-200" />
  <h3 className="text-2xl font-black text-black uppercase tracking-wider mb-4 group-hover:text-red-600 transition-colors duration-150">
    Form
  </h3>
  <p className="text-black font-bold">
    Follows function
  </p>
</div>
input

输入框

包豪斯风格输入框,聚焦时原色切换

<input
  type="text"
  placeholder="Type here"
  className="
    w-full px-6 py-4
    bg-white
    border-4 border-black
    text-black font-medium placeholder-gray-400
    focus:border-red-600
    focus:outline-none
    transition-colors duration-150
  "
/>
hero

Hero 区块

包豪斯 Hero,几何形状组合

<section className="
  min-h-screen
  flex items-center
  bg-white
  relative overflow-hidden
">
  <div className="absolute top-20 right-20 w-48 h-48 bg-yellow-400 rounded-full hover:scale-110 transition-transform duration-200" />
  <div className="absolute bottom-20 right-40 w-32 h-32 bg-blue-600 hover:rotate-12 transition-transform duration-200" />
  <div className="absolute top-40 right-60 w-0 h-0 border-[60px] border-transparent border-[100px] border-red-600 border-[60px] border-transparent" />

  <div className="relative z-10 px-12 max-w-2xl">
    <h1 className="text-7xl md:text-9xl font-black text-black uppercase leading-none mb-8">
      BAU
      <br />
      HAUS
    </h1>
    <p className="text-xl text-gray-700 mb-8 max-w-md">
      Form follows function. Less is more.
    </p>
    <button className="
      group relative px-10 py-4
      bg-black text-white
      font-bold uppercase tracking-wider
      overflow-hidden
      hover:text-black
      transition-colors duration-150
    ">
      <span className="relative z-10">Explore</span>
      <div className="absolute inset-0 bg-red-600 -translate-x-full group-hover:translate-x-0 transition-transform duration-200 ease-out" />
    </button>
  </div>
</section>

交互展示

适用范围与设计理念

应用场景

creativeeditorialmarketing

视觉关键词

high-contrast包豪斯功能主义几何原色现代主义极简moderncontemporarysleek现代

Bauhaus(包豪斯)是1919年在德国创立的设计学派,其核心理念"形式追随功能"深刻影响了现代设计。

核心理念:

- 功能主义:设计服务于功能,去除多余装饰

- 几何形式:圆形、方形、三角形的纯粹运用

- 原色运用:红、黄、蓝三原色 + 黑白

- 统一性:艺术与工艺的结合

- 机械精密:交互如精密仪器运转,短促有力

设计原则:

- 视觉一致性:所有组件必须遵循统一的视觉语言,从色彩到字体到间距保持谐调

- 层次分明:通过颜色深浅、字号大小、留白空间建立清晰的信息层级

- 交互反馈:每个可交互元素都必须有明确的 hover、active、focus 状态反馈

- 响应式适配:设计必须在移动端、平板、桌面端上保持一致的体验

- 无障碍性:确保色彩对比度符合 WCAG 2.1 AA 标准,所有交互元素可键盘访问

应该这样做

  • 使用原色(红、黄、蓝)+ 黑白
  • 运用基础几何形状(圆、方、三角)
  • 保持简洁的功能性设计
  • 使用无衬线字体
  • 强调网格和对齐
  • 去除不必要的装饰
  • 使用极短的 duration-150 或 duration-200
  • 色彩交互为原色之间的硬切换,不用透明度渐变
  • 利用伪元素做几何色块的滑入/覆盖动画
  • 几何装饰元素在悬停时 scale 或 rotate

避免这样做

  • 禁止使用复杂的渐变
  • 禁止使用装饰性元素
  • 禁止使用衬线字体
  • 禁止使用非原色的复杂配色
  • 禁止使用柔和缓慢的 duration-500 以上过渡
  • 禁止使用 ease-in-out(使用 ease-out)
  • 禁止使用圆角(rounded-lg 等),仅允许 rounded-full 用于圆形

全局 CSS

/* Bauhaus 全局样式 */

:root {
  --bauhaus-red: #ff0000;
  --bauhaus-yellow: #ffcc00;
  --bauhaus-blue: #0000ff;
  --bauhaus-black: #000000;
  --bauhaus-white: #ffffff;
}

/* 原色类 */
.bauhaus-red { background-color: var(--bauhaus-red); }
.bauhaus-yellow { background-color: var(--bauhaus-yellow); }
.bauhaus-blue { background-color: var(--bauhaus-blue); }

/* 几何形状 */
.bauhaus-circle {
  border-radius: 50%;
}

.bauhaus-triangle {
  width: 0;
  height: 0;
  border: 50px solid transparent;
  border: 50px solid transparent;
  border: 86px solid var(--bauhaus-red);
}

/* 色块滑轨覆盖 */
.bauhaus-slide-reveal {
  position: relative;
  overflow: hidden;
}

.bauhaus-slide-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bauhaus-yellow);
  transform: translateX(-100%);
  transition: transform 0.2s ease-out;
}

.bauhaus-slide-reveal:hover::after {
  transform: translateX(0);
}

/* 网格系统 */
.bauhaus-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
@keyframes bauhaus-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bauhaus-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.bauhaus-gradient {
  background: linear-gradient(135deg, #000000, #ff0000);
}

.bauhaus-gradient-text {
  background: linear-gradient(135deg, #000000, #ff0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bauhaus-frosted {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(0, 0, 0, 0.08);
}

.bauhaus-accent-corner {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}

.bauhaus-animate-in {
  animation: bauhaus-fade-in 0.5s ease-out both;
}

布局、色板与 Tokens

主色#000000
次色#ffffff
强调色 1#ff0000
强调色 2#ffcc00
强调色 3#0000ff
强调色 4#6c3b00
{
  "border": {
    "width": "border-2",
    "color": "border-black",
    "radius": "rounded-none",
    "style": "border-solid"
  },
  "shadow": {
    "sm": "shadow-none",
    "md": "shadow-none",
    "lg": "shadow-none",
    "none": "shadow-none",
    "hover": "hover:shadow-none",
    "focus": "focus:shadow-none",
    "colored": {}
  },
  "interaction": {
    "transition": "transition-opacity duration-200",
    "active": "active:opacity-70",
    "hoverOpacity": "hover:opacity-80"
  },
  "typography": {
    "heading": "font-sans font-bold uppercase tracking-widest",
    "body": "font-sans",
    "mono": "font-mono",
    "sizes": {
      "hero": "text-5xl md:text-7xl lg:text-9xl",
      "h1": "text-4xl md:text-6xl",
      "h2": "text-2xl md:text-4xl",
      "h3": "text-xl md:text-2xl",
      "body": "text-sm md:text-base",
      "small": "text-xs md:text-sm"
    }
  },
  "spacing": {
    "section": "py-12 md:py-24 lg:py-32",
    "container": "px-4 md:px-8 lg:px-16",
    "card": "p-6 md:p-8",
    "gap": {
      "sm": "gap-2 md:gap-4",
      "md": "gap-4 md:gap-8",
      "lg": "gap-8 md:gap-12"
    }
  },
  "colors": {
    "background": {
      "primary": "bg-white",
      "secondary": "bg-black",
      "accent": [
        "bg-[#dd0000]",
        "bg-[#ffd700]",
        "bg-[#0057b8]"
      ]
    },
    "text": {
      "primary": "text-black",
      "secondary": "text-white",
      "muted": "text-gray-600"
    },
    "button": {
      "primary": "bg-[#dd0000] text-white",
      "secondary": "bg-black text-white",
      "danger": "bg-[#dd0000] text-white"
    }
  },
  "forbidden": {
    "classes": [
      "font-serif",
      "rounded-lg",
      "rounded-xl",
      "rounded-2xl",
      "rounded-3xl",
      "rounded-full",
      "shadow-sm",
      "shadow",
      "shadow-md",
      "shadow-lg",
      "shadow-xl",
      "shadow-2xl",
      "bg-gradient-to-r",
      "bg-gradient-to-l",
      "bg-gradient-to-b",
      "bg-gradient-to-t",
      "border-dashed",
      "border-dotted",
      "italic"
    ],
    "patterns": [
      "^font-serif",
      "^rounded-(?!none)",
      "^shadow-(?!none)",
      "^bg-gradient-",
      "^border-(?:dashed|dotted)"
    ],
    "reasons": {
      "font-serif": "Bauhaus uses geometric sans-serif typography only (font-sans)",
      "rounded-xl": "Bauhaus uses strict geometric forms with sharp angles (rounded-none)",
      "shadow-lg": "Bauhaus rejects decorative shadows; form follows function",
      "bg-gradient-to-r": "Bauhaus uses flat solid primary colors (red, yellow, blue), no gradients"
    }
  },
  "required": {
    "button": [
      "rounded-none",
      "border-2 border-black",
      "font-sans font-bold uppercase",
      "transition-opacity duration-200"
    ],
    "card": [
      "rounded-none",
      "border-2 border-black",
      "bg-white"
    ],
    "input": [
      "rounded-none",
      "border-2 border-black",
      "font-sans",
      "focus:outline-none"
    ]
  }
}

示例提示词

设计学院官网

现代主义设计学院网站

用 Bauhaus 风格创建一个设计学院官网,要求:
1. 配色:仅使用红黄蓝 + 黑白
2. 几何装饰:圆形、方形、三角形,悬停时 scale/rotate
3. 按钮使用色块滑轨覆盖机制(伪元素 translate 动画)
4. 字体:粗体无衬线 + 大写
5. 布局:网格对齐
6. 所有交互 duration-150 到 200,ease-out
7. 去除所有装饰性元素

SaaS 着陆页

生成 包豪斯风格风格的 SaaS 产品着陆页

Create a SaaS landing page using Bauhaus style with hero section, feature grid, testimonials, pricing table, and footer.

作品集展示

生成 包豪斯风格风格的作品集页面

Create a portfolio showcase page using Bauhaus style with project grid, about section, contact form, and consistent visual language.