Relaxed Theme - Semantic Focus
Publisher: nomad-in-codeThemes in package: 3
A calm, readable dark theme for Visual Studio Code with first‑class semantic highlighting. Tuned for TypeScript/JavaScript and C# (.NET)
A calm, readable dark theme for Visual Studio Code with first‑class semantic highlighting. Tuned for TypeScript/JavaScript and C# (.NET)
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 | #8a9098 | italic |
| keyword, storage.type, storage.modifier, keyword.control, keyword.operator | #a47aa7 | — |
| string, string.quoted, string.template | #8fae6b | — |
| constant.numeric, constant.character, constant.language, support.constant | #b8854a | — |
| string.regexp, constant.character.escape | #b9d3ea | — |
| invalid, invalid.illegal | #c4776f | — |
| punctuation, meta.brace, meta.bracket, meta.delimiter, keyword.other.template, keyword.other.substitution | #dde1e6 | — |
| entity.name.function, entity.name.method, meta.function-call, support.function | #85a7bf | bold |
| variable, variable.other.readwrite, string constant.other.placeholder | #dde1e6 | — |
| variable.parameter, meta.parameter | #b8c8d8 | — |
| entity.name.type, entity.name.class, support.type, support.class, support.type.sys-types | #d7c27e | bold |
| entity.name.type.interface, support.type.interface | #b8c8d8 | — |
| entity.name.type.enum, variable.other.enummember, constant.other.enummember | #e8b85f | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.property.object, meta.object-literal.key, meta.member | #b9d3ea | — |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, meta.decorator, meta.attribute, entity.name.attribute, entity.name.function.decorator, variable.function.decorator | #85a7bf | italic |
| variable.language, variable.language.this, variable.language.super, variable.language.self, constant.language.null, constant.language.undefined | #c4776f | italic |
| source.ts entity.name.function, source.tsx entity.name.function, source.js entity.name.function, source.jsx entity.name.function, source.ts entity.name.method, source.tsx entity.name.method, source.js entity.name.method, source.jsx entity.name.method | #85a7bf | — |
| source.ts variable.parameter, source.tsx variable.parameter, source.js variable.parameter, source.jsx variable.parameter | #b8c8d8 | — |
| source.ts variable.other.property, source.ts meta.object-literal.key, source.js variable.other.property, source.js meta.object-literal.key, support.variable.property.js, support.variable.property.ts | #b9d3ea | — |
| source.ts entity.name.type, source.ts entity.name.class, source.tsx entity.name.type, source.tsx entity.name.class, source.ts entity.name.type.interface, source.tsx entity.name.type.interface, source.ts entity.name.type.enum, source.tsx entity.name.type.enum | #d7c27e | — |
| source.ts entity.name.type.interface, source.tsx entity.name.type.interface | #b8c8d8 | — |
| source.ts keyword.other.type-alias, source.tsx keyword.other.type-alias | #d7c27e | italic |
| source.ts meta.type.annotation, source.tsx meta.type.annotation, source.ts storage.type, source.tsx storage.type | #d7c27e | — |
| entity.name.tag.tsx, entity.name.tag.jsx, meta.tag.tsx, meta.tag.jsx, entity.other.attribute-name.tsx, entity.other.attribute-name.jsx | #c4776f | — |
| source.ts variable.function, source.tsx variable.function, source.js variable.function, source.jsx variable.function | #95a7bf | — |
| source.ts meta.decorator, source.tsx meta.decorator | #85a7bf | italic |
| source.python entity.name.function, source.python meta.function-call, source.python support.function | #85a7bf | — |
| source.python variable.parameter.function, source.python variable.parameter | #b8c8d8 | — |
| source.python entity.name.class, source.python support.type, source.python support.class | #d7c27e | — |
| source.python support.function.builtin, source.python support.type.builtin, constant.language.python | #dfc39a | — |
| source.python variable.language.self | #c4776f | italic |
| source.cs entity.name.method, source.cs meta.method-call, source.cs support.function | #85a7bf | — |
| source.cs variable.parameter, source.cs meta.parameter | #b8c8d8 | — |
| source.cs variable.parameter.primary-constructor | #e9c28a | — |
| source.cs entity.name.type, source.cs entity.name.class, source.cs entity.name.struct, source.cs entity.name.interface, source.cs entity.name.enum, source.cs support.type, source.cs support.class | #d7c27e | — |
| source.cs entity.name.namespace, source.cs support.namespace | #8aa0b3 | — |
| source.cs meta.attribute, source.cs entity.name.attribute | #85a7bf | italic |
| source.cs keyword.other.access-modifier | #9a7aa7 | — |
| source.cs keyword.other.record | #b47aa7 | — |
| source.cs keyword.other.async | #a47aa7 | italic |
| source.cs storage.modifier.static | #a47aa7 | bold |
| source.cs keyword.other.linq | #a47aa7 | underline |
| source.cs keyword.other.pattern | #a47aa7 | bold |
| source.cs keyword, source.cs storage.type, source.cs storage.modifier | #a47aa7 | — |
| source.json support.type.property-name.json | #9ab4c6 | |
| source.json string.quoted.double.json | #8fae6b | — |
| entity.name.tag.yaml, meta.mapping.key.yaml | #85a7bf | |
| string.quoted.single.yaml, string.quoted.double.yaml, string.unquoted.plain.yaml | #8fae6b | — |
| constant.numeric.yaml | #e4a85c | — |
| constant.language.boolean.yaml | #c4776f | — |
| entity.name.tag.yaml, variable.other.alias.yaml | #a47aa7 | — |
| comment.line.yaml | #8a9098 | italic |
| meta.embedded.expression, meta.embedded.expression.yaml, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded.begin.yaml, punctuation.section.embedded.end.yaml | #b9d3ea | |
| variable.other.template.yaml, meta.template.expression.yaml, entity.name.function.template.yaml, support.function.template.yaml | #85a7bf | |
| markup.heading, markdown.heading, markup.heading.markdown punctuation.definition.heading.markdown | #8fae6b | — |
| string.other.link.title.markdown, string.other.link.description.title.markdown, constant.other.reference.link.markdown | #7e8f9c | — |
| source.dockerfile entity.name.instruction, source.dockerfile keyword.other, source.dockerfile keyword.control | #d7c27e | bold |
| source.dockerfile variable.parameter, source.dockerfile variable.other | #b9d3ea | — |
| source.dockerfile comment, source.dockerfile punctuation.definition.comment | #8a9098 | italic |
| meta.mapping.key.yaml, entity.name.tag.yaml, support.type.property-name.yaml | #85a7bf | |
| meta.preprocessor.cs, keyword.control.directive.cs, punctuation.definition.preprocessor.cs | #8a9098 | italic |
| keyword.other.export, storage.modifier.export | #a47aa7 | bold |
| variable.other.property.readonly, meta.property.readonly, storage.modifier.readonly | #e4a85c |
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}!`;
}