viiv
Publisher: B.WThemes in package: 206
A VsCode theme that puts developers into focus mode quickly.
A VsCode theme that puts developers into focus mode quickly.
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.block.documentation.c | #4E4E4E6e | — |
| comment.block.html | #4E4E4E6e | — |
| comment.block.java | #4E4E4E6e | — |
| comment.block.javadoc.java | #4E4E4E6e | — |
| comment.block.powershell | #4D4D4D6e | — |
| comment.block.xml | #4E4E4E6e | — |
| comment.line.double-slash.c | #4D4D4D6e | — |
| comment.line.double-slash.cpp | #4D4D4D6e | — |
| comment.line.double-slash.java | #4E4E4E6e | — |
| comment.line.double-slash.js | #4C4C4C6e | — |
| comment.line.number-sign.makefile | #4E4E4E6e | — |
| comment.line.number-sign.python | #4E4E4E6e | — |
| comment.line.number-sign.yaml | #4E4E4E6e | — |
| comment.line.percentage.erlang | #4D4D4D6e | — |
| comment.line.powershell | #4C4C4C6e | — |
| comment.source.cmake | #4D4D4D6e | — |
| comment.source.cmakecache | #4E4E4E6e | — |
| constant.character | #9D072Cde | — |
| constant.character.character-class.regexp | #9E0A2Fde | — |
| constant.character.escape | #214047de | — |
| constant.character.set.regexp | #3232C8de | — |
| constant.language | #375709de | — |
| constant.numeric | #0A4919de | — |
| constant.numeric.dec.python | #3434CEde | — |
| constant.other.caps.python | #872E42de | — |
| constant.other.character-class.regexp | #75410Cde | — |
| constant.other.character-class.set.regexp | #37570Bde | — |
| constant.other.color.rgb-value | #365807de | — |
| constant.other.placeholder | #0C5563de | — |
| constant.other.rgb-value | #75400Cde | — |
| constant.regexp | #375709de | — |
| constant.sha.git-rebase | #860A9Fde | — |
| emphasis | #9F0A30de | — |
| entity.name.class | #3232B7de | — |
| entity.name.function | #782E84de | — |
| entity.name.function.preprocessor | #860A9Fde | — |
| entity.name.function.python | #782C3Fde | — |
| entity.name.label | #4E3823de | — |
| entity.name.namespace | #0B461Ade | — |
| entity.name.operator | #3232B7de | — |
| entity.name.operator.custom-literal | #892E43de | — |
| entity.name.scope-resolution | #3333CDde | — |
| entity.name.tag | #37570Bde | — |
| entity.name.tag.css | #3434CEde | — |
| entity.name.type | #76410Cde | bold |
| entity.name.variable | #9D082Dde | — |
| entity.other.attribute | #26525Bde | — |
| entity.other.attribute-name | #36580Ade | — |
| entity.other.attribute-name.class.css | #9C0B2Fde | — |
| entity.other.attribute-name.class.mixin.css | #3333CDde | — |
| entity.other.attribute-name.id | #774009de | — |
| entity.other.attribute-name.id.css | #405424de | — |
| entity.other.attribute-name.parent-selector.css | #3535CFde | — |
| entity.other.attribute-name.pseudo-class.css | #9D082Dde | — |
| entity.other.attribute-name.pseudo-element.css | #37570Ade | — |
| entity.other.attribute-name.scss | #860B9Fde | — |
| entity.other.document.begin.yaml | #4E4E4E6e | — |
| entity.other.inherited-class | #664728de | — |
| header | #234E2Dde | — |
| invalid | #782E89de | — |
| keyword | #3535CFde | bold |
| keyword.codetag.notation.python | #21472Ade | bold |
| keyword.control | #0A4919de | bold |
| keyword.control.anchor.regexp | #9C0B2Fde | bold |
| keyword.control.import.python | #3535CEde | bold |
| keyword.operator | #3535CEde | bold |
| keyword.operator.alignas | #3434CDde | bold |
| keyword.operator.alignof | #782E88de | bold |
| keyword.operator.cast | #9C0B30de | bold |
| keyword.operator.delete | #37560Bde | bold |
| keyword.operator.documentation.powershell | #4D4D4D6e | bold |
| keyword.operator.expression | #27545Bde | bold |
| keyword.operator.instanceof | #9C0C30de | bold |
| keyword.operator.logical.python | #27545Bde | bold |
| keyword.operator.minus.exponent | #0B5261de | bold |
| keyword.operator.negation.regexp | #543C24de | bold |
| keyword.operator.new | #3535CFde | bold |
| keyword.operator.noexcept | #2E2E87de | bold |
| keyword.operator.or.regexp | #3C4E23de | bold |
| keyword.operator.plus.exponent | #0C5A1Fde | bold |
| keyword.operator.quantifier.regexp | #762E86de | bold |
| keyword.operator.sizeof | #37570Cde | bold |
| keyword.operator.typeid | #664728de | bold |
| keyword.operator.wordlike | #37570Bde | bold |
| keyword.other.operator | #86099Fde | bold |
| keyword.other.package.java | #793F06de | bold |
| keyword.other.unit | #405424de | bold |
| keyword.other.using | #692939de | bold |
| markup.bold | #722D7Fde | — |
| markup.changed | #762E87de | — |
| markup.deleted | #674728de | — |
| markup.fenced_code.block.markdown | #0B5A1Fde | — |
| markup.heading | #0B5A1Fde | — |
| markup.inline.raw | #782C3Fde | — |
| markup.inserted | #37570Bde | — |
| markup.italic | #09501Ade | — |
| markup.raw.block.markdown | #37570Ade | — |
| markup.strikethrough | #245430de | — |
| markup.underline | #38570Cde | — |
| meta.block.c | #6B2C78de | — |
| meta.block.c | #722D7Fde | — |
| meta.class.java | #1E4027de | — |
| meta.definition.variable.name | #26545Ede | — |
| meta.diff.header | #784008de | — |
| meta.embedded | #37570Bde | — |
| meta.embedded.assembly | #0A4919de | — |
| meta.function-call.arguments.python | #21472Ade | — |
| meta.function-call.python | #75400Cde | — |
| meta.member.access.python | #37570Bde | — |
| meta.method.java | #3535CEde | — |
| meta.object-literal.key | #37570Bde | — |
| meta.paragraph.markdown | #9D072Cde | — |
| meta.preprocessor | #762E86de | — |
| meta.preprocessor.numeric | #0C5A1Fde | — |
| meta.preprocessor.string | #0C5563de | — |
| meta.scope.prerequisites.makefile | #78410Ade | — |
| meta.structure.dictionary.json.comments | #4E4E4E6e | — |
| meta.structure.dictionary.key.python | #622836de | — |
| meta.structure.dictionary.value.json.comments | #4C4C4C6e | — |
| meta.template.expression | #0C5665de | — |
| meta.type.cast.expr | #375808de | bold |
| meta.type.new.expr | #8506A0de | bold |
| parameter | #3434CDde | — |
| punctuation.character.set.begin.regexp | #782C3Fde | — |
| punctuation.character.set.end.regexp | #3333CDde | — |
| punctuation.definition.array.begin.json | #38570Cde | — |
| punctuation.definition.character-class.regexp | #36580Ade | — |
| punctuation.definition.comment | #4C4C4C6e | — |
| punctuation.definition.comment.json.comments | #4E4E4E6e | — |
| punctuation.definition.comment.python | #4C4C4C6e | — |
| punctuation.definition.dictionary.begin.json | #37570Bde | — |
| punctuation.definition.dictionary.end.json | #37570Bde | — |
| punctuation.definition.group.assertion.regexp | #782E84de | — |
| punctuation.definition.group.regexp | #860A9Fde | — |
| punctuation.definition.list.begin.json | #6B2C78de | — |
| punctuation.definition.list.begin.markdown | #31319Ede | — |
| punctuation.definition.list.begin.python | #38570Cde | — |
| punctuation.definition.list.end.json | #9C0B2Fde | — |
| punctuation.definition.list.end.markdown | #624528de | — |
| punctuation.definition.list.end.python | #3131A7de | — |
| punctuation.definition.parameters.begin.python | #0B5A1Fde | — |
| punctuation.definition.parameters.end.bracket.round.java | #0A5160de | — |
| punctuation.definition.quote.begin.markdown | #77410Cde | — |
| punctuation.definition.tag | #712B3Cde | — |
| punctuation.definition.template-expression.begin | #37560Bde | — |
| punctuation.definition.template-expression.end | #375709de | — |
| punctuation.section.class.begin.bracket.curly.java | #365807de | — |
| punctuation.section.embedded | #76410Cde | — |
| punctuation.section.embedded.begin.php | #37560Cde | — |
| punctuation.section.embedded.end.php | #860A9Ede | — |
| punctuation.terminator.java | #26545Fde | — |
| source.cmake | #76400Bde | — |
| source.coffee.embedded | #3535CEde | — |
| source.cpp | #5F2969de | — |
| source.css.less | #26525Bde | — |
| source.groovy.embedded | #75410Cde | — |
| source.java | #86099Fde | — |
| source.java-properties | #882D44de | — |
| source.json.comments | #4C4C4C6e | — |
| source.makefile | #674728de | — |
| source.powershell | #8506A0de | — |
| source.powershell.variable.other.member | #2F2F8Fde | — |
| source.python | #0C5563de | — |
| storage | #8608A0de | — |
| storage.modifier | #21472Ade | — |
| storage.modifier.import.java | #0C5B1Fde | — |
| storage.modifier.package.java | #405424de | — |
| storage.type | #3333CDde | bold |
| storage.type.annotation.groovy | #860A9Ede | bold |
| storage.type.annotation.java | #0C5665de | bold |
| storage.type.boolean.go | #0C5564de | bold |
| storage.type.byte.go | #0A4A58de | bold |
| storage.type.cs | #3535CEde | bold |
| storage.type.error.go | #3535CFde | bold |
| storage.type.generic.cs | #860A9Ede | bold |
| storage.type.generic.groovy | #9F092Ede | bold |
| storage.type.generic.java | #8608A0de | bold |
| storage.type.groovy | #3535CEde | bold |
| storage.type.java | #405323de | bold |
| storage.type.modifier.cs | #872E42de | bold |
| storage.type.numeric.go | #9D0A2Ede | bold |
| storage.type.object.array.groovy | #0C5665de | bold |
| storage.type.object.array.java | #8608A0de | bold |
| storage.type.parameters.groovy | #8506A0de | bold |
| storage.type.primitive.array.groovy | #782C3Fde | bold |
| storage.type.primitive.array.java | #624528de | bold |
| storage.type.primitive.groovy | #405323de | bold |
| storage.type.primitive.java | #3434CDde | bold |
| storage.type.rune.go | #872E42de | bold |
| storage.type.string.go | #0C5B1Fde | bold |
| storage.type.token.java | #3333CDde | bold |
| storage.type.uintptr.go | #303097de | bold |
| storage.type.variable.cs | #1E4027de | bold |
| string | #762E87de | — |
| string.quoted.docstring.multi.python | #4E4E4E6e | — |
| string.regexp | #0C5665de | — |
| string.tag | #375709de | — |
| string.value | #872D45de | — |
| strong | #78410Ade | — |
| support.class | #3333CDde | — |
| support.constant.color | #674728de | — |
| support.constant.dom | #892E46de | — |
| support.constant.font-name | #3434CEde | — |
| support.constant.handlebars | #860B9Fde | — |
| support.constant.json | #892E43de | — |
| support.constant.math | #37570Bde | — |
| support.constant.media | #7F2D42de | — |
| support.constant.media-type | #892E46de | bold |
| support.constant.property-value | #405424de | — |
| support.function | #0909FEde | — |
| support.function.git-rebase | #2F2F8Fde | — |
| support.other.parenthesis.regexp | #3434CEde | — |
| support.type | #0B5A1Fde | bold |
| support.type.property-name | #37560Bde | bold |
| support.type.vendored.property-name | #3434CEde | bold |
| support.variable | #782E84de | — |
| token.debug-token | #860A9Fde | — |
| token.error-token | #094517de | — |
| token.info-token | #3434CDde | — |
| token.warn-token | #0C5664de | — |
| variable | #782E88de | — |
| variable.css | #75400Cde | — |
| variable.language | #9F0A30de | — |
| variable.language.wildcard.java | #674728de | — |
| variable.other.constant | #31319Ede | — |
| variable.other.definition.java | #7A2D87de | — |
| variable.other.enummember | #76410Cde | — |
| variable.other.less | #37560Bde | — |
| variable.other.object.java | #0C5564de | — |
| variable.other.object.property.java | #0C5B1Fde | — |
| variable.parameter.c | #792D88de | — |
| variable.parameter.function.language.python | #3535CDde | — |
| variable.parameter.java | #3434CEde | — |
| variable.scss | #3434CEde | — |
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}!`;
}