Skip to content

Commit

Permalink
feat: Lighten dark mode and use slate instead of gray (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
evadecker authored Jan 22, 2025
1 parent 2eefe42 commit 7281014
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/components/app/AppSidebar/AppSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const AppSidebar = ({ children }: AppSidebarProps) => {

return (
<div className="w-72 lg:w-80 xl:w-[22rem] flex flex-col shrink-0 sticky top-0 h-screen overflow-y-auto border-r border-gray-dim">
<div className="app-padding h-header flex gap-2 items-center shrink-0 sticky top-0 bg-gray-app z-20">
<div className="app-padding h-header flex gap-2 items-center shrink-0 sticky top-0 bg-gray-1 dark:bg-graydark-2 z-20">
<Link href={{ to: "/" }} className="p-1 -m-1">
<Logo className="h-5 lg:h-[1.35rem]" />
</Link>
Expand All @@ -58,7 +58,7 @@ export const AppSidebar = ({ children }: AppSidebarProps) => {
</div>
</div>
<div className="app-padding flex-1">{children}</div>
<div className="app-padding h-header -ml-3 shrink-0 flex items-center sticky bottom-0 bg-gray-app">
<div className="app-padding h-header -ml-3 shrink-0 flex items-center sticky bottom-0 bg-gray-1 dark:bg-graydark-2">
<Authenticated>
<MenuTrigger>
<Button
Expand Down
2 changes: 1 addition & 1 deletion src/components/app/PageHeader/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const PageHeader = ({
return (
<header
className={twMerge(
"h-header flex bg-gray-app shrink-0 items-center justify-between gap-6 text-gray-normal sticky top-0 z-20",
"h-header flex bg-gray-1 dark:bg-graydark-2 shrink-0 items-center justify-between gap-6 text-gray-normal sticky top-0 z-20",
className,
)}
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Nav/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface NavItemProps extends LinkProps {

const navItemStyles = tv({
extend: focusRing,
base: "rounded-md no-underline flex items-center text-sm lg:text-base gap-1.5 hover:bg-gray-3/50 dark:hover:bg-graydark-3/50 h-8 lg:h-9 px-2 -mx-2 aria-current:font-semibold aria-current:text-gray-normal",
base: "rounded-md no-underline flex items-center text-sm lg:text-base gap-1.5 hover:bg-gray-3 dark:hover:bg-graydark-3 h-8 lg:h-9 px-2 -mx-2 aria-current:font-semibold aria-current:text-gray-normal",
variants: {
isActive: {
true: "bg-gray-3 hover:bg-gray-3 dark:bg-graydark-3 dark:hover:bg-graydark-3",
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function Tabs(props: TabsProps) {
}

const tabListStyles = tv({
base: "grid bg-gray-3 dark:bg-gray-app rounded-lg p-1",
base: "grid bg-gray-3 dark:bg-graydark-3 rounded-lg p-1",
variants: {
orientation: {
horizontal: "grid-flow-col auto-cols-fr",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const EditQuestTimeRequiredModal = ({

return (
<Modal isOpen={open}>
<Form onSubmit={handleSubmit}>
<Form onSubmit={handleSubmit} className="w-full">
<ModalHeader title="Edit time required" />
{timeInput && (
<TimeRequiredInput timeRequired={timeInput} onChange={setTimeInput} />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/_authenticated/_home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function IndexRoute() {

return (
<AppSidebar>
<div className="flex items-center mb-4 bg-gray-app z-10">
<div className="flex items-center mb-4 z-10">
<ProgressBar
label="Quest progress"
value={completedQuests}
Expand Down
4 changes: 2 additions & 2 deletions src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@apply text-base lg:text-lg;

a {
@apply underline underline-offset-2 decoration-gray-9 dark:decoration-graydark-9 hover:decoration-inherit;
@apply underline underline-offset-2 hover:decoration-inherit;
}

*:not(li) + * {
Expand Down Expand Up @@ -108,8 +108,8 @@
}

body {
@apply bg-gray-app;
color-scheme: dark light;
@apply bg-gray-1 dark:bg-graydark-2;
}

body,
Expand Down
7 changes: 6 additions & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ export default {
tailwindcssReactAriaComponents,
tailwindcssAnimate,
tailwindcssAriaAttributes,
tailwindcssRadixColors,
tailwindcssRadixColors({
exclude: ["mauve", "sage", "olive", "sand"],
aliases: {
slate: "gray",
},
}),
tailwindcssContainerQueries,
],
} satisfies Config;

0 comments on commit 7281014

Please sign in to comment.