diff --git a/apps/remix/app/app.css b/apps/remix/app/app.css index 359a10904..9c220de9c 100644 --- a/apps/remix/app/app.css +++ b/apps/remix/app/app.css @@ -3,7 +3,7 @@ /* Inter Variable Fonts */ @font-face { font-family: "Inter"; - src: url("/fonts/inter-variablefont_opsz,wght.ttf") format("truetype-variations"); + src: url("/fonts/inter-variablefont_opsz,wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; @@ -12,7 +12,7 @@ /* Inter Italic Variable Fonts */ @font-face { font-family: "Inter"; - src: url("/fonts/inter-italic-variablefont_opsz,wght.ttf") format("truetype-variations"); + src: url("/fonts/inter-italic-variablefont_opsz,wght.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; @@ -21,7 +21,7 @@ /* Caveat Variable Font */ @font-face { font-family: "Caveat"; - src: url("/fonts/caveat-variablefont_wght.ttf") format("truetype-variations"); + src: url("/fonts/caveat-variablefont_wght.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; @@ -29,8 +29,8 @@ @font-face { font-family: "Noto Sans"; - src: url("/fonts/noto-sans.ttf") format("truetype-variations"); - font-weight: 100 900; + src: url("/fonts/noto-sans.woff2") format("woff2"); + font-weight: 400; font-style: normal; font-display: swap; } @@ -38,7 +38,7 @@ /* Korean noto sans */ @font-face { font-family: "Noto Sans Korean"; - src: url("/fonts/noto-sans-korean.ttf") format("truetype-variations"); + src: url("/fonts/noto-sans-korean.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; @@ -47,7 +47,7 @@ /* Japanese noto sans */ @font-face { font-family: "Noto Sans Japanese"; - src: url("/fonts/noto-sans-japanese.ttf") format("truetype-variations"); + src: url("/fonts/noto-sans-japanese.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; @@ -56,13 +56,19 @@ /* Chinese noto sans */ @font-face { font-family: "Noto Sans Chinese"; - src: url("/fonts/noto-sans-chinese.ttf") format("truetype-variations"); - font-weight: 100 900; + src: url("/fonts/noto-sans-chinese.woff2") format("woff2"); + font-weight: 400; font-style: normal; font-display: swap; } @layer base { + html { + @apply antialiased; + font-optical-sizing: auto; + font-synthesis: none; + } + :root { --font-sans: "Inter"; --font-signature: "Caveat"; diff --git a/apps/remix/app/components/general/app-header.tsx b/apps/remix/app/components/general/app-header.tsx index 22f2278a2..21fc439e3 100644 --- a/apps/remix/app/components/general/app-header.tsx +++ b/apps/remix/app/components/general/app-header.tsx @@ -71,7 +71,7 @@ export const Header = ({ className, ...props }: HeaderProps) => { {unreadCountData && unreadCountData.count > 0 && ( - + {unreadCountData.count > 99 ? '99+' : unreadCountData.count} )} diff --git a/apps/remix/app/components/general/app-nav-mobile.tsx b/apps/remix/app/components/general/app-nav-mobile.tsx index 7530ec400..73300e7d6 100644 --- a/apps/remix/app/components/general/app-nav-mobile.tsx +++ b/apps/remix/app/components/general/app-nav-mobile.tsx @@ -94,7 +94,7 @@ export const AppNavMobile = ({ isMenuOpen, onMenuOpenChange }: AppNavMobileProps > {text} {href === '/inbox' && unreadCountData && unreadCountData.count > 0 && ( - + {unreadCountData.count > 99 ? '99+' : unreadCountData.count} )} diff --git a/apps/remix/app/components/general/metric-card.tsx b/apps/remix/app/components/general/metric-card.tsx index 14ae66035..42b63d368 100644 --- a/apps/remix/app/components/general/metric-card.tsx +++ b/apps/remix/app/components/general/metric-card.tsx @@ -29,7 +29,7 @@ export const CardMetric = ({ icon: Icon, title, value, className, children }: Ca {children || ( -

+

{typeof value === 'number' ? value.toLocaleString('en-US') : value}

)} diff --git a/apps/remix/app/components/general/settings-header.tsx b/apps/remix/app/components/general/settings-header.tsx index 4023326aa..64347ed7e 100644 --- a/apps/remix/app/components/general/settings-header.tsx +++ b/apps/remix/app/components/general/settings-header.tsx @@ -13,10 +13,12 @@ export const SettingsHeader = ({ children, title, subtitle, className, hideDivid return ( <>
-
-

{title}

+
+

{title}

-

{subtitle}

+

+ {subtitle} +

{children} diff --git a/apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents._index.tsx b/apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents._index.tsx index 854283075..4bcc402ed 100644 --- a/apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents._index.tsx +++ b/apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents._index.tsx @@ -143,9 +143,9 @@ export default function DocumentsPage() { {team.name.slice(0, 1)} -

+

Documents -

+
@@ -172,7 +172,7 @@ export default function DocumentsPage() { {value !== ExtendedDocumentStatus.ALL && ( - + {stats[value] >= STATS_COUNT_CAP ? `${STATS_COUNT_CAP.toLocaleString()}+` : stats[value]} )} diff --git a/apps/remix/app/routes/_authenticated+/t.$teamUrl+/templates._index.tsx b/apps/remix/app/routes/_authenticated+/t.$teamUrl+/templates._index.tsx index 9dff4974c..1aca567b1 100644 --- a/apps/remix/app/routes/_authenticated+/t.$teamUrl+/templates._index.tsx +++ b/apps/remix/app/routes/_authenticated+/t.$teamUrl+/templates._index.tsx @@ -101,7 +101,7 @@ export default function TemplatesPage() { {team.name.slice(0, 1)} -

+

Templates

@@ -131,15 +131,15 @@ export default function TemplatesPage() {
{activeQuery.data && activeQuery.data.count === 0 ? ( -
- +
+
-

+

We're all empty

-

+

{isOrgView ? ( No organisation templates are shared with your team yet. ) : ( diff --git a/apps/remix/public/fonts/caveat-variablefont_wght.woff2 b/apps/remix/public/fonts/caveat-variablefont_wght.woff2 new file mode 100644 index 000000000..097d3a343 Binary files /dev/null and b/apps/remix/public/fonts/caveat-variablefont_wght.woff2 differ diff --git a/apps/remix/public/fonts/inter-italic-variablefont_opsz,wght.woff2 b/apps/remix/public/fonts/inter-italic-variablefont_opsz,wght.woff2 new file mode 100644 index 000000000..5e7a8a381 Binary files /dev/null and b/apps/remix/public/fonts/inter-italic-variablefont_opsz,wght.woff2 differ diff --git a/apps/remix/public/fonts/inter-variablefont_opsz,wght.woff2 b/apps/remix/public/fonts/inter-variablefont_opsz,wght.woff2 new file mode 100644 index 000000000..196f04792 Binary files /dev/null and b/apps/remix/public/fonts/inter-variablefont_opsz,wght.woff2 differ diff --git a/apps/remix/public/fonts/noto-sans-chinese.woff2 b/apps/remix/public/fonts/noto-sans-chinese.woff2 new file mode 100644 index 000000000..6568e225f Binary files /dev/null and b/apps/remix/public/fonts/noto-sans-chinese.woff2 differ diff --git a/apps/remix/public/fonts/noto-sans-japanese.woff2 b/apps/remix/public/fonts/noto-sans-japanese.woff2 new file mode 100644 index 000000000..0b949eb45 Binary files /dev/null and b/apps/remix/public/fonts/noto-sans-japanese.woff2 differ diff --git a/apps/remix/public/fonts/noto-sans-korean.woff2 b/apps/remix/public/fonts/noto-sans-korean.woff2 new file mode 100644 index 000000000..8beee7605 Binary files /dev/null and b/apps/remix/public/fonts/noto-sans-korean.woff2 differ diff --git a/apps/remix/public/fonts/noto-sans.woff2 b/apps/remix/public/fonts/noto-sans.woff2 new file mode 100644 index 000000000..16843843f Binary files /dev/null and b/apps/remix/public/fonts/noto-sans.woff2 differ diff --git a/packages/ui/primitives/button.tsx b/packages/ui/primitives/button.tsx index 3cf363568..c657710a0 100644 --- a/packages/ui/primitives/button.tsx +++ b/packages/ui/primitives/button.tsx @@ -7,7 +7,7 @@ import * as React from 'react'; import { cn } from '../lib/utils'; const buttonVariants = cva( - 'inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background', + 'inline-flex select-none items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background', { variants: { variant: { @@ -17,7 +17,7 @@ const buttonVariants = cva( outline: 'border border-input hover:bg-accent hover:text-accent-foreground', secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80', ghost: 'hover:bg-accent hover:text-accent-foreground', - link: 'underline-offset-4 hover:underline text-primary', + link: 'underline-offset-4 hover:underline text-primary [text-decoration-skip-ink:auto] [text-decoration-thickness:from-font] [text-underline-position:from-font]', none: '', }, size: { diff --git a/packages/ui/primitives/data-table-pagination.tsx b/packages/ui/primitives/data-table-pagination.tsx index 486587c76..b209c918c 100644 --- a/packages/ui/primitives/data-table-pagination.tsx +++ b/packages/ui/primitives/data-table-pagination.tsx @@ -22,7 +22,7 @@ export function DataTablePagination({ additionalInformation = 'VisibleCount', }: DataTablePaginationProps) { return ( -

+
{match(additionalInformation) .with('SelectedCount', () => ( diff --git a/packages/ui/primitives/textarea.tsx b/packages/ui/primitives/textarea.tsx index 5bf1f7149..e46cf18f8 100644 --- a/packages/ui/primitives/textarea.tsx +++ b/packages/ui/primitives/textarea.tsx @@ -8,7 +8,7 @@ const Textarea = React.forwardRef(({ classNa return (