dotnetthemevs
Publisher: Hamed HeydarianThemes in package: 17
A beautifully curated collection of modern, elegant and developer-friendly themes. Featuring Persian Gulf inspired colors and more.
A beautifully curated collection of modern, elegant and developer-friendly themes. Featuring Persian Gulf inspired colors and more.
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 | #5C6773 | italic |
| string, constant.other.symbol | #C2D94C | — |
| string.regexp, constant.character, constant.other | #95E6CB | — |
| constant.other.color | #F29668 | — |
| constant.numeric | #9DD2BB | — |
| constant.numeric.css | #F07178 | — |
| constant.language | #F29668 | — |
| constant.language.boolean | #D4BFFF | — |
| variable | #DADBC0 | — |
| variable.other.constant | #D4BFFF | — |
| variable.member | #F28779 | — |
| variable.language | #FFA759 | italic |
| variable.language.this | #F28779 | italic |
| support.variable | #FFA759 | — |
| storage | #FFA759 | — |
| storage.type | #FFA759 | italic |
| storage.modifier.async | #F07178 | italic |
| storage.type.class | #F07178 | italic |
| keyword | #FFA759 | — |
| keyword.control.flow | #F07178 | — |
| keyword.control.loop | #F07178 | — |
| keyword.control.conditional | #F07178 | — |
| keyword.control.trycatch | #F07178 | — |
| keyword.operator | #FF6188 | — |
| keyword.operator.new | #F07178 | — |
| punctuation.separator, punctuation.terminator | #CBCCC6B3 | — |
| punctuation.section | #DADBC0 | — |
| punctuation.accessor | #F29E74 | — |
| source.java storage.type, source.haskell storage.type, source.c storage.type | #95E6CB | — |
| entity.other.inherited-class | #FF8F40 | — |
| storage.type.function | #FFA759 | — |
| storage.type.function.arrow | #F07178 | |
| source.java storage.type.primitive | #95E6CB | — |
| variable.parameter, meta.parameter | #D4BFFF | italic |
| variable.function, variable.annotation, meta.function-call.generic, support.function.go | #FFCC66 | — |
| support.function, support.macro | #FFCC66 | — |
| support.function.console | #FFB454 | — |
| entity.name.import, entity.name.package | #BAE67E | — |
| entity.name | #F28779 | — |
| entity.name.function | #FFCC66 | — |
| entity.name.class | #FF8F40 | — |
| entity.name.tag, meta.tag.sgml | #FC4085 | — |
| punctuation.definition.tag.end, punctuation.definition.tag.begin, punctuation.definition.tag | #B3B1AD | — |
| text.html.derivative | #DADBC0 | — |
| entity.other.attribute-name | #FFB454 | italic |
| support.constant | #F28779 | italic |
| support.type, support.class, source.go storage.type | #F28779 | — |
| support.class.component | #9CD1BB | — |
| support.class.dart | #9CD1BB | — |
| support.class.promise | #FFA759 | — |
| meta.decorator variable.other, meta.decorator punctuation.decorator, storage.type.annotation | #DADBC0 | — |
| invalid | #FF3333 | — |
| meta.diff, meta.diff.header | #C594C5 | — |
| source.ruby variable.other.readwrite | #FFD580 | — |
| source.css entity.name.tag, source.sass entity.name.tag, source.scss entity.name.tag, source.less entity.name.tag, source.stylus entity.name.tag | #95E6CB | — |
| source.css support.type, source.sass support.type, source.scss support.type, source.less support.type, source.stylus support.type | #5C6773 | — |
| support.type.property-name | #BAE67E | |
| entity.other.attribute-name.class.css | #BAE67E | |
| entity.other.attribute-name.id.css | #FFCC66 | |
| support.type.property-name.css | #DADBC0 | |
| constant.numeric.line-number.find-in-files - match | #5C6773 | — |
| constant.numeric.line-number.match | #FFA759 | — |
| entity.name.filename.find-in-files | #BAE67E | — |
| message.error | #FF3333 | — |
| markup.heading, markup.heading entity.name | #BAE67E | bold |
| markup.underline.link, string.other.link | #95E6CB | — |
| markup.italic | #F28779 | italic |
| markup.bold | #F28779 | bold |
| markup.italic markup.bold, markup.bold markup.italic | — | bold italic |
| markup.raw | — | — |
| markup.raw.inline | — | — |
| meta.separator | #5C6773 | bold |
| markup.quote | #95E6CB | italic |
| markup.list punctuation.definition.list.begin | #FFD580 | — |
| markup.inserted | #A6CC70 | — |
| markup.changed | #77A8D9 | — |
| markup.deleted | #F27983 | — |
| markup.strike | #FFE6B3 | — |
| markup.table | #5CCFE6 | — |
| text.html.markdown markup.inline.raw | #F29E74 | — |
| text.html.markdown meta.dummy.line-break | #5C6773 | — |
| punctuation.definition.markdown | #5C6773 | — |
| string.json support.type.property-name.json | #F29E74 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #E6B450 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #F2AE49 | — |
| constant.language.json | #D4BFFF | — |
| constant.numeric.json | #F27983 | — |
| string.unquoted, constant.other.object.key | #E6B450 | — |
| meta.brace.curly, meta.brace.round, meta.brace.square | #B3B1AD | — |
| punctuation.quasi.element.begin, punctuation.quasi.element.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #FFA759 | — |
| meta.object-literal.key | #FFB454 | italic |
| entity.name.type | #FF8F40 | — |
| entity.name.type.class | #F07178 | — |
| support.type.primitive | #FF8F40 | — |
| text.gitignore | #FFD76D | italic |
| ref.matchtext | #FFFFFF | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}