Skip to content

Commit cf3fed2

Browse files
committed
fix font weights
1 parent 99c2569 commit cf3fed2

File tree

12 files changed

+23
-13
lines changed

12 files changed

+23
-13
lines changed

ui/src/css/base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ kbd,
4141
pre {
4242
font-family: var(--monospace-font-family);
4343
font-size: 16px;
44-
font-weight: 300;
44+
font-weight: 400;
4545
}
4646

4747
b,

ui/src/css/doc.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@
13871387
.doc dl,
13881388
.doc table {
13891389
margin: 0 0 1rem;
1390-
font-weight: 300;
1390+
font-weight: 400;
13911391
}
13921392

13931393
/* inline links pick up the new blue */

ui/src/css/site.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@import "tailwindcss";
22
@import "typeface-inter.css";
33
@import "typeface-ibm-plex-mono.css";
4+
@import "typeface-roboto.css";
45
@import "vars.css";
56
@import "base.css";
67
@import "body.css";

ui/src/css/toc.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
.toc .toc-menu h3 {
1414
color: var(--toc-heading-font-color);
1515
font-size: large;
16-
font-weight: 400;
16+
font-weight: 500;
1717
font-family: 'Inter', sans-serif;
1818
line-height: 1.3;
1919
margin: 0 -0.5px;
@@ -82,7 +82,7 @@
8282
.toc .toc-menu a {
8383
font-family: 'Inter', sans-serif;
8484
font-size: medium;
85-
font-weight: 300;
85+
font-weight: 400;
8686
color: inherit;
8787
border-left: 1px solid var(--toc-border-color);
8888
display: inline-block;

ui/src/css/typeface-roboto.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@font-face {
2+
font-family: "Roboto";
3+
font-style: normal;
4+
font-weight: 700;
5+
src:
6+
url(~@fontsource/roboto/files/roboto-latin-700-normal.woff2) format("woff2"),
7+
url(~@fontsource/roboto/files/roboto-latin-700-normal.woff) format("woff");
8+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
9+
}

ui/src/partials/article-footer.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<div class="inline-flex mt-6 md:mt-0 md:ml-8 space-x-4">
88
<button class="rounded-md px-2 py-2 inline-flex justify-center items-center border border-vapor space-x-1">
99
<img src="{{uiRootPath}}/img/thumbs-up.svg" alt="Thumbs Up" class="inline-block w-4 h-4">
10-
<span class="font-light">
10+
<span class="font-normal">
1111
Yes
1212
</span>
1313
</button>
1414
<button class="rounded-md px-2 py-2 inline-flex justify-center items-center border border-vapor space-x-1">
1515
<img src="{{uiRootPath}}/img/thumbs-down.svg" alt="Thumbs Up" class="inline-block w-4 h-4">
16-
<span class="font-light">
16+
<span class="font-normal">
1717
No
1818
</span>
1919
</button>

ui/src/partials/article-info-bar.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
{{#if page.attributes.platform}}
2424
<div class="flex items-center min-w-fit space-x-1 px-3 py-2 md:py-0 border-t md:border-t-0 md:border-l border-inherit">
2525
{{#each (split page.attributes.platform ',')}}
26-
<span class=" text-[10px] text-terminal-black border rounded-full py-1 px-1.5">{{this}}</span>
26+
<span class="text-[10px] text-terminal-black border rounded-full py-1 px-1.5" style="font-family: 'Roboto', sans-serif; font-weight: 700;">{{this}}</span>
2727
{{/each}}
2828
</div>
2929
{{/if}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<div role="navigation" aria-label="Article Toolbar" class="flex flex-col max-w-[800px] md:items-center mx-[32px] md:ml-[3.5rem] lg:ml-12 mt-6 md:mt-12 md:flex-row text-sm font-light" >
1+
<div role="navigation" aria-label="Article Toolbar" class="flex flex-col max-w-[800px] md:items-center mx-[32px] md:ml-[3.5rem] lg:ml-12 mt-6 md:mt-12 md:flex-row text-sm font-normal" >
22
{{> breadcrumbs}}
33
</div>

ui/src/partials/article.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<h1 class="page flex items-center gap-2">
44
{{{this}}}
55
{{#if @root.page.attributes.badge}}
6-
<span class="text-[10px] rounded-full py-1 px-1.5 {{#if @root.page.attributes.badge-classes}}{{@root.page.attributes.badge-classes}}{{else}}text-terminal-black border{{/if}}" {{#if @root.page.attributes.badge-bg}}style="background-color: {{@root.page.attributes.badge-bg}}; {{#if @root.page.attributes.badge-border}}border: 1px solid {{@root.page.attributes.badge-border}};{{/if}}"{{/if}}>{{@root.page.attributes.badge}}</span>
6+
<span class="text-[10px] rounded-full py-1 px-1.5 {{#if @root.page.attributes.badge-classes}}{{@root.page.attributes.badge-classes}}{{else}}text-terminal-black border{{/if}}" {{#if @root.page.attributes.badge-bg}}style="font-family: 'Roboto', sans-serif; font-weight: 700; background-color: {{@root.page.attributes.badge-bg}}; {{#if @root.page.attributes.badge-border}}border: 1px solid {{@root.page.attributes.badge-border}};{{/if}}"{{else}}style="font-family: 'Roboto', sans-serif; font-weight: 700;"{{/if}}>{{@root.page.attributes.badge}}</span>
77
{{/if}}
88
</h1>
99
{{/with}}

ui/src/partials/component-explorer-nav.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<nav data-component-explorer-nav class="flex flex-col md:flex-row md:items-center justify-between text-terminal-black font-medium md:font-light {{#if class}}{{class}}{{/if}} overflow-x-auto whitespace-nowrap gap-3">
1+
<nav data-component-explorer-nav class="flex flex-col md:flex-row md:items-center justify-between text-terminal-black font-medium md:font-normal {{#if class}}{{class}}{{/if}} overflow-x-auto whitespace-nowrap gap-3">
22

33
<ul class="flex flex-col md:flex-row md:space-x-8">
44
{{#each options.navList}}
55
<li class="flex items-center mr-2">
6-
<a href="{{{relativize ./url}}}" class="inline-block px-2 py-2 md:py-3 {{#if (eq ./name @root.page.component.name)}} text-accent-green md:text-inherit border-l-2 md:border-l-0 md:border-b-2 border-accent-green font-medium {{/if}} ">
6+
<a href="{{{relativize ./url}}}" class="inline-block px-2 py-2 md:py-3 {{#if (eq ./name @root.page.component.name)}} text-accent-green md:text-inherit border-l-2 md:border-l-0 md:border-b-2 border-accent-green font-semibold {{/if}} ">
77
{{{./label}}}
88
</a>
99
</li>

0 commit comments

Comments
 (0)