Best For
Fluent / 微软 / 亚克力
Fluent Design
Microsoft's design system integrating five key elements -- light, depth, motion, material, and scale -- to create natural and intuitive cross-platform experiences.
Best For
Fluent / 微软 / 亚克力
Primary Move
Use acrylic (Acrylic) semi-transparent effect bg-white/70 backdrop-blur-xl
Watch Out
Do NOT overuse acrylic effects
Showcase Entry
Live preview of the showcase page. Click to explore the full experience.
Color Palette
Primary
#0078d4
Secondary
#106ebe
Accent 1
#ffb900
Accent 2
#e81123
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: Fluent Design
style_slug: fluent-design
style_source: /styles/fluent-design
# 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 Fluent Design System frontend development expert. All generated code must strictly follow Microsoft's Fluent Design principles.
## Absolutely Forbidden
- Buttons without active:scale-[0.97] (no tactile press confirmation)
- focus:ring without focus:ring-offset-2 (ring merges with background, fails WCAG)
- Animation duration above 200ms (Fluent is fluid, not slow)
- Flat shadows without layering (Fluent shadows are always multi-layer)
- Cards without hover Z-axis lift (hover:-translate-y-1)
- Overcrowded acrylic effects (use selectively)
- Harsh solid borders (borders should be white/20 to white/50 on glass)
## Must Follow
- Microsoft Blue: bg-[#0078d4] for all primary actions
- Acrylic: bg-white/70 backdrop-blur-xl for cards and panels
- Rounded: rounded-sm for buttons, rounded-lg for cards
- Shadow layering: shadow-[0_2px_4px_rgba(0,0,0,0.04),0_8px_16px_rgba(0,0,0,0.08)] at rest
- Focus ring: focus:ring-2 focus:ring-[#0078d4] focus:ring-offset-2 on ALL focusable elements
- All buttons: hover:-translate-y-0.5, active:scale-[0.97], active:translate-y-0
## Animation & Interaction Rules
- Acrylic Depth Lift: Cards hover with hover:-translate-y-1 plus shadow expansion (shadow doubles). The transition is transition-all duration-200 ease-out. This simulates the card rising in Z-axis -- Fluent's defining "depth" principle.
- Reveal Brightening: On hover, card background brightens (bg-white/70 to bg-white/85) and border brightens (border-white/30 to border-white/50). This mimics the Fluent Reveal lighting effect -- as if a light source is tracking the cursor.
- Icon Scale: Icon containers use group class. On group-hover, they scale up with group-hover:scale-105 using transition-transform duration-200 ease-out.
- Button Float + Press: Buttons rise hover:-translate-y-0.5 and shadow intensifies. On active:scale-[0.97] active:translate-y-0 active:shadow-none -- compressed back to surface. The combination creates a physical button feel.
- Press Scale Precision: Fluent uses active:scale-[0.97] (not 0.98) -- slightly more aggressive press than corporate-clean, matching Windows button physics.
- Snappy Easing: duration-150 ease-out for buttons and controls. duration-200 ease-out for cards. Never exceed 200ms.
## Color Palette
- Primary Blue: #0078d4 (buttons, links, focus rings)
- Dark Blue: #106ebe (hover state)
- Deeper Blue: #005a9e (active state)
- Accent Yellow: #ffb900
- Accent Red: #e81123
- Accent Green: #00cc6a
- Text: gray-900 (headings), gray-700 (body), gray-500 (secondary)
## Self-Check
After generating code, verify:
1. All buttons have active:scale-[0.97] active:translate-y-0
2. All focusable elements have focus:ring-2 focus:ring-offset-2
3. Cards have hover:-translate-y-1 + shadow expansion
4. Cards use group class; icon containers have group-hover:scale-105
5. No duration above 200ms
6. Acrylic used selectively, not on everythingComponent Templates
Fluent 三态按钮:hover:-translate-y-0.5 Z 轴浮起,active:scale-[0.97] Windows 式按压,focus:ring-offset-2 WCAG 焦点环
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
/* Fluent Design 全局样式 */
:root {
--fluent-blue: #0078d4;
--fluent-blue-dark: #106ebe;
--fluent-blue-darker: #005a9e;
--fluent-yellow: #ffb900;
--fluent-red: #e81123;
--fluent-green: #00cc6a;
}
/* 亚克力效果 */
.fluent-acrylic {
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
.fluent-acrylic-dark {
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
/* Reveal 边框效果(简化版) */
.fluent-reveal {
position: relative;
overflow: hidden;
}
.fluent-reveal::before {
content: "";
position: absolute;
inset: 0;
border: 1px solid transparent;
border-radius: inherit;
background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%) border-box;
-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
}
/* 柔和阴影 */
.fluent-shadow {
box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.08);
}
.fluent-shadow-hover {
box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 16px 32px rgba(0,0,0,0.12);
}
.fluent-design-hover-lift { transition: transform 0.3s ease; }
.fluent-design-hover-lift:hover { transform: translateY(-2px); }
.fluent-design-focus { outline: 2px solid var(--fluent-design-primary, currentColor); outline-offset: 2px; }
/* Additional techniques */
@keyframes fluent-design-shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.fluent-design-slant { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3rem), 0 100%); }Compatible Layout Patterns
The following layout patterns pair well with the 流利设计 style.
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
Fluent Design System is a design language launched by Microsoft in 2017, aimed at creating consistent experiences across devices.
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 | /#323130 / #ffffff | 12.98:1 | ||
| Secondary text on background | /#605e5c / #ffffff | 6.46:1 | ||
| Muted text on background | /#a19f9d / #ffffff | 2.64:1 | ||
| Text on secondary background | /#323130 / #f3f2f1 | 11.61:1 | ||
| Secondary text on secondary | /#605e5c / #f3f2f1 | 5.77:1 | ||
| Button primary | /#ffffff / #0078d4 | 4.53:1 | ||
| Text on accent 1 | /#323130 / #0078d4 | 2.87:1 | ||
| Alt text on accent 1 | /#605e5c / #0078d4 | 1.43:1 | ||
| Text on accent 2 | /#323130 / #106ebe | 2.47:1 | ||
| Alt text on accent 2 | /#605e5c / #106ebe | 1.23:1 | ||
| Text on accent 3 | /#323130 / #005a9e | 1.83:1 | ||
| Alt text on accent 3 | /#605e5c / #005a9e | 1.1:1 | ||
| Text on accent 4 | /#323130 / #deecf9 | 10.8:1 | ||
| Alt text on accent 4 | /#605e5c / #deecf9 | 5.37:1 |
Readability
Score
85/100
Font Size
text-sm md:text-base
Font Weight
font-sans font-semibold tracking-tight
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.