T

TripAdvisor

E-Commerce & Marketplaces · Vibrant green — travel decisions powered by trusted community reviews.

Color Palette

Primary

#34E0A1

Secondary

#01AB6C

Accent 1

#1A1A1A

Typography

Trip Sans

The quick brown fox

jumps over the lazy dog

ABCDEFGHIJKLMNOPQRSTUVWXYZ

Component Preview

Navigation Bar

TripAdvisor · Features · Pricing

#1A1A1A — accent

Spacing Scale (4px base)

4

8

16

24

32

48

.cursorrules
# TripAdvisor Design System — .cursorrules
# Generated by StyleExtract · styleextract.com/vault/tripadvisor

You are a senior frontend developer building UI that matches the TripAdvisor design system exactly.
Read this entire file before writing any component.

## Brand Identity
Company    : TripAdvisor
Primary    : #34E0A1
Secondary  : #01AB6C
Accent     : #1A1A1A
Font       : Trip Sans, system-ui
Radius     : 6px
Voice      : Vibrant green — travel decisions powered by trusted community reviews.

## CSS Custom Properties
```css
:root {
  --color-primary:   #34E0A1;
  --color-secondary: #01AB6C;
  --color-accent:    #1A1A1A;
  --color-text:      #FFFFFF;
  --color-surface:   #FFFFFF;
  --color-border:    #E5E5E7;
  --font-sans:       "Trip Sans", system-ui, -apple-system, sans-serif;
  --radius:          6px;
}
```

## Tailwind Config
```js
// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        primary:   "#34E0A1",
        secondary: "#01AB6C",
        accent:    "#1A1A1A",
      },
      fontFamily: {
        sans: ["Trip Sans", "system-ui", "sans-serif"],
      },
      borderRadius: {
        brand: "6px",
      },
    },
  },
};
```

## Typography
```
heading-font:    Trip Sans, system-ui
heading-weight:  700
heading-tracking: -0.02em
body-font:       Trip Sans, system-ui
body-size:       16px
body-line-height: 1.6
```

## Spacing Scale
Base: 4px  |  Scale: 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96px
Never use arbitrary values like 13px, 22px, or 50px.

## Component Rules

### Primary Button
background-color: #34E0A1
color: #1D1D1F
border-radius: 6px
padding: 12px 24px
font-weight: 600
font-size: 14px
transition: opacity 0.15s
&:hover { opacity: 0.88 }

### Secondary Button
background-color: transparent
border: 1.5px solid #34E0A1
color: #34E0A1
border-radius: 6px
padding: 11px 23px

### Card
background: #FFFFFF
border: 1px solid #E5E5E7
border-radius: 16px
padding: 24px
box-shadow: 0 1px 3px rgba(0,0,0,0.08)

### Navigation
background: #01AB6C
color: #FFFFFF
height: 60px
padding: 0 24px
```

## Rules
DO:
- Use the exact hex values defined in CSS Custom Properties
- Maintain TripAdvisor's aesthetic: Vibrant green — travel decisions powered by trusted community reviews.
- Apply 4px base-unit spacing throughout
- Use Trip Sans for all text elements
- Meet WCAG AA contrast (4.5:1 minimum for body text)

DON'T:
- Invent colors outside the defined palette
- Use system-default blue (#0000EE) for links — use var(--color-primary)
- Apply border-radius values not on the brand scale
- Use font-weight below 400 or above 900

2,599 characters

STYLE.mdAI Agent File
---
brand:
  name: "TripAdvisor"
  category: "E-Commerce & Marketplaces"
  primary: "#34E0A1"
  secondary: "#01AB6C"
  accent: "#1A1A1A"
typography:
  heading: "Trip Sans, system-ui"
  headingWeight: 700
  headingTracking: "-0.02em"
  body: "Trip Sans, system-ui"
  bodySize: "16px"
  lineHeight: 1.6
spacing:
  base: 4
  scale: [4, 8, 12, 16, 24, 32, 48, 64, 96]
shape:
  radiusSm: "4px"
  radiusMd: "6px"
  radiusLg: "16px"
  radiusXl: "24px"
---

# TripAdvisor Design System
> AI Agent Context — read this entire file before generating any UI for TripAdvisor
> Source: StyleExtract Vault · styleextract.com/vault/tripadvisor

## Brand Overview
Vibrant green — travel decisions powered by trusted community reviews.

## Color System

| Role      | Hex       | Usage                          |
|-----------|-----------|-------------------------------|
| Primary   | `#34E0A1` | CTAs, links, key accents  |
| Secondary | `#01AB6C` | Backgrounds, headings    |
| Accent    | `#1A1A1A` | Highlights, badges, icons |
| Surface   | `#FFFFFF` | Card backgrounds |
| Border    | `#E5E5E7` | Dividers, outlines |

ALWAYS use `#34E0A1` for primary interactive elements and CTAs.
NEVER invent colors outside the palette above.

## Typography

- **Heading font**: Trip Sans, system-ui
- **Heading weight**: 700 / letter-spacing −0.02em
- **Body font**: Trip Sans, system-ui
- **Body size**: 16px / line-height 1.6

## Spacing System

Base unit is **4px**. Allowed values: 4, 8, 12, 16, 24, 32, 48, 64, 96px.
Never use arbitrary values.

## Component Patterns

### Buttons
```
Primary:   bg #34E0A1  · text #1D1D1F  · rounded-[6px]  · px-6 py-3  · font-semibold
Secondary: transparent    · border-[#34E0A1]       · text-[#34E0A1]      · px-6 py-3
```

### Cards
```
bg white (dark: #1C1C1E) · border #E5E5E7 (dark: #2C2C2E) · rounded-2xl · p-6 · shadow-sm
```

### Navigation
```
bg #01AB6C · text #FFFFFF · h-[60px] · px-6 · logo-left · links-right
```

## Accessibility
- All text WCAG AA (4.5:1 minimum)
- Interactive targets: 44×44px minimum
- Never convey state via color alone

## Brand Voice
Vibrant green — travel decisions powered by trusted community reviews.

2,159 characters

How to use these files

  1. 1.Copy .cursorrules and paste it as a new file named .cursorrules in your project root.
  2. 2.Copy STYLE.md as STYLE.md in your repo root for Claude, Bolt.new, or any agent that reads Markdown context.
  3. 3.All subsequent AI-generated components will automatically match the TripAdvisor design system.

Need a custom brand?

Extract any live website in 30 seconds.

Get a custom .cursorrules, STYLE.md, 17-page PDF brand book, CSS variables, Tailwind config, Figma tokens, and AI brand voice — all generated from the live site.

Extract a brand →