Skip to content

Commit

Permalink
feat: got the hero h1 up
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Feb 20, 2024
1 parent b5a3d4e commit d32b43d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/HeroHeading.css.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { style } from "@vanilla-extract/css";

import { vars } from "./styles.css";

export const root = style({
border: "solid 1px",
fontSize: vars.sizes.hero,
textAlign: "right",
});
9 changes: 9 additions & 0 deletions app/raw.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;600;700;900&display=swap");

body,
html {
font-family: "League Spartan", monospace;
font-smooth: smooth;
-webkit-font-smoothing: antialiased;
overflow: overlay;
}
4 changes: 3 additions & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ import { Links, LiveReload, Meta, Outlet, Scripts } from "@remix-run/react";
import clsx from "clsx";

import { HeroHeading } from "./HeroHeading.js";
import raw from "./raw.css";
import * as styles from "./root.css";
import { themeClass } from "./styles.css.js";

export const links: LinksFunction = () => [
{ href: raw, rel: "stylesheet" },
...(cssBundleHref ? [{ href: cssBundleHref, rel: "stylesheet" }] : []),
];

Expand All @@ -21,7 +23,7 @@ export default function App() {
<Links />
</head>
<body>
<HeroHeading>Hello world!</HeroHeading>
<HeroHeading>Boston TypeScript</HeroHeading>
<Outlet />

<Scripts />
Expand Down
3 changes: 3 additions & 0 deletions app/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ export const [themeClass, vars] = createTheme({
background: "#3178c6",
foreground: "#ffffff",
},
sizes: {
hero: "10rem",
},
});

0 comments on commit d32b43d

Please sign in to comment.