Skip to content

Commit

Permalink
feat: use Proxima Vara font
Browse files Browse the repository at this point in the history
  • Loading branch information
dtanp-rft committed Nov 6, 2024
1 parent e84dcf8 commit 09b9584
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/ds-theme/src/fonts.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@font-face {
font-family: 'Proxima Vara';
font-display: swap;
src: url('https://cdn.ppe.refinitiv.com/public/ds-assets/fonts/ProximaVara.woff2');
}
54 changes: 54 additions & 0 deletions packages/ds-theme/src/native-elements/body.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
@import '../fonts';
// @import '../shared-styles/scrollbar';

body {
font-family: 'Proxima Vara', Arial, 'Helvetica Nue', Helvetica, sans-serif;
font-size: @global-text-size;
color: @global-text-color;
line-height: @global-text-line-height;
background: @global-background-color;
padding: 0;
margin: 0 auto;
visibility: visible;

// TODO: Revert selection to browser default
// ::selection {
// background-color: @global-text-selection-background;
// color: @global-text-selection-color;
// }

// TODO: To confirm with design which font to use
// :lang(ja) & {
// font-family: 'Proxima Nova Fin', Meiryo, 'メイリオ', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro',
// 'MS PGothic', 'MS Pゴシック', Arial;
// pre {
// font-family: 'MS Gothic', 'MS ゴシック', 'MS PGothic', 'Osaka-等幅', 'Osaka-等幅', Osaka-mono,
// monospace, 'MS Pゴシック', Arial;
// }
// }

// :lang(zh-CN) & {
// font-family: 'Proxima Nova Fin', 'Microsoft YaHei', '微软雅黑', 'STXihei', '华文细黑', Simsun, '宋体',
// Arial;
// }

// :lang(zh-Hant) & {
// font-family: 'Proxima Nova Fin', 'Heiti TC', '黑體-繁', 'Microsoft JhengHei', '微軟正黑體', Pmingliu,
// '新細明體', Arial;
// pre {
// font-family: 'Heiti TC', '黑體-繁', Pmingliu, '新細明體', monospace, Arial;
// }
// }

// TODO: Update scrollbar
// &::-webkit-scrollbar-button {
// display: block;
// }

// &::-webkit-scrollbar {
// width: @scrollbar-size-large;
// height: @scrollbar-size-large;
// }

// .scrollbar-thumb(12px);
}

0 comments on commit 09b9584

Please sign in to comment.