Skip to content

Commit

Permalink
Adjust theme colors
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgraham committed Mar 4, 2024
1 parent f63a55e commit 61a76e0
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 21 deletions.
10 changes: 3 additions & 7 deletions src/components/Project.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@ const Project = ({ className, project }) => (
<h1>{project.title}</h1>
</section>
<section>
{project.description && (
<p className="text-foreground-secondary">{project.description}</p>
)}
{project.description && <p>{project.description}</p>}
{project.description_long &&
project.description_long.map((description) => (
<p className="text-foreground-secondary" key={description}>
{description}
</p>
<p key={description}>{description}</p>
))}
</section>
{project.details && (
Expand Down Expand Up @@ -81,7 +77,7 @@ const Project = ({ className, project }) => (
{section.paragraphs &&
section.paragraphs.map((paragraph, paragraphIndex) => (
<p
className="text-foreground-secondary font-sm"
className="font-sm"
key={`section-${index}-paragraph-${paragraphIndex}`}
>
{paragraph}
Expand Down
4 changes: 1 addition & 3 deletions src/components/Slide.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ const Slide = ({ className, slide }) => {
<div className="slide__text-container">
<p className="eyebrow">{slide.date}</p>
<h1 className="h3">{slide.title}</h1>
<p className="text-foreground-secondary">
{slide.description_short || slide.description}
</p>
<p>{slide.description_short || slide.description}</p>
<Link ElementType={GatsbyLink} to={projectPath} unstyled>
<Button size={Button.size.small}>More Details</Button>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Home = () => {
<article className="container-md">
<b className="h5 padding-left-sm">Hello, my name is</b>
<h1 className="margin-top-sm">Adam Graham</h1>
<p className="text-foreground-secondary font-lg margin-bottom-1em">
<p className="font-lg margin-bottom-1em">
Adam is a professional software engineer and game developer with 10+
years of experience. He founded the indie game studio{' '}
<Link external to="https://zigurous.com/">
Expand Down
13 changes: 9 additions & 4 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@ html, body {
}
}

.btn, .btn--default {
--button-color-primary: var(--color-surface-6dp);
--button-color-primary-hover: var(--color-surface-24dp);
--button-color-secondary: var(--color-on-surface-high);
[data-theme="dark"],
[data-theme="dark"] * {
--color-foreground: #c9d1d9;
--color-foreground-muted: #8b949e;
--color-default: #262a30;
--color-default-emphasis: #31363c;
--color-default-subtle: #2d3137;
--color-on-default: #c9d1d9;
--rgb-default: 38, 42, 48;
}
8 changes: 4 additions & 4 deletions src/styles/menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
height: 100vh;
transform: translateY(calc(100vh - 80px));
transition: transform 400ms;
background-color: var(--color-surface-2dp);
background-color: var(--color-surface-2);
pointer-events: all;
}

Expand Down Expand Up @@ -49,7 +49,7 @@
}

.app-menu .logo:hover {
color: white;
color: var(--color-white, white);
}

.app-menu .navbar {
Expand Down Expand Up @@ -79,7 +79,7 @@
}

.app-menu .navbar li a.active:hover {
background-color: rgba(var(--rgb-on-background),var(--opacity-4dp));
background-color: var(--color-default-subtle);
}

.app-menu__body {
Expand Down Expand Up @@ -141,7 +141,7 @@
}

.app-menu__nav-list a:hover {
color: white;
color: var(--color-white, white);
}

@media (max-width: 576px) {
Expand Down
2 changes: 1 addition & 1 deletion src/styles/project.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
.project em {
font-style: normal;
letter-spacing: -0.5px;
color: var(--color-on-surface-medium);
color: var(--color-foreground-muted);
}

.project img {
Expand Down
2 changes: 1 addition & 1 deletion src/styles/slide.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
.slide__image {
display: inline-flex;
max-height: 100%;
border: 12px solid var(--color-surface-1dp);
border: 12px solid var(--color-surface-2);
border-radius: 0.25rem;
box-shadow: 0 0 1rem rgba(0, 0, 0, 10%);
background-color: var(--color-background);
Expand Down

0 comments on commit 61a76e0

Please sign in to comment.