Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· OpenAIHugging Face Arena Human Preference 55K

Hi, just act like frontend engineer who move figma's styles to css variables (project…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-2.0’s answer.
  1. User

    Hi, just act like frontend engineer who move figma's styles to css variables (project bootstrap)

    You have next values for font size and line heights for mobile and desktop

    Text StyleFont Size DesktopLine Height DesktopFont Size MobileLine Height Mobile
    Button 312px18px12px18px
    Button 214px18px14px18px
    Button 116px18px16px18px
    Caption12px18px12px18px
    Quote45px60px35px50px
    Paragraph 216px28px16px28px
    Paragraph 118px38px16px32px
    Subtitle 214px32px12px20px
    Subtitle 118px42px16px26px
    H620px28px18px26px
    H524px32px22px30px
    H424px32px22px30px
    H335px40px30px35px
    H245px60px40px55px
    H172px90px50px60px
    H1 CAPS72px80px45px55px

    Please use Paragraph 1 as base font size and line-height

    I want to fetch this list as css variables for :root (mobile, tablet and desktop). I don't have exact tablet variables, but please make it smooth transitions (if desktop & mobile are the same, it should stay the same on tablet as well)

    I want to use this naming example :root { // Font families --font-family-primary: 'meno-banner', serif; --font-family-secondary: 'aktiv-grotesk', sans-serif; --font-family-tertiary: 'aktiv-grotesk-extended', sans-serif;

    // Font sizes --font-size-xs: 0.75rem; /* 12px / --font-size-sm: 0.875rem; / 14px / --font-size-base: 1rem; / 16px / --font-size-lg: 1.125rem; / 18px / --font-size-xl: 1.375rem; / 22px / --font-size-2xl: 1.875rem; / 30px / --font-size-3xl: 2.1875rem; / 35px / --font-size-4xl: 2.5rem; / 40px / --font-size-5xl: 2.8125rem; / 45px / --font-size-6xl: 3.125rem; / 50px */

    // Line Heights --line-height-xs: 1.125rem; /* 18px / --line-height-sm: 1.25rem; / 20px / --line-height-base: 1.75rem; / 28px (base) / --line-height-md: 1.625rem; / 26px / --line-height-lg: 2rem; / 32px / --line-height-xl: 2.1875rem; / 35px / --line-height-2xl: 3.125rem; / 50px / --line-height-3xl: 3.4375rem; / 55px / --line-height-4xl: 3.75rem; / 60px */ }

    // Tablet @include media-breakpoint-up(md) { :root { // Font Sizes --font-size-xs: 0.75rem; /* 12px / --font-size-sm: 0.875rem; / 14px / --font-size-base: 1rem; / 16px (base) / --font-size-md: 1.125rem; / 18px / --font-size-lg: 1.375rem; / 22px / --font-size-xl: 1.875rem; / 30px / --font-size-2xl: 2.1875rem; / 35px / --font-size-3xl: 2.5rem; / 40px / --font-size-4xl: 2.8125rem; / 45px / --font-size-5xl: 3.125rem; / 50px */

    // Line Heights
    --line-height-xs: 1.125rem; /* 18px */
    --line-height-sm: 1.25rem; /* 20px */
    --line-height-base: 1.75rem; /* 28px (base) */
    --line-height-md: 1.625rem; /* 26px */
    --line-height-lg: 2rem; /* 32px */
    --line-height-xl: 2.1875rem; /* 35px */
    --line-height-2xl: 3.125rem; /* 50px */
    
  2. Assistant

    Sure! Here's the updated CSS code with the CSS variables for font sizes and line heights based on the given values:

    :root {
      /* Font families */
      --font-family-primary: 'meno-banner', serif;
      --font-family-secondary: 'aktiv-grotesk', sans-serif;
      --font-family-tertiary: 'aktiv-grotesk-extended', sans-serif;
    
      /* Font sizes */
      --font-size-xs: 0.75rem; /* 12px */
      --font-size-sm: 0.875rem; /* 14px */
      --font-size-base: 1rem; /* 16px */
      --font-size-lg: 1.125rem; /* 18px */
      --font-size-xl: 1.375rem; /* 22px */
      --font-size-2xl: 1.875rem; /* 30px */
      --font-size-3xl: 2.1875rem; /* 35px */
      --font-size-4xl: 2.5rem; /* 40px */
      --font-size-5xl: 2.8125rem; /* 45px */
      --font-size-6xl: 3.125rem; /* 50px */
    
      /* Line Heights */
      --line-height-xs: 1.125rem; /* 18px */
      --line-height-sm: 1.25rem; /* 20px */
      --line-height-base: 1.75rem; /* 28px (base) */
      --line-height-md: 1.625rem; /* 26px */
      --line-height-lg: 2rem; /* 32px */
      --line-height-xl: 2.1875rem; /* 35px */
      --line-height-2xl: 3.125rem; /* 50px */
      --line-height-3xl: 3.4375rem; /* 55px */
      --line-height-4xl: 3.75rem; /* 60px */
    }
    
    /* Tablet */
    @media (min-width: 768px) {
      :root {
        /* Font Sizes */
        --font-size-xs: 0.75rem; /* 12px */
        --font-size-sm: 0.875rem; /* 14px */
        --font-size-base: 1rem; /* 16px (base) */
    

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.