Oblique Theme
Publisher: Jack StringerThemes in package: 1
Purposeful theme for Visual Studio Code (color-blind friendly)
Purposeful theme for Visual Studio Code (color-blind friendly)
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 |
|---|---|---|
| entity.name.function, support.function, meta.function-call.generic, punctuation.definition.decorator, punctuation.definition.parameters, punctuation.definition.link, punctuation.definition.metadata, string.other.begin.link, string.other.end.link, string.other.begin.mdx, string.other.end.mdx, keyword.control.lessmark, meta.declaration.annotation, storage.type.annotation, meta.brace.round | #adb6e4 | — |
| entity.name.function.python, meta.definition.function, meta.definition.method, entity.name.function.lua | — | bold |
| markup.underline.link, string.other.link.destination | #ff7e50 | — |
| source, variable, meta.item-access.arguments, meta.indexed-name, markup.inline.raw, meta.tag.structure, meta.tag.metadata, entity.other.attribute-name, entity.name.tag.css, meta.function.variable.css, meta.record.field, storage.modifier.package, storage.modifier.import, meta.class.body.java, meta.object-literal.key, entity.other.attribute, entity.name.section, keyword.other.definition, support.variable.single-line.spdoc, support.type.property-name, support.variable.property, entity.name.tag.localname, entity.name.tag.yaml | #eeee99 | — |
| markup.italic | — | italic |
| constant.other.caps, support.variable.magic, variable.other.constant, support.constant | #99e868 | — |
| string, source.css, source.ignore, source.lessmark, source.jinja, meta.paragraph, source.ini | #acc6c6 | — |
| constant.numeric, constant.language, constant.other.ellipsis, constant.other.color, meta.scope.jinja.variable, markup.italic, punctuation.definition.italic, string.other.emphasis, constant.character.escape, keyword.control.anchor.regexp, constant.other.character-class.regexp | #10de18 | — |
| entity.name.type, meta.function, support.type.exception, variable.parameter.function.language.special.self, variable.language.special.self, variable.parameter.function.language.special.cls, variable.language.special.cls, meta.module.name, markup.bold, punctuation.definition.bold, string.other.strong, storage.type.java, storage.type.object.array.java, storage.type.generic.java, meta.class, variable.language.this | #ff6b6b | — |
| entity.name.type.class, markup.bold, string.other.strong, heading.1 | — | bold |
| keyword, meta.lambda-function, storage.type.class, storage.type.function, storage.type.string, constant.character.format.placeholder, punctuation.definition.arguments, punctuation.definition.dict, punctuation.separator, punctuation.parenthesis, meta.structure.array, meta.structure.dictionary, punctuation.definition.begin.frontmatter, punctuation.definition.end.frontmatter, markup.heading, entity.name.section.markdown, punctuation.definition.heading, punctuation.definition.list, punctuation.definition.quote, punctuation.definition.raw, punctuation.definition.markdown, meta.separator.markdown, string.other.begin.yaml, string.other.end.yaml, entity.name.section.mdx, variable.unordered.list, string.other.number.mdx, variable.ordered.list, markup.list.table-delimiter, string.other.begin.code, string.other.end.code, string.other.begin.expression, string.other.end.expression, entity.name.section.lessmark, meta.tag.metadata.doctype, punctuation.definition.tag, punctuation.section, punctuation.curlybrace, punctuation.squarebracket, punctuation.definition.interpolation, keyword.type.elm, punctuation.bracket, punctuation.parens, meta.function.type-declaration, meta.function.type-record, constant.unit.elm, punctuation.definition.bracket.curly.begin.jsdoc, punctuation.definition.bracket.curly.end.jsdoc, punctuation.definition.optional-value.begin.bracket.square.jsdoc, punctuation.definition.optional-value.end.bracket.square.jsdoc, storage.type, meta.array, punctuation.definition.binding-pattern, punctuation.definition.template-expression, punctuation.terminator, meta.scope.jinja.tag, source.lua, punctuation.definition.entity, source.sourcepawn, punctuation.definition.table, punctuation.eq, punctuation.definition.typeparameters, meta.tag.preprocessor, meta.tag.xml, punctuation.definition.block, punctuation.definition.mapping, punctuation.definition.sequence, storage.modifier, meta.flow-mapping, meta.flow-sequence, meta.embedded.block | #de82ad | — |
| support.type, meta.item-access, keyword.type, storage.type.elm, constant.type-constructor, storage.type.primitive, fenced_code.block.language, entity.name.function.mdx, storage.type.built-in, storage.type.tag | #cc9731 | — |
| comment, punctuation.definition.comment, string.quoted.docstring, meta.setting.documentation.robotframework, meta.testcase_setting.documentation.robotframework | #536060 | — |
| keyword.codetag.notation | #ff7e50 | — |
| comment, punctuation.definition.comment | — | italic |
| comment.block | — |
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}!`;
}