Skip to content

Commit dc0f265

Browse files
committed
Add fonts
1 parent b39902f commit dc0f265

File tree

5 files changed

+14
-21
lines changed

5 files changed

+14
-21
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
exclude: |
2323
(?x)^(
2424
.*example-layer.tar.gz|
25-
.*\.(png|svg|ico|gpg)|
25+
.*\.(png|svg|ico|gpg|woff2)|
2626
dev/version-manifest/version-manifest|
2727
.*gradle-wrapper\.jar
2828
)$
Binary file not shown.
Binary file not shown.

components/dashboard/src/index.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@
88
@tailwind components;
99
@tailwind utilities;
1010

11+
@font-face {
12+
font-family: Inter;
13+
font-weight: 400;
14+
src: url('fonts/inter/Inter-Regular.woff2') format('woff2');
15+
}
16+
@font-face {
17+
font-family: Inter;
18+
font-weight: 600;
19+
src: url('fonts/inter/Inter-SemiBold.woff2') format('woff2');
20+
}
21+
1122
@layer base {
1223
html,
1324
body {

components/dashboard/tailwind.config.js

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
// tailwind.config.js
88
const colors = require("tailwindcss/colors");
9+
const defaultTheme = require("tailwindcss/defaultTheme");
910

1011
module.exports = {
1112
jit: true,
@@ -28,13 +29,9 @@ module.exports = {
2829
sky: colors.sky,
2930
rose: colors.rose,
3031
"gitpod-black": "#161616",
31-
"gitpod-gray": "#8E8787",
3232
"gitpod-red": "#CE4A3E",
3333
"gitpod-kumquat-light": "#FFE4BC",
3434
"gitpod-kumquat": "#FFB45B",
35-
"gitpod-kumquat-dark": "#FF8A00",
36-
"gitpod-kumquat-darker": "#f28300",
37-
"gitpod-kumquat-gradient": "linear-gradient(137.41deg, #FFAD33 14.37%, #FF8A00 91.32%)",
3835
},
3936
container: {
4037
center: true,
@@ -55,22 +52,7 @@ module.exports = {
5552
},
5653
},
5754
fontFamily: {
58-
sans: [
59-
"Inter",
60-
"system-ui",
61-
"-apple-system",
62-
"BlinkMacSystemFont",
63-
"Segoe UI",
64-
"Roboto",
65-
"Helvetica Neue",
66-
"Arial",
67-
"Noto Sans",
68-
"sans-serif",
69-
"Apple Color Emoji",
70-
"Segoe UI Emoji",
71-
"Segoe UI Symbol",
72-
"Noto Color Emoji",
73-
],
55+
sans: ["Inter", ...defaultTheme.fontFamily.sans],
7456
mono: [
7557
"JetBrains Mono",
7658
"SF Mono",

0 commit comments

Comments
 (0)