DevFoundry Umber
Publisher: ovcharovcoderThemes in package: 1
A warm dark theme with amber accents and earthy tones, designed for comfortable extended coding sessions at night.
A warm dark theme with amber accents and earthy tones, designed for comfortable extended coding sessions at night.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, punctuation.definition.comment | #7A7166 | — |
| string | #8FBF7A | — |
| string.regexp, constant.other.character-class.regexp, keyword.control.anchor.regexp | #D97C85 | — |
| constant.numeric | #B48EAD | — |
| keyword, storage, keyword.control | #C88A3A | — |
| entity.name.function, meta.function-call, support.function | #7FB4CA | — |
| variable | #C9D1D9 | — |
| storage.type, entity.name.type, entity.name.class, support.class | #D7BA7D | — |
| meta.tag.styled-components, entity.name.tag.styled, meta.function-call.styled | #B48EAD | bold |
| meta.property.css-in-js, support.type.property-name.css-in-js | #9ECD7A | — |
| meta.property-value.css-in-js, constant.other.css-in-js | #FFB454 | — |
| entity.name.function.nextjs, entity.name.function.api.nextjs | #66CCFF | — |
| support.type.nextjs.metadata, entity.name.tag.metadata.nextjs | #B48EAD | — |
| entity.name.function.router.nextjs, support.function.router.nextjs | #C88A3A | italic |
| entity.name.function.composable.vue, support.function.composable.vue, meta.composable.vue | #66CCFF | italic |
| support.function.reactive.vue, support.function.ref.vue, support.function.computed.vue | #B48EAD | — |
| support.function.lifecycle.vue, entity.name.function.hook.vue | #9ECD7A | — |
| entity.name.lifetime.rust, storage.type.lifetime.rust | #B48EAD | italic |
| entity.name.function.macro.rust, keyword.control.macro.rust | #C88A3A | bold |
| meta.annotation.rust, punctuation.definition.annotation.rust | #56B6C2 | — |
| variable.parameter.receiver.go, variable.language.receiver.go | #C88A3A | italic |
| storage.type.interface.go, entity.name.type.interface.go | #56B6C2 | bold |
| keyword.operator.channel.go, storage.type.channel.go | #9ECD7A | — |
| meta.typehint.python, support.type.python, meta.annotation.python | #56B6C2 | italic |
| keyword.control.async.python, keyword.control.await.python | #C88A3A | bold italic |
| meta.function.decorator.python, entity.name.function.decorator.python | #B48EAD | — |
| keyword.other.DDL.sql, keyword.other.DML.sql, keyword.other.DCL.sql | #C88A3A | bold |
| support.function.sql, entity.name.function.sql | #66CCFF | — |
| entity.name.type.table.sql, entity.name.type.view.sql | #E5C07B | — |
| entity.name.function.hook.react, support.function.hook.react, meta.hook.react | #66CCFF | bold |
| entity.name.function.customhook.react, meta.customhook.react | #9ECD7A | italic |
| keyword.other.graphql.operation, entity.name.type.graphql.operation | #B48EAD | — |
| meta.field.graphql, entity.name.field.graphql | #9ECD7A | — |
| entity.name.fragment.graphql, meta.fragment.graphql | #66CCFF | — |
| entity.name.type.test.describe, entity.name.type.suite, meta.test.describe | #E5C07B | bold |
| entity.name.type.test.it, entity.name.type.test.spec, meta.test.it | #66CCFF | — |
| support.function.expect, support.function.assert, keyword.control.test.assertion | #C88A3A | — |
| entity.name.tag | #C06C75 | — |
| entity.other.attribute-name | #C88A3A | — |
| entity.name.tag.component.jsx, entity.name.tag.component.tsx, support.class.component.jsx | #66CCFF | bold |
| entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #C88A3A | — |
| support.type.property-name.css, meta.property-name.css | #C5CDD5 | — |
| support.constant.property-value.css, constant.other.color.css | #FFB454 | — |
| meta.type.annotation.ts, meta.type.parameters.ts | #56B6C2 | italic |
| entity.name.interface.ts, storage.type.interface.ts | #56B6C2 | bold |
| storage.type.enum.ts, entity.name.enum.ts | #B48EAD | bold |
| variable.language.this.js, variable.language.this.ts | #C88A3A | bold |
| keyword.control.async.js, keyword.control.await.js | #C88A3A | bold italic |
| support.type.property-name.json | #D97C85 | — |
| markup.heading | #66CCFF | — |
| markup.underline.link.markdown | #9ECD7A | — |
| keyword.other.dockerfile | #66CCFF | — |
| markup.inserted.diff | #9ECD7A | — |
| markup.deleted.diff | #D97C85 | — |
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}