Skip to content

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.

2.4 KB
Raw Blame
/*
with 1.2 scale ratio and 16px root font size
name px rem
xs	11.11	0.69
sm	13.33	0.83
md	16.00	1.00
lg	19.20	1.20
xl	23.04	1.44
2xl	27.65	1.73
3xl	33.18	2.07
4xl	39.81	2.49
5xl	47.78	2.99
6xl	57.33	3.58
*/

@mixin typeSystem {
  --default-primary-font-family: 'Outfit', sans-serif;
  --default-secondary-font-family: 'Outfit', sans-serif;
  --primary-font-family: var(--default-primary-font-family);
  --secondary-font-family: var(--default-secondary-font-family);
  --light: 300;
  --regular: 400;
  --medium: 500;
  --semibold: 600;
  --bold: 700;
  --extrabold: 900;

  /* base — root font size kept at 16px for rem-based code */
  font-size: 16px;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-ml: 18px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 40px;
  --text-4xl: 48px;

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;

  --eyebrow: var(--text-xs);
  --body-sm: var(--text-sm);
  --body-md: var(--text-md);
  --body-lg: var(--text-ml);
  --title-sm: var(--text-lg);
  --title-md: var(--text-xl);
  --title-lg: var(--text-2xl);
  --display-md: var(--text-3xl);
  --display-lg: var(--text-4xl);
  --button-sm: var(--text-sm);
  --button-md: var(--text-md);

  --text-scale-ratio: 1.2;
}

body {
  font-size: 1rem;
  font-family:
    var(--secondary-font-family),
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Roboto',
    'Oxygen',
    'Ubuntu',
    'Cantarell',
    'Fira Sans',
    'Droid Sans',
    'Helvetica Neue',
    sans-serif;
  font-style: normal;
  font-weight: var(--regular);
}

code {
  font-family:
    var(--secondary-font-family), source-code-pro, Menlo, Monaco, Consolas,
    'Courier New', monospace;
}

h1,
h2,
h3,
h4,
h5,
h6,
.subtitle {
  font-family: var(--primary-font-family);
}

.content-sm {
  font-family: var(--secondary-font-family);
}

h1 {
  font-size: var(--display-md);
}

h2 {
  font-size: var(--title-lg);
}

h3 {
  font-size: var(--title-md);
}

h4 {
  font-size: var(--title-sm);
}

h5 {
  font-size: var(--body-lg);
}

.subtitle,
.content,
p,
h6,
button,
.button-md {
  font-size: var(--body-md);
}

.content-sm,
.button-sm {
  font-size: var(--body-sm);
}

.subtitle-sm,
.caption,
.status {
  font-size: var(--eyebrow);
}

.subtitle,
.content-sm,
h5,
h4 {
  font-weight: var(--medium);
}

.subtitle-sm,
.button-sm,
.button-md,
h3,
h2,
h1 {
  font-weight: var(--bold);
}

.status,
h6 {
  font-weight: var(--semibold);
}