@use '~@automattic/color-studio/dist/color-variables' as *;

$sans:
  -apple-system, 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Helvetica',
  'Arial', 'sans-serif', 'Apple Color Emoji', 'Segoe UI Emoji',
  'Segoe UI Symbol';
$bold: 600;
$light: 300;
$anim-transition: all 200ms ease-in-out;
$anim-fast: all 0.1s ease-in-out;
$anim: all 0.2s ease-in-out;
$fade-alpha: 0.25;
$border-radius: 3px;
$focus-outline: 4px auto $studio-simplenote-blue-5;

// Global Measurements

$navigation-bar-width: 260px;
$note-list-width: 380px;
$max-content-width: 650px;
$toolbar-height: 44px;

// Viewport widths for media queries
$single-column: 750px;
$medium: 900px;

// Theme color variables

:root,
body[data-theme='light'] {
  --background-color: #fff; // $studio-white
  --foreground-color: #646970; // $studio-gray-50
  --primary-color: #2c3338; // $studio-gray-80
  --secondary-color: #dcdcde; // $studio-gray-5
  --tertiary-color: #a7aaad; // $studio-gray-20
  --accent-color: #3361cc; // $studio-simplenote-blue-50
  --secondary-accent-color: #c3c4c7; // $studio-gray-10
  --tertiary-accent-color: #8c8f94; // $studio-gray-30
  --highlight-color: #ced9f2; // $studio-simplenote-blue-5
  --secondary-highlight-color: #f6f7f7; // $studio-gray-0;
  --tertiary-highlight-color: #d63638; // $studio-red-50
  --overlay-color: rgba(0, 0, 0, 0.2); // black with 20% opacity
  --search-selection-color: #f0c930; // $studio-yellow-20
  --search-highlight-color: #ced9f2; // $studio-simplenote-blue-5
  --wordpress-color: #006088; // $studio-wordpress-blue-50
  --active-controls-color: #1ed15a; // $studio-green-20
  --inactive-controls-color: #c3c4c7; // $studio-gray-10
  --warning-highlight-color: #faa754; // $studio-orange-20
  --primary-button-bg-color: #3361cc; // $studio-simplenote-blue-50
  --secondary-button-bg-color: #646970; // $studio-gray-50
  --primary-button-fg-color: #fff; // $studio-white
  --primary-branding-color: #3361cc; // $studio-simplenote-blue-50
  --placeholder-color: #646970; // $studio-gray-50
  // readonly-input-color = $studio-black with 0.05 opacity
  --readonly-input-color: rgba(0, 0, 0, 0.05);
  --readonly-input-highlight-color: #c3c4c7; // $studio-gray-10
  --primary-slider-color: #dcdcde; // $studio-gray-5
  --secondary-slider-color: #fff; // $studio-white
  --primary-tag-chip-color: #dcdcde; // $studio-gray-5
  --secondary-tag-chip-color: #facfd2; // $studio-red-5
  --settings-fg-color: #2c3338; // $studio-gray-80
  --alternative-highlight-color: #f6f7f7; // $studio-gray-0;
  --disabled-text-color: #dcdcde; // $studio-gray-5
}

body[data-theme='dark'] {
  --background-color: #1d2327; // $studio-gray-90
  --foreground-color: #8c8f94; // $studio-gray-30
  --primary-color: #fff; // $studio-white
  --secondary-color: #2c3338; // $studio-gray-80
  --tertiary-color: #646970; // $studio-gray-50
  --accent-color: #84a4f0; // $studio-simplenote-blue-20
  --secondary-accent-color: #50575e; // $studio-gray-60
  // highlight-color = $studio-simplenote-blue-50 with 40% opacity
  --highlight-color: rgba(51, 97, 204, 0.4);
  --secondary-highlight-color: #2c3338; // $studio-gray-80
  --search-highlight-color: #3361cc; // $studio-simplenote-blue-50
  --search-selection-color: #deb100; // $studio-yellow-30
  --placeholder-color: #a7aaad; // $studio-gray-20
  --primary-button-bg-color: #3361cc; // $studio-simplenote-blue-50
  --tertiary-highlight-color: #ff8085; // $studio-red-20
  // readonly-input-color = $studio-white with 0.07 opacity
  --readonly-input-color: rgba(255, 255, 255, 0.07);
  --readonly-input-highlight-color: #8c8f94; // $studio-gray-30
  --primary-slider-color: #646970; // $studio-gray-50
  --secondary-slider-color: #fff; // $studio-white
  --primary-tag-chip-color: #3c434a; // $studio-gray-70
  --secondary-tag-chip-color: #8a2424; // $studio-red-70
  --settings-fg-color: #dcdcde; // $studio-gray-5
  --alternative-highlight-color: #2c3338; // $studio-gray-80
  --disabled-text-color: #646970; // $studio-gray-50
}
