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 | #4C4C4C6e | — |
| comment.block.xml | #4D4D4D6e | — |
| comment.line.double-slash.c | #4C4C4C6e | — |
| comment.line.double-slash.cpp | #4D4D4D6e | — |
| comment.line.double-slash.java | #4E4E4E6e | — |
| comment.line.double-slash.js | #4D4D4D6e | — |
| comment.line.number-sign.makefile | #4E4E4E6e | — |
| comment.line.number-sign.python | #4D4D4D6e | — |
| comment.line.number-sign.yaml | #4D4D4D6e | — |
| comment.line.percentage.erlang | #4C4C4C6e | — |
| comment.line.powershell | #4E4E4E6e | — |
| comment.source.cmake | #4E4E4E6e | — |
| comment.source.cmakecache | #4E4E4E6e | — |
| constant.character | #3E3EA7de | — |
| constant.character.character-class.regexp | #4D4D4Dde | — |
| constant.character.escape | #9C0C3Cde | — |
| constant.character.set.regexp | #45512Fde | — |
| constant.language | #643444de | — |
| constant.numeric | #315731de | — |
| constant.numeric.dec.python | #3D540Fde | — |
| constant.other.caps.python | #7B0AB5de | — |
| constant.other.character-class.regexp | #4F335Ede | — |
| constant.other.character-class.set.regexp | #3D560Bde | — |
| constant.other.color.rgb-value | #9C0C3Cde | — |
| constant.other.placeholder | #3D540Fde | — |
| constant.other.rgb-value | #643444de | — |
| constant.regexp | #694535de | — |
| constant.sha.git-rebase | #9D0B3Cde | — |
| emphasis | #2A442Ade | — |
| entity.name.class | #444444de | — |
| entity.name.function | #47532Fde | — |
| entity.name.function.preprocessor | #9E0A3Cde | — |
| entity.name.function.python | #3D540Fde | — |
| entity.name.label | #573E31de | — |
| entity.name.namespace | #3E550Fde | — |
| entity.name.operator | #0E5C0Ede | — |
| entity.name.operator.custom-literal | #643979de | — |
| entity.name.scope-resolution | #72374Bde | — |
| entity.name.tag | #3E3EB3de | — |
| entity.name.tag.css | #3E3EA7de | — |
| entity.name.type | #512F3Ade | bold |
| entity.name.variable | #512F3Ade | — |
| entity.other.attribute | #373772de | — |
| entity.other.attribute-name | #9C0E3Dde | — |
| entity.other.attribute-name.class.css | #0E550Ede | — |
| entity.other.attribute-name.class.mixin.css | #1414FDde | — |
| entity.other.attribute-name.id | #393979de | — |
| entity.other.attribute-name.id.css | #36366Bde | — |
| entity.other.attribute-name.parent-selector.css | #7B3950de | — |
| entity.other.attribute-name.pseudo-class.css | #4F335Ede | — |
| entity.other.attribute-name.pseudo-element.css | #3E550Cde | — |
| entity.other.attribute-name.scss | #3E3EB3de | — |
| entity.other.document.begin.yaml | #4E4E4E6e | — |
| entity.other.inherited-class | #1414FDde | bold |
| header | #893208de | — |
| invalid | #3B3B88de | — |
| keyword | #694635de | bold |
| keyword.codetag.notation.python | #643979de | bold |
| keyword.control | #85360Fde | bold |
| keyword.control.anchor.regexp | #3E550Ede | bold |
| keyword.control.import.python | #7A394Dde | bold |
| keyword.operator | #3F3F3Fde | bold |
| keyword.operator.alignas | #79394Ede | bold |
| keyword.operator.alignof | #404A2Dde | bold |
| keyword.operator.cast | #7B02B8de | bold |
| keyword.operator.delete | #484848de | bold |
| keyword.operator.documentation.powershell | #4E4E4E6e | bold |
| keyword.operator.expression | #4E4E4Ede | bold |
| keyword.operator.instanceof | #693A80de | bold |
| keyword.operator.logical.python | #8A3306de | bold |
| keyword.operator.minus.exponent | #3E3EB0de | bold |
| keyword.operator.negation.regexp | #9E0639de | bold |
| keyword.operator.new | #9C0E3Ede | bold |
| keyword.operator.noexcept | #3C3C90de | bold |
| keyword.operator.or.regexp | #7B09B4de | bold |
| keyword.operator.plus.exponent | #7B394Dde | bold |
| keyword.operator.quantifier.regexp | #693A80de | bold |
| keyword.operator.sizeof | #5E3341de | bold |
| keyword.operator.typeid | #87340Bde | bold |
| keyword.operator.wordlike | #3E560Dde | bold |
| keyword.other.operator | #3D3D9Fde | bold |
| keyword.other.package.java | #693A87de | bold |
| keyword.other.unit | #0E5A0Ede | bold |
| keyword.other.using | #85360Fde | bold |
| markup.bold | #3E3EB2de | — |
| markup.changed | #694635de | — |
| markup.deleted | #9E0A3Cde | — |
| markup.fenced_code.block.markdown | #7B08B5de | — |
| markup.heading | #315631de | — |
| markup.inline.raw | #4E4E4Ede | — |
| markup.inserted | #573E31de | — |
| markup.italic | #7B0DB3de | — |
| markup.raw.block.markdown | #693A87de | — |
| markup.strikethrough | #72374Bde | — |
| markup.underline | #4E4E4Ede | — |
| meta.block.c | #3E550Fde | — |
| meta.block.c | #3E3EB3de | — |
| meta.class.java | #8A3205de | — |
| meta.definition.variable.name | #9D0B3Cde | — |
| meta.diff.header | #3D560Bde | — |
| meta.embedded | #3E3EB5de | — |
| meta.embedded.assembly | #9C0E3Dde | — |
| meta.function-call.arguments.python | #85360Fde | — |
| meta.function-call.python | #4D4D4Dde | — |
| meta.member.access.python | #7B0CB3de | — |
| meta.method.java | #45512Fde | — |
| meta.object-literal.key | #3E550Ede | — |
| meta.paragraph.markdown | #0E5C0Ede | — |
| meta.preprocessor | #3E560Ede | — |
| meta.preprocessor.numeric | #7B02B8de | — |
| meta.preprocessor.string | #7B3950de | — |
| meta.scope.prerequisites.makefile | #674635de | — |
| meta.structure.dictionary.json.comments | #4E4E4E6e | — |
| meta.structure.dictionary.key.python | #47532Fde | — |
| meta.structure.dictionary.value.json.comments | #4E4E4E6e | — |
| meta.template.expression | #3E550Ede | — |
| meta.type.cast.expr | #283E28de | — |
| meta.type.new.expr | #315631de | — |
| parameter | #4E4E4Ede | — |
| punctuation.character.set.begin.regexp | #7A394Dde | — |
| punctuation.character.set.end.regexp | #0C4D0Cde | — |
| punctuation.definition.array.begin.json | #0E5A0Ede | — |
| punctuation.definition.character-class.regexp | #3B442Ade | — |
| punctuation.definition.comment | #4E4E4E6e | — |
| punctuation.definition.comment.json.comments | #4E4E4E6e | — |
| punctuation.definition.comment.python | #4E4E4E6e | — |
| punctuation.definition.dictionary.begin.json | #3B3B88de | — |
| punctuation.definition.dictionary.end.json | #3D3DB5de | — |
| punctuation.definition.group.assertion.regexp | #3E560Dde | — |
| punctuation.definition.group.regexp | #3C3C90de | — |
| punctuation.definition.list.begin.json | #893208de | — |
| punctuation.definition.list.begin.markdown | #283E28de | — |
| punctuation.definition.list.begin.python | #9E083Ade | — |
| punctuation.definition.list.end.json | #5E3341de | — |
| punctuation.definition.list.end.markdown | #4E4E4Ede | — |
| punctuation.definition.list.end.python | #0C530Cde | — |
| punctuation.definition.parameters.begin.python | #7B04B7de | — |
| punctuation.definition.parameters.end.bracket.round.java | #3E550Cde | — |
| punctuation.definition.quote.begin.markdown | #873409de | — |
| punctuation.definition.tag | #79394Ede | — |
| punctuation.definition.template-expression.begin | #9C0D3Dde | — |
| punctuation.definition.template-expression.end | #2F512Fde | — |
| punctuation.section.class.begin.bracket.curly.java | #3E560Dde | — |
| punctuation.section.embedded | #57313Ede | — |
| punctuation.section.embedded.begin.php | #0D510Dde | — |
| punctuation.section.embedded.end.php | #87340Bde | — |
| punctuation.terminator.java | #88350Cde | — |
| source.cmake | #3F3F3Fde | — |
| source.coffee.embedded | #2F512Fde | — |
| source.cpp | #693A81de | — |
| source.css.less | #9D0B3Cde | — |
| source.groovy.embedded | #5A366Bde | — |
| source.java | #393979de | — |
| source.java-properties | #893208de | — |
| source.json.comments | #4E4E4E6e | — |
| source.makefile | #3C3C90de | — |
| source.powershell | #8A3306de | — |
| source.powershell.variable.other.member | #86340Cde | — |
| source.python | #7B3950de | — |
| storage | #7D3850de | — |
| storage.modifier | #893208de | — |
| storage.modifier.import.java | #4E4E4Ede | — |
| storage.modifier.package.java | #0F560Fde | — |
| storage.type | #3D3D9Fde | bold |
| storage.type.annotation.groovy | #4D4D4Dde | bold |
| storage.type.annotation.java | #7C3950de | bold |
| storage.type.boolean.go | #83360Fde | bold |
| storage.type.byte.go | #3F3F3Fde | bold |
| storage.type.cs | #0F5B0Fde | bold |
| storage.type.error.go | #5F3772de | bold |
| storage.type.generic.cs | #5A366Bde | bold |
| storage.type.generic.groovy | #83360Fde | bold |
| storage.type.generic.java | #3F3F3Fde | bold |
| storage.type.groovy | #373772de | bold |
| storage.type.java | #512F3Ade | bold |
| storage.type.modifier.cs | #9C0C3Cde | bold |
| storage.type.numeric.go | #4E4E4Ede | bold |
| storage.type.object.array.groovy | #6A3A81de | bold |
| storage.type.object.array.java | #9E0639de | bold |
| storage.type.parameters.groovy | #83360Fde | bold |
| storage.type.primitive.array.groovy | #7B05B7de | bold |
| storage.type.primitive.array.java | #4E4E4Ede | bold |
| storage.type.primitive.groovy | #484848de | bold |
| storage.type.primitive.java | #83360Fde | bold |
| storage.type.rune.go | #5F3772de | bold |
| storage.type.string.go | #8A3306de | bold |
| storage.type.token.java | #3E560Ede | bold |
| storage.type.uintptr.go | #7B3950de | bold |
| storage.type.variable.cs | #9C0D3Dde | bold |
| string | #3C560Ade | — |
| string.quoted.docstring.multi.python | #4C4C4C6e | — |
| string.regexp | #4E4E4Ede | — |
| string.tag | #4A3157de | — |
| string.value | #9C0D3Dde | — |
| strong | #664734de | — |
| support.class | #3E3EA7de | — |
| support.constant.color | #674635de | — |
| support.constant.dom | #36366Bde | — |
| support.constant.font-name | #3D3DB8de | — |
| support.constant.handlebars | #4D4D4Dde | — |
| support.constant.json | #4D4D4Dde | — |
| support.constant.math | #84360Fde | — |
| support.constant.media | #694535de | — |
| support.constant.media-type | #3C3C90de | — |
| support.constant.property-value | #4E4E4Ede | — |
| support.function | #84360Ede | — |
| support.function.git-rebase | #9D0B3Cde | — |
| support.other.parenthesis.regexp | #664734de | — |
| support.type | #84360Ede | bold |
| support.type.property-name | #57313Ede | bold |
| support.type.vendored.property-name | #873409de | bold |
| support.variable | #643979de | — |
| token.debug-token | #87340Bde | — |
| token.error-token | #693A81de | — |
| token.info-token | #7B0BB3de | — |
| token.warn-token | #0F5B0Fde | — |
| variable | #0F5B0Fde | — |
| variable.css | #7B08B5de | — |
| variable.language | #0A0AC1de | — |
| variable.language.wildcard.java | #3B3B88de | — |
| variable.other.constant | #475330de | — |
| variable.other.definition.java | #0F5C0Fde | — |
| variable.other.enummember | #674635de | — |
| variable.other.less | #4E4E4Ede | — |
| variable.other.object.java | #4E4E4Ede | — |
| variable.other.object.property.java | #693A81de | — |
| variable.parameter.c | #6B3983de | — |
| variable.parameter.function.language.python | #3E3EA7de | — |
| variable.parameter.java | #0F5B0Fde | — |
| variable.scss | #87340Bde | — |
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}!`;
}