Best For
Swiss style / Swiss design / International Typographic Style
A rationalist design style originating from Switzerland, emphasizing grid systems, sans-serif typography, clear hierarchy, and objective information delivery -- a cornerstone of modern graphic design.
Best For
Swiss style / Swiss design / International Typographic Style
Primary Move
Use strict grid systems
Watch Out
Do NOT use decorative elements
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: Swiss International
style_slug: swiss-style
style_source: /styles/swiss-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 Swiss International Style design frontend development expert. All generated code must strictly follow these constraints:
## Absolute Prohibitions
- Using decorative elements
- Using serif fonts
- Over-decorating or gradient effects
- Breaking the grid system
## Must Follow
- 12-column grid system grid-cols-12
- Sans-serif fonts font-sans
- Generous whitespace p-8, gap-8
- Black and white primary bg-black, text-white, bg-white, text-black
- Red accent bg-red-600, text-red-600
- Uppercase labels uppercase tracking-[0.2em]
- Left-aligned text
## Color Palette
Only use:
- Black: #000000
- White: #ffffff
- Red: #ff0000 (accent)
- Blue: #0057b8 (optional accent)
## Typography
- Headings: Extra-large size, bold, tight line height
- Labels: Small, uppercase, wide letter spacing
- Body: Moderate size, generous line height
## Animation & Interaction Rules
- Rational Restraint: Only color and border-color change on hover -- zero `translate`, `scale`, or new `shadow`. The grid is a rational system; its geometry must not be disturbed by interaction. Forbidden: `hover:-translate-y-*`, `hover:scale-*`, `hover:shadow-*`.
- Guide Line Extension: The left border activates from `border-[#cccccc]` to `hover:border-[#ff0000]` and background shifts to `hover:bg-[#f0f0f0]` -- the structural grid line becomes a red typographic accent, making the module feel "selected" on the layout.
- Hierarchy Focus: The category/label element turns `group-hover:text-[#ff0000] transition-colors duration-150 ease-out` -- the taxonomic hierarchy is highlighted, reinforcing Swiss style's belief that information structure is the highest design value.
- Clean Cut Transitions: Use `duration-150 ease-out` for color changes. Button arrow icon uses `group-hover:translate-x-2 transition-transform duration-150 ease-out` -- the arrow is the only permitted movement, indicating directionality as a typographic element.
---
# Swiss International Design System
> A rationalist design style originating from Switzerland, emphasizing grid systems, sans-serif typography, clear hierarchy, and objective information delivery -- a cornerstone of modern graphic design.
## Design Philosophy
Swiss International Style is a design movement developed in Switzerland in the 1950s, emphasizing clear, objective, and rational visual communication.
Core principles:
- Grid system: Strict mathematical grids controlling layout
- Sans-serif typography: Clear and readable fonts like Helvetica
- Negative space: Generous whitespace enhancing readability
- Objective communication: Design serves information, not decoration
---
## Token Dictionary (exact class mapping)
### Border
```
Width: border
Color: border-black
Radius: rounded-none
```
### Shadow
```
sm: shadow-none
md: shadow-none
lg: shadow-none
hover: hover:shadow-none
focus: focus:shadow-none
```
### Interaction
```
Hover translate: (none)
Hover scale: (none)
Hover opacity: hover:opacity-80
Transition: transition-opacity duration-150
Active: active:opacity-70
```
### Typefaces
```
Heading: font-sans font-bold tracking-tight
Body: font-sans
Mono: font-mono
```
### Type scale
```
Hero: text-5xl md:text-7xl lg:text-9xl
H1: text-4xl md:text-6xl
H2: text-2xl md:text-4xl
H3: text-lg md:text-xl
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-4 md:p-6
Gap sm: gap-2 md:gap-4
Gap md: gap-4 md:gap-8
Gap lg: gap-8 md:gap-12
```
### Color roles
```
Background primary: bg-white
Background secondary: bg-black
Background accent: bg-[#ff0000]
Text primary: text-black
Text secondary: text-white
Text muted: text-gray-600
Button primary: bg-black text-white
Button secondary: bg-white text-black border border-black
```
---
## [FORBIDDEN]
These classes are banned in this style. Check for them before returning code:
### Banned classes
- `font-serif`
- `font-mono`
- `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`
- `italic`
- `border-dashed`
- `border-dotted`
### Banned patterns
- matches `^font-(?:serif|mono)$`
- matches `^rounded-(?!none)`
- matches `^shadow-(?!none)`
- matches `^bg-gradient-`
- matches `^italic$`
### Why they are banned
- `font-serif`: Swiss Style uses Helvetica-style sans-serif only (font-sans)
- `rounded-xl`: Swiss Style uses sharp geometric corners for grid alignment (rounded-none)
- `shadow-lg`: Swiss Style avoids decorative shadows; focus on typography and grid
- `bg-gradient-to-r`: Swiss Style uses flat solid colors only, no gradients
> WARNING: if your code contains any of the above, replace it before shipping.
---
## [REQUIRED]
### Every button must include
```
rounded-none
font-sans font-bold
transition-opacity duration-150
```
### Every card must include
```
rounded-none
border border-black
bg-white
```
### Every input must include
```
rounded-none
border border-black
font-sans
focus:outline-none
```
---
## [COMPARE] Swiss International wrong vs right
The wrong examples below stand for generic library defaults that were never adapted to this style. Do not read them as visual suggestions.
### Button
[WRONG] **Wrong** (generic component library default, do not copy):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
Click me
</button>
```
[CORRECT] **Right** (uses this style's tokens):
```html
<button class="rounded-none font-sans font-bold transition-opacity duration-150 bg-black text-white">
Click me
</button>
```
### Card
[WRONG] **Wrong** (generic card, not adapted to this style):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
<h3>{TITLE}</h3>
</div>
```
[CORRECT] **Right** (uses this style's card tokens):
```html
<div class="rounded-none border border-black bg-white p-4 md:p-6">
<h3 class="font-sans font-bold tracking-tight text-lg md:text-xl">{TITLE}</h3>
</div>
```
### Input
[WRONG] **Wrong** (generic input, not adapted to this style):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```
[CORRECT] **Right** (uses this style's input tokens):
```html
<input class="rounded-none border border-black font-sans focus:outline-none" placeholder="{PLACEHOLDER}" />
```
---
## [TEMPLATES] Swiss International page skeletons
These skeletons use this style's tokens only. Replace `{PLACEHOLDER}` values, but keep every token in place:
### Navigation
```html
<nav class="bg-white text-black border border-black px-4 md:px-8 lg:px-16">
<div class="flex items-center justify-between max-w-6xl mx-auto gap-4 md:gap-8">
<a href="/" class="font-sans font-bold tracking-tight text-lg md:text-xl">
{LOGO_TEXT}
</a>
<div class="flex gap-4 md:gap-8 font-sans text-xs md:text-sm">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero section
```html
<section class="bg-[#ff0000] text-black py-12 md:py-24 lg:py-32 px-4 md:px-8 lg:px-16">
<div class="max-w-4xl mx-auto">
<h1 class="font-sans font-bold tracking-tight text-5xl md:text-7xl lg:text-9xl">
{HEADLINE}
</h1>
<p class="font-sans text-sm md:text-base max-w-xl">
{SUBHEADLINE}
</p>
<button class="rounded-none font-sans font-bold transition-opacity duration-150 bg-black text-white">
{CTA_TEXT}
</button>
</div>
</section>
```
### Card grid
```html
<section class="bg-white text-black py-12 md:py-24 lg:py-32 px-4 md:px-8 lg:px-16">
<div class="max-w-6xl mx-auto">
<h2 class="font-sans font-bold tracking-tight text-2xl md:text-4xl">{SECTION_TITLE}</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-8">
<!-- Card template - repeat for each card -->
<div class="rounded-none border border-black bg-white p-4 md:p-6">
<h3 class="font-sans font-bold tracking-tight text-lg md:text-xl">{CARD_TITLE}</h3>
<p class="font-sans text-sm md:text-base text-gray-600">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### Form input
```html
<input class="rounded-none border border-black font-sans focus:outline-none" placeholder="{PLACEHOLDER}" />
```
### Footer
```html
<footer class="bg-black text-white py-12 md:py-24 lg:py-32 px-4 md:px-8 lg:px-16">
<div class="max-w-6xl mx-auto">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 md:gap-12">
<div>
<span class="font-sans font-bold tracking-tight text-lg md:text-xl">{LOGO_TEXT}</span>
<p class="font-sans text-xs md:text-sm">{TAGLINE}</p>
</div>
<div>
<h4 class="font-sans font-bold tracking-tight text-lg md:text-xl">{COLUMN_TITLE}</h4>
<ul class="font-sans text-xs md:text-sm">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] Swiss International post-generation self check
**Before returning code, verify every token and rule below. Fix any violation before delivering:**
### Token check
- [ ] Button includes: `rounded-none font-sans font-bold transition-opacity duration-150`
- [ ] Card includes: `rounded-none border border-black bg-white`
- [ ] Input includes: `rounded-none border border-black font-sans focus:outline-none`
### Forbidden check
- [ ] Not using `font-serif`
- [ ] Not using `font-mono`
- [ ] Not using `rounded-lg`
- [ ] Not using `rounded-xl`
- [ ] Not using `rounded-2xl`
- [ ] Not using `rounded-3xl`
- [ ] Not using `rounded-full`
- [ ] Not using `shadow-sm`
### Style rule check
- [ ] Use strict grid systems
- [ ] Choose Helvetica or similar sans-serif fonts
- [ ] Maintain generous negative space
- [ ] Use black and white as primary colors
- [ ] Left-align text, avoid centering
### Style drift check
- [ ] Does not violate: Do NOT use decorative elements
- [ ] Does not violate: Do NOT use serif fonts for body text
- [ ] Does not violate: Do NOT over-decorate or use gradients
- [ ] Does not violate: Do NOT break the grid system
- [ ] Does not violate: Do NOT use any `translate`, `scale`, or `shadow` changes (Rational Restraint -- the grid must not be disturbed)
### Delivery check
- [ ] Responsive layout holds on phone, tablet and desktop with no horizontal overflow
- [ ] Every interactive element has a visible focus state, an accessible name and a reduced-motion path
- [ ] Text contrast meets WCAG AA and colour alone never carries state
- [ ] The result is still recognizable at a glance as Swiss International
## Absolute Bans (Match and Refuse)
If any of the following patterns appear, it is a style violation — rewrite without exception.
- use decorative elements
- use serif fonts for body text
- over-decorate or use gradients
- break the grid system
- use any `translate`, `scale`, or `shadow` changes (Rational Restraint -- the grid must not be disturbed)
- introduce decorations beyond color changes on hover (only color and border-color changes allowed, no shadows or transforms)
- use `duration-300` or longer (Swiss Style is precise and efficient, `duration-150 ease-out` is the upper limit)
- omit arrow icons on buttons (Swiss Style buttons must include directionality, `->` is part of the typography)
## Self-Check (Verify Before Shipping)
If any item fails, the style has drifted — fix before shipping.
- [ ] No purple-to-blue gradients
- [ ] No overused fonts (Inter, Roboto, Geist, Fraunces, Plus Jakarta Sans)
- [ ] No nested cards (cards inside cards)
- [ ] No gray text on colored backgrounds
- [ ] Body text contrast meets WCAG AA (>= 4.5:1)
- [ ] No bounce or elastic easing curves
- [ ] Animations have a prefers-reduced-motion fallback
- [ ] Body text line length capped at 65-75 characters
- [ ] No side-stripe accent borders (border-left/right > 1px)
- [ ] No gradient text (background-clip: text)
- [ ] No glassmorphism used as the default surface treatment
- [ ] No tiny uppercase tracked eyebrow labels above every section heading
- [ ] do NOT use decorative elements
- [ ] do NOT use serif fonts for body text
- [ ] do NOT over-decorate or use gradients
- [ ] do NOT break the grid system
- [ ] do NOT use any `translate`, `scale`, or `shadow` changes (Rational Restraint -- the grid must not be disturbed)More prompt libraries: All UI Prompts · Tailwind UI Prompts · Dark Mode UI Prompts
Component Templates
瑞士风格按钮,Guide Line 文字变红 + 箭头图标 `group-hover:translate-x-2 duration-150` + Rational Restraint 零 scale/shadow
Frontend Readiness
This layer tracks whether the style is ready for real websites: theme modes, state feedback, keyboard access, and performance constraints.
Overall
51%
Fallback
Dark Mode
0%
MissingUI 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
FAQ
/* Swiss International Style 全局样式 */
:root {
--swiss-black: #000000;
--swiss-white: #ffffff;
--swiss-red: #ff0000;
--swiss-blue: #0057b8;
}
/* 网格系统 */
.swiss-grid {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 24px;
}
/* 标题样式 */
.swiss-heading {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 700;
letter-spacing: -0.02em;
line-height: 0.9;
}
/* 标签样式 */
.swiss-label {
font-size: 0.75rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.2em;
color: #6b7280;
}
/* 左边框强调 */
.swiss-accent {
border-left: 4px solid var(--swiss-black);
padding-left: 1.5rem;
}
@keyframes swiss-style-fade-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes swiss-style-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.swiss-style-card {
position: relative;
overflow: hidden;
}
.swiss-style-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), transparent);
pointer-events: none;
}
.swiss-style-card:hover::before {
opacity: 1;
}
.swiss-style-gradient {
background: linear-gradient(135deg, #000000, #ff0000);
}
.swiss-style-gradient-text {
background: linear-gradient(135deg, #000000, #ff0000);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.swiss-style-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(0, 0, 0, 0.08);
}
.swiss-style-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.swiss-style-animate-in {
animation: swiss-style-fade-in 0.5s ease-out both;
}Compatible Layout Patterns
The following layout patterns pair well with the Swiss International 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
Swiss International Style is a design movement developed in Switzerland in the 1950s, emphasizing clear, objective, and rational visual communication.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: C - Fair
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Text on background | /#000000 / #ffffff | 21:1 | ||
| Secondary text on background | /#ffffff / #ffffff | 1:1 | ||
| Muted text on background | /#4b5563 / #ffffff | 7.56:1 | ||
| Text on secondary background | /#000000 / #000000 | 1:1 | ||
| Secondary text on secondary | /#ffffff / #000000 | 21:1 | ||
| Button primary | /#ffffff / #000000 | 21:1 | ||
| Text on accent 1 | /#000000 / #ff0000 | 5.25:1 | ||
| Alt text on accent 1 | /#ffffff / #ff0000 | 4:1 |
Readability
Score
90/100
Font Size
text-sm md:text-base
Font Weight
font-sans font-bold 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.