diff --git a/src/app/organisms/profile-viewer/ProfileViewer.scss b/src/app/organisms/profile-viewer/ProfileViewer.scss
index b7da7c5..ac90786 100644
--- a/src/app/organisms/profile-viewer/ProfileViewer.scss
+++ b/src/app/organisms/profile-viewer/ProfileViewer.scss
@@ -26,9 +26,6 @@
margin: 0 var(--sp-normal);
- & .text-s1 {
- font-weight: 500;
- }
& .text {
white-space: pre-wrap;
word-break: break-word;
diff --git a/src/app/organisms/room/PeopleDrawer.jsx b/src/app/organisms/room/PeopleDrawer.jsx
index 85992f7..0a9226c 100644
--- a/src/app/organisms/room/PeopleDrawer.jsx
+++ b/src/app/organisms/room/PeopleDrawer.jsx
@@ -143,7 +143,7 @@ function PeopleDrawer({ roomId }) {
-
+
People
{`${room.getJoinedMemberCount()} members`}
diff --git a/src/app/organisms/room/RoomViewHeader.jsx b/src/app/organisms/room/RoomViewHeader.jsx
index a2e0d48..e9153f5 100644
--- a/src/app/organisms/room/RoomViewHeader.jsx
+++ b/src/app/organisms/room/RoomViewHeader.jsx
@@ -29,7 +29,7 @@ function RoomViewHeader({ roomId }) {
- {twemojify(roomName)}
+ {twemojify(roomName)}
{ typeof roomTopic !== 'undefined' && {twemojify(roomTopic)}
}
diff --git a/src/app/organisms/welcome/Welcome.jsx b/src/app/organisms/welcome/Welcome.jsx
index 9d9eb7d..3ffd05c 100644
--- a/src/app/organisms/welcome/Welcome.jsx
+++ b/src/app/organisms/welcome/Welcome.jsx
@@ -10,7 +10,7 @@ function Welcome() {
-
Welcome to Cinny
+
Welcome to Cinny
Yet another matrix client
diff --git a/src/app/templates/client/Client.jsx b/src/app/templates/client/Client.jsx
index 05bd43f..3bb6055 100644
--- a/src/app/templates/client/Client.jsx
+++ b/src/app/templates/client/Client.jsx
@@ -49,7 +49,7 @@ function Client() {
{loadingMsg}
- Cinny
+ Cinny
);
diff --git a/src/font-face.css b/src/font-face.css
new file mode 100644
index 0000000..94fe4e3
--- /dev/null
+++ b/src/font-face.css
@@ -0,0 +1,59 @@
+/* ---- ROBOTO ---- */
+
+@font-face {
+ font-family: 'Roboto';
+ src: url(../public/res/fonts/roboto/Roboto-Light.ttf);
+ font-weight: 300;
+ font-display: swap;
+}
+@font-face {
+ font-family: 'Roboto';
+ src: url(../public/res/fonts/roboto/Roboto-Regular.ttf);
+ font-weight: 400;
+ font-display: swap;
+}
+@font-face {
+ font-family: 'Roboto';
+ src: url(../public/res/fonts/roboto/Roboto-Medium.ttf);
+ font-weight: 500;
+ font-display: swap;
+}
+@font-face {
+ font-family: 'Roboto';
+ src: url(../public/res/fonts/roboto/Roboto-Bold.ttf);
+ font-weight: 600;
+ font-display: swap;
+}
+
+/* ---- Inter ---- */
+
+@font-face {
+ font-family: 'Inter';
+ src: url(../public/res/fonts/inter/Inter_vf_slant_weight.ttf);
+ font-weight: 300;
+ font-display: swap;
+}
+@font-face {
+ font-family: 'Inter';
+ src: url(../public/res/fonts/inter/Inter_vf_slant_weight.ttf);
+ font-weight: 380;
+ font-display: swap;
+}
+@font-face {
+ font-family: 'Inter';
+ src: url(../public/res/fonts/inter/Inter_vf_slant_weight.ttf);
+ font-weight: 400;
+ font-display: swap;
+}
+@font-face {
+ font-family: 'Inter';
+ src: url(../public/res/fonts/inter/Inter_vf_slant_weight.ttf);
+ font-weight: 500;
+ font-display: swap;
+}
+@font-face {
+ font-family: 'Inter';
+ src: url(../public/res/fonts/inter/Inter_vf_slant_weight.ttf);
+ font-weight: 600;
+ font-display: swap;
+}
\ No newline at end of file
diff --git a/src/index.scss b/src/index.scss
index aed54b8..9aa8c4d 100644
--- a/src/index.scss
+++ b/src/index.scss
@@ -1,4 +1,4 @@
-@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
+@import url(./font-face.css);
:root {
@@ -43,7 +43,7 @@
--tc-surface-high: #000000;
--tc-surface-normal: rgba(0, 0, 0, 78%);
--tc-surface-normal-low: rgba(0, 0, 0, 60%);
- --tc-surface-low: rgba(0, 0, 0, 38%);
+ --tc-surface-low: rgba(0, 0, 0, 48%);
--tc-primary-high: #ffffff;
--tc-primary-normal: rgba(255, 255, 255, 68%);
@@ -113,7 +113,7 @@
--bo-radius: 8px;
- /* font syles */
+ /* font styles: font-size, letter-spacing, line-hight */
--fs-h1: 36px;
--ls-h1: -1.5px;
--lh-h1: 38px;
@@ -138,6 +138,17 @@
--ls-b3: 0px;
--lh-b3: 16px;
+ /* font-weight */
+ --p-fw-light: 300;
+ --p-fw-normal: 400;
+ --p-fw-medium: 500;
+ --p-fw-bold: 600;
+
+ --fw-light: 300;
+ --fw-normal: 400;
+ --fw-medium: 500;
+ --fw-bold: 600;
+
/* spacing | --sp-[space]: value */
--sp-none: 0px;
@@ -162,7 +173,8 @@
/* transition curves */
--fluid-push: cubic-bezier(0, 0.8, 0.67, 0.97);
- --font-family: 'Roboto', 'Supreme', sans-serif;
+ --font-primary: 'Roboto', sans-serif;
+ --font-secondary: 'Roboto', sans-serif;
}
.silver-theme {
@@ -228,8 +240,25 @@
--bs-primary-border: inset 0 0 0 1px var(--bg-primary-border);
--bs-primary-outline: 0 0 0 2px var(--bg-primary-border);
+
+ /* font styles: font-size, letter-spacing, line-hight */
+ --fs-h1: 35.6px;
- --font-family: 'Supreme', 'Roboto', sans-serif;
+ --fs-h2: 23.6px;
+
+ --fs-s1: 17.6px;
+
+ --fs-b1: 14.6px;
+ --ls-b1: 0.14px;
+
+ --fs-b2: 13.6px;
+
+ --fs-b3: 11.6px;
+
+ /* override normal font weight for dark mode */
+ --fw-normal: 380;
+
+ --font-secondary: 'Inter', 'Roboto', sans-serif;
}
.butter-theme {
@@ -264,8 +293,9 @@ body {
margin: 0;
padding: 0;
height: 100%;
- font-family: var(--font-family);
+ font-family: var(--font-secondary);
font-size: 16px;
+ font-weight: var(--fw-normal);
background-color: var(--bg-surface-low);
}
#root {
@@ -283,7 +313,7 @@ a {
text-decoration: none;
}
b {
- font-weight: 500;
+ font-weight: var(--fw-medium);
}
label {
margin: 0;