Skip to content

Commit 0dd95f5

Browse files
committed
style: customize DocSearch font to use Rubik for improved consistency across search components
1 parent 985da39 commit 0dd95f5

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

src/css/custom.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,40 @@
3939
--ifm-color-primary-lightest: #a5dbfc;
4040
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
4141
}
42+
43+
/* DocSearch font customization */
44+
.DocSearch-Button {
45+
font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
46+
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
47+
sans-serif !important;
48+
}
49+
50+
.DocSearch-Modal {
51+
font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
52+
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
53+
sans-serif !important;
54+
}
55+
56+
.DocSearch-Input {
57+
font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
58+
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
59+
sans-serif !important;
60+
}
61+
62+
.DocSearch-Hit-title {
63+
font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
64+
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
65+
sans-serif !important;
66+
}
67+
68+
.DocSearch-Hit-content {
69+
font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
70+
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
71+
sans-serif !important;
72+
}
73+
74+
.DocSearch-Hit-source {
75+
font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
76+
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
77+
sans-serif !important;
78+
}

0 commit comments

Comments
 (0)