Fifties
Publisher: fiftiesThemes in package: 1
Dark color theme inspired by Gruvbox and Darcula
Dark color theme inspired by Gruvbox and Darcula
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 |
|---|---|---|
| support.function.builtin | #90bb8f | — |
| comment, punctuation.definition.comment | #757166 | italic |
| constant.language, support.constant, constant.character, constant.escape, keyword.other.unit | #e992a8 | — |
| entity.name.function | #FACA78 | — |
| keyword, storage.type, keyword.operator.new, punctuation.section.embedded.begin, punctuation.section.embedded.end | #db7c45 | |
| entity.other.inherited-class, meta.embedded.expression, storage.modifier, keyword.operator | #c5c0af | — |
| constant.numeric | #7fb3bd | — |
| variable.parameter.function.language.special.self, variable.language.special.self, variable.language.special.cls, variable.language.this | #aa8c4a | — |
| string, constant.other.symbol, constant.other.key, markup.heading, markup.inserted.git_gutter | #739B89 | — |
| variable.language.super | #90bb8f | — |
| support.type | #a0613d | italic |
| entity.name.tag support.class | #90bb8f | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter, punctuation.definition.tag | #a0613d | — |
| meta.tag.attributes, entity.other.attribute-name | #aa8c4a | — |
| source.c storage.modifier | #db7c45 | |
| source.c entity.name.function.preprocessor, source.cpp entity.name.function.preprocessor | #90bb8f | — |
| source.c storage.type.built-in, source.cpp storage.type.built-in, source.c storage.type.built-in.primitive, source.cpp storage.type.built-in.primitive | #a0613d | italic |
| source.css keyword.operator.logical | #db7c45 | — |
| source.css entity.name.tag | #90bb8f | — |
| source.css entity.other.attribute-name.id, source.css entity.other.attribute-name.class | #90bb8f | — |
| source.css support.type.property-name, source.css meta.property-name support.type | #a0613d | |
| source.css keyword.other.unit, source.css meta.property-value support.constant, source.css support.constant.media | #c5c0af | — |
| source.css support.function | #FACA78 | — |
| source.css entity.other.attribute-name.pseudo-class | #aa8c4a | — |
| source.css constant.other.color.rgb-value.hex | #7fb3bd | — |
| source.go support.function | #FACA78 | — |
| source.go storage.type | #a0613d | — |
| source.ini entity.name.section.group-title | #90bb8f | — |
| source.ini keyword.other | #a0613d | — |
| source.js meta.method.declaration storage.type | #FACA78 | |
| source.js storage.modifier, source.js meta.method.declaration meta.var.expr storage.type.js, source.js meta.object-literal.key meta.brace, source.js punctuation.definition.template-expression.begin, source.js punctuation.definition.template-expression.end, source.js keyword.operator.expression.delete, source.js keyword.operator.expression.of, source.js keyword.operator.expression.in, source.js keyword.operator.expression.instanceof, source.js keyword.operator.expression.typeof | #db7c45 | |
| source.js storage.type.function.arrow, source.js punctuation.separator.key-value, source.js constant.language.import-export-all, source.js meta.object-literal.key variable, source.js meta.object-literal.key punctuation, source.js meta.template.expression variable, source.js meta.template.expression punctuation, source.js meta.template.expression meta | #c5c0af | — |
| source.js meta.object-literal.key, source.js meta.object-literal.key string, source.js meta.object-literal.key punctuation.definition.string | #a0613d | — |
| source.js meta.template.expression string punctuation.definition.string | #739B89 | — |
| source.json support.type.property-name | — | |
| text.html.markdown markup.bold | — | bold |
| text.html.markdown markup.italic markup.bold, text.html.markdown markup.bold markup.italic | — | bold italic |
| text.html.markdown markup.fenced_code punctuation.definition.markdown, text.html.markdown fenced_code.block.language.markdown | #757166 | — |
| text.html.markdown markup.heading | #a0613d | — |
| text.html.markdown markup.italic | — | italic |
| text.html.markdown meta.link | #7fb3bd | — |
| text.html.markdown meta.link string.other.link.title, text.html.markdown meta.link punctuation.definition.string.begin, text.html.markdown meta.link punctuation.definition.string.end | #FACA78 | — |
| text.html.markdown markup.quote | #757166 | — |
| source.python constant.language.python, source.python keyword.operator.logical, source.python constant.character.format.placeholder.other | #db7c45 | |
| source.python support.type, source.python meta.item-access.arguments support.type, source.python meta.function.decorator meta.function-call.arguments support.type | #a0613d | |
| source.python support.function.builtin, source.python meta.function-call.python support.type, source.python meta.item-access meta.function-call.python support.type | #90bb8f | |
| source.python meta.function.decorator support.type, source.python meta.function.decorator entity.name.function.decorator | #73A1B0 | |
| source.python string.quoted.docstring, source.python string.quoted.docstring keyword.control.flow | #739B89 | italic |
| source.python support.type.exception | #90bb8f | |
| source.python storage.modifier.declaration | #db7c45 | |
| source.python support.function.magic, source.python support.variable.magic | #e992a8 | — |
| source.python variable.parameter.function-call | #b14419 | italic |
| source.python string, source.python meta.fstring.python storage.type, source.python meta.fstring.python constant.character.escape.python | #739B89 | — |
| source.toml entity.other.attribute-name | #c5c0af | — |
| source.toml keyword.key | #a0613d | |
| source.toml constant.other.boolean | #e992a8 | |
| source.yaml entity.name.tag, source.yaml constant.language | #db7c45 | |
| source.yaml string.unquoted.plain | #c5c0af | — |
| source.svelte support.class.component.svelte | #90bb8f | — |
| source.tsx storage.type.function.arrow | #c5c0af | — |
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}!`;
}