added missing roboto weights (#1130)

This commit is contained in:
Peer Richelsen 2021-11-04 13:56:02 +00:00 committed by GitHub
parent 3c5a84b7b4
commit 401016772e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 124 additions and 12 deletions

View file

@ -13,6 +13,7 @@ import { withTRPC } from "@trpc/next";
import type { TRPCClientErrorLike } from "@trpc/react";
import { Maybe } from "@trpc/server";
import "../styles/fonts.css";
import "../styles/globals.css";
function MyApp(props: AppProps) {

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.

123
styles/fonts.css Normal file
View file

@ -0,0 +1,123 @@
/* Roboto */
@font-face {
font-family: "Roboto";
src: url("/fonts/Roboto-Black.woff2") format("woff2"), url("/fonts/Roboto-Black.woff") format("woff"),
url("/fonts/Roboto-Black.ttf") format("truetype");
font-weight: 900;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url("/fonts/Roboto-Bold.woff2") format("woff2"), url("/fonts/Roboto-Bold.woff") format("woff"),
url("/fonts/Roboto-Bold.ttf") format("truetype");
font-weight: bold;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url("/fonts/Roboto-BoldItalic.woff2") format("woff2"),
url("/fonts/Roboto-BoldItalic.woff") format("woff"),
url("/fonts/Roboto-BoldItalic.ttf") format("truetype");
font-weight: bold;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url("/fonts/Roboto-BlackItalic.woff2") format("woff2"),
url("/fonts/Roboto-BlackItalic.woff") format("woff"),
url("/fonts/Roboto-BlackItalic.ttf") format("truetype");
font-weight: 900;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url("/fonts/Roboto-Light.woff2") format("woff2"), url("/fonts/Roboto-Light.woff") format("woff"),
url("/fonts/Roboto-Light.ttf") format("truetype");
font-weight: 300;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url("/fonts/Roboto-Italic.woff2") format("woff2"), url("/fonts/Roboto-Italic.woff") format("woff"),
url("/fonts/Roboto-Italic.ttf") format("truetype");
font-weight: normal;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url("/fonts/Roboto-LightItalic.woff2") format("woff2"),
url("/fonts/Roboto-LightItalic.woff") format("woff"),
url("/fonts/Roboto-LightItalic.ttf") format("truetype");
font-weight: 300;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url("/fonts/Roboto-Regular.woff2") format("woff2"), url("/fonts/Roboto-Regular.woff") format("woff"),
url("/fonts/Roboto-Regular.ttf") format("truetype");
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url("/fonts/Roboto-Medium.woff2") format("woff2"), url("/fonts/Roboto-Medium.woff") format("woff"),
url("/fonts/Roboto-Medium.ttf") format("truetype");
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url("/fonts/Roboto-MediumItalic.woff2") format("woff2"),
url("/fonts/Roboto-MediumItalic.woff") format("woff"),
url("/fonts/Roboto-MediumItalic.ttf") format("truetype");
font-weight: 500;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url("/fonts/Roboto-Thin.woff2") format("woff2"), url("/fonts/Roboto-Thin.woff") format("woff"),
url("/fonts/Roboto-Thin.ttf") format("truetype");
font-weight: 100;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url("/fonts/Roboto-ThinItalic.woff2") format("woff2"),
url("/fonts/Roboto-ThinItalic.woff") format("woff"),
url("/fonts/Roboto-ThinItalic.ttf") format("truetype");
font-weight: 100;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url("/fonts/roboto.ttf");
}
@font-face {
font-family: "Cal Sans";
src: url("/cal.ttf");
}

View file

@ -24,18 +24,6 @@
@apply rounded-sm focus:ring-primary-500 focus:border-primary-500 h-auto py-0.5 my-0.5;
}
/* Roboto */
@font-face {
font-family: "Roboto";
src: url("https://app.cal.com/roboto.ttf");
}
/* Cal Sans */
@font-face {
font-family: "Cal Sans";
src: url("https://app.cal.com/cal.ttf");
}
/* note(PeerRich): TODO move @layer components into proper React Components: <Button color="primary" size="xs" /> */
@layer components {
/* Primary buttons */