Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated dark and light theme #489

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions apps/frontend/src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@
--font-display: "Ranade", sans-serif;
--font-sans: "Satoshi", sans-serif;
--font-mono: "JetBrains Mono", monospace;

/* Theme-specific Variables */
/* Light Theme */
--light-background-color: rgb(255 248 247);
--light-text-color: rgb(6 3 3);

/* Dark Theme */
--dark-background-color: rgb(24 18 17);
--dark-text-color: rgb(237 224 222);
}

@media screen and (max-device-width: 480px) {
Expand All @@ -61,8 +70,8 @@
}

.dark body {
background-color: var(--color-black);
color: var(--color-white);
background-color: var(--dark-background-color);
color: var(--dark-text-color);
}

html {
Expand All @@ -75,6 +84,8 @@ button {

body {
font-family: var(--font-sans);
background-color: var(--light-background-color);
color: var(--light-text-color);
}

body > :is(header, footer) {
Expand Down
4 changes: 2 additions & 2 deletions apps/frontend/src/utils/get-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const getMDLinks = (items: Tokens.ListItem[]): Tokens.Link[] =>
item.tokens
.filter(isTextWithTokens)
.flatMap((t: any) => t.tokens)
.filter(isLink),
.filter(isLink)
);

export function getTree(text: string, prefix: string) {
Expand Down Expand Up @@ -123,5 +123,5 @@ export function getTree(text: string, prefix: string) {
}

export const getTreeEntries = (
obj: Record<string, unknown> | null | undefined,
obj: Record<string, unknown> | null | undefined
) => (isTree(obj) ? obj?.entries : null);
Loading