Files
radicle-explorer/index.html
T
Rūdolfs Ošiņš 591c19a256 Refactor typography styles
- Move all global typography styles to its own file. This makes it
  easier to find all the typography related definitions for newcomers.

- Prefix all typography related global CSS classes with a unique prefix
  `.txt-`. This allows us to grep the codebase and see exactly where
  they are applied. Another benefit of this convention is that it helps
  to avoid accidentally mixing global and local styles. Having global
  CSS classes that sometimes overlap with component CSS classes makes it
  very hard to reason about the resulting visuals and making changes
  unpredictable.

- Introduce CSS variables for standardised typography sizes and apply
  them to the whole codebase consistently. This way we can adjust the
  size in one place and it will be applied everywhere.

- Avoid using predefined HTML tags which might have differing styling
  from browser to browser, e.g. `<h1>`, `<strong>`. We should stick to
  applying styling either by adding a specific global CSS class or using
  the predefined CSS variables, this way we can be sure that the styles
  won't be overridden by browser defaults.

- Have a minimal set of modifiers `.txt-monospace` and `.txt-bold` and
  apply them consistently. Since `.txt-monospace` is defined via a CSS
  variable, we'll be able to switch out fonts via a user setting in the
  future.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-09 14:50:26 +02:00

51 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="name" content="Radicle Interface" />
<meta name="description" content="Interact with Radicle" />
<meta name="theme-color" content="#0e171f" />
<meta property="og:title" content="Radicle Interface" />
<meta property="og:description" content="Interact with Radicle." />
<meta property="og:url" content="https://app.radicle.xyz" />
<meta
property="og:image"
content="https://app.radicle.xyz/images/app.png" />
<meta property="og:image:width" content="240" />
<meta property="og:image:height" content="240" />
<meta property="og:type" content="website" />
<link rel="stylesheet" type="text/css" href="/typography.css" />
<link rel="stylesheet" type="text/css" href="/index.css" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="icon" href="/favicon.ico" />
<link
rel="preload"
href="/fonts/Inter-Regular.woff"
as="font"
type="font/woff"
crossorigin="anonymous" />
<link
rel="preload"
href="/fonts/Inter-SemiBold.otf"
as="font"
type="font/otf"
crossorigin="anonymous" />
<script type="text/javascript">
// Workaround to get `global` to work in old-school transitive
// dependencies.
window.global = window;
</script>
<script type="module">
// Make global 'Buffer' available to legacy modules.
import { Buffer } from "buffer";
window.Buffer = Buffer;
</script>
<title>Radicle Interface</title>
</head>
<body>
<script type="module" src="/src/index.ts"></script>
</body>
</html>