Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed packages/mercury/src/assets/fonts/Inter-Black.woff2
Binary file not shown.
Binary file not shown.
Binary file removed packages/mercury/src/assets/fonts/Inter-Bold.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed packages/mercury/src/assets/fonts/Inter-Light.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed packages/mercury/src/assets/fonts/Inter-Thin.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
21 changes: 21 additions & 0 deletions packages/mercury/src/font-face/Inter/_Inter-cyrillic-ext.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@use "../unicode-ranges" as *;

@mixin font-face-inter-cyrillic-ext($font-face-path: "/assets/fonts/") {
@each $weight in $font-weights {
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: $weight;
src: url("#{$font-face-path}Inter-cyrillic-ext-#{$weight}-italic.woff2");
unicode-range: $cyrillic-ext;
}

@font-face {
font-family: "Inter";
font-style: normal;
font-weight: $weight;
src: url("#{$font-face-path}Inter-cyrillic-ext-#{$weight}-normal.woff2");
unicode-range: $cyrillic-ext;
}
}
}
21 changes: 21 additions & 0 deletions packages/mercury/src/font-face/Inter/_Inter-cyrillic.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@use "../unicode-ranges" as *;

@mixin font-face-inter-cyrillic($font-face-path: "/assets/fonts/") {
@each $weight in $font-weights {
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: $weight;
src: url("#{$font-face-path}Inter-cyrillic-#{$weight}-italic.woff2");
unicode-range: $cyrillic;
}

@font-face {
font-family: "Inter";
font-style: normal;
font-weight: $weight;
src: url("#{$font-face-path}Inter-cyrillic-#{$weight}-normal.woff2");
unicode-range: $cyrillic;
}
}
}
21 changes: 21 additions & 0 deletions packages/mercury/src/font-face/Inter/_Inter-greek-ext.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@use "../unicode-ranges" as *;

@mixin font-face-inter-greek-ext($font-face-path: "/assets/fonts/") {
@each $weight in $font-weights {
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: $weight;
src: url("#{$font-face-path}Inter-greek-ext-#{$weight}-italic.woff2");
unicode-range: $greek-ext;
}

@font-face {
font-family: "Inter";
font-style: normal;
font-weight: $weight;
src: url("#{$font-face-path}Inter-greek-ext-#{$weight}-normal.woff2");
unicode-range: $greek-ext;
}
}
}
21 changes: 21 additions & 0 deletions packages/mercury/src/font-face/Inter/_Inter-greek.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@use "../unicode-ranges" as *;

@mixin font-face-inter-greek($font-face-path: "/assets/fonts/") {
@each $weight in $font-weights {
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: $weight;
src: url("#{$font-face-path}Inter-greek-#{$weight}-italic.woff2");
unicode-range: $greek;
}

@font-face {
font-family: "Inter";
font-style: normal;
font-weight: $weight;
src: url("#{$font-face-path}Inter-greek-#{$weight}-normal.woff2");
unicode-range: $greek;
}
}
}
21 changes: 21 additions & 0 deletions packages/mercury/src/font-face/Inter/_Inter-latin-ext.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@use "../unicode-ranges" as *;

@mixin font-face-inter-latin-ext($font-face-path: "/assets/fonts/") {
@each $weight in $font-weights {
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: $weight;
src: url("#{$font-face-path}Inter-latin-ext-#{$weight}-italic.woff2");
unicode-range: $latin-ext;
}

@font-face {
font-family: "Inter";
font-style: normal;
font-weight: $weight;
src: url("#{$font-face-path}Inter-latin-ext-#{$weight}-normal.woff2");
unicode-range: $latin-ext;
}
}
}
21 changes: 21 additions & 0 deletions packages/mercury/src/font-face/Inter/_Inter-latin.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@use "../unicode-ranges" as *;

@mixin font-face-inter-latin($font-face-path: "/assets/fonts/") {
@each $weight in $font-weights {
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: $weight;
src: url("#{$font-face-path}Inter-latin-#{$weight}-italic.woff2");
unicode-range: $latin;
}

@font-face {
font-family: "Inter";
font-style: normal;
font-weight: $weight;
src: url("#{$font-face-path}Inter-latin-#{$weight}-normal.woff2");
unicode-range: $latin;
}
}
}
21 changes: 21 additions & 0 deletions packages/mercury/src/font-face/Inter/_Inter-vietnamese.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@use "../unicode-ranges" as *;

@mixin font-face-inter-vietnamese($font-face-path: "/assets/fonts/") {
@each $weight in $font-weights {
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: $weight;
src: url("#{$font-face-path}Inter-vietnamese-#{$weight}-italic.woff2");
unicode-range: $vietnamese;
}

@font-face {
font-family: "Inter";
font-style: normal;
font-weight: $weight;
src: url("#{$font-face-path}Inter-vietnamese-#{$weight}-normal.woff2");
unicode-range: $vietnamese;
}
}
}
18 changes: 18 additions & 0 deletions packages/mercury/src/font-face/_unicode-ranges.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$cyrillic-ext:
U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
$cyrillic: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
$greek-ext: U+1F00-1FFF;
$greek: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
$vietnamese:
U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
$latin-ext:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
$latin:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
U+FEFF, U+FFFD;

$font-weights: 300, 400, 500, 600, 700;
91 changes: 21 additions & 70 deletions packages/mercury/src/mercury.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@
// Resets
@use "../../common/resets" as *;

// Source
// https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;1,300&subset=latin
// https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;1,400&subset=latin
// https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,500;1,500&subset=latin
// https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,600;1,600&subset=latin
// https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,700;1,700&subset=latin
@use "font-face/Inter/Inter-cyrillic-ext" as *;
@use "font-face/Inter/Inter-cyrillic" as *;
@use "font-face/Inter/Inter-greek-ext" as *;
@use "font-face/Inter/Inter-greek" as *;
@use "font-face/Inter/Inter-latin-ext" as *;
@use "font-face/Inter/Inter-latin" as *;
@use "font-face/Inter/Inter-vietnamese" as *;

// Tokens Primitive
@use "tokens/primitive/border" as *;
@use "tokens/primitive/color" as *;
Expand Down Expand Up @@ -157,77 +171,14 @@
// - - - - - - - - - - - - - - - - - - - -
// Typography
// - - - - - - - - - - - - - - - - - - - -
// font-face
@if $font-face {
// Light
@font-face {
font-family: "Inter";
src: url("#{$font-face-path}Inter-Light.woff2");
font-weight: 300;
font-style: normal;
}
@font-face {
font-family: "Inter";
src: url("#{$font-face-path}Inter-LightItalic.woff2");
font-weight: 300;
font-style: italic;
}

// Regular
@font-face {
font-family: "Inter";
src: url("#{$font-face-path}Inter-Regular.woff2");
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "Inter";
src: url("#{$font-face-path}Inter-Italic.woff2");
font-weight: 400;
font-style: italic;
}

// Medium
@font-face {
font-family: "Inter";
src: url("#{$font-face-path}Inter-Medium.woff2");
font-weight: 500;
font-style: normal;
}
@font-face {
font-family: "Inter";
src: url("#{$font-face-path}Inter-MediumItalic.woff2");
font-weight: 500;
font-style: italic;
}

// SemiBold
@font-face {
font-family: "Inter";
src: url("#{$font-face-path}Inter-SemiBold.woff2");
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: "Inter";
src: url("#{$font-face-path}Inter-SemiBoldItalic.woff2");
font-weight: 600;
font-style: italic;
}

// Bold
@font-face {
font-family: "Inter";
src: url("#{$font-face-path}Inter-Bold.woff2");
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: "Inter";
src: url("#{$font-face-path}Inter-BoldItalic.woff2");
font-weight: 700;
font-style: italic;
}
@include font-face-inter-cyrillic-ext($font-face-path);
@include font-face-inter-cyrillic($font-face-path);
@include font-face-inter-greek-ext($font-face-path);
@include font-face-inter-greek($font-face-path);
@include font-face-inter-latin-ext($font-face-path);
@include font-face-inter-latin($font-face-path);
@include font-face-inter-vietnamese($font-face-path);
}

// - - - - - - - - - - - - - - - - - - - -
Expand Down
Loading