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 | #C0C0C06e | — |
| comment.block.html | #C0C0C06e | — |
| comment.block.java | #C0C0C06e | — |
| comment.block.javadoc.java | #C0C0C06e | — |
| comment.block.powershell | #C0C0C06e | — |
| comment.block.xml | #C0C0C06e | — |
| comment.line.double-slash.c | #C0C0C06e | — |
| comment.line.double-slash.cpp | #BFBFBF6e | — |
| comment.line.double-slash.java | #C0C0C06e | — |
| comment.line.double-slash.js | #BFBFBF6e | — |
| comment.line.number-sign.makefile | #C0C0C06e | — |
| comment.line.number-sign.python | #C0C0C06e | — |
| comment.line.number-sign.yaml | #C0C0C06e | — |
| comment.line.percentage.erlang | #C0C0C06e | — |
| comment.line.powershell | #BFBFBF6e | — |
| comment.source.cmake | #BFBFBF6e | — |
| comment.source.cmakecache | #C0C0C06e | — |
| constant.character | #0EDE46de | — |
| constant.character.character-class.regexp | #F0A6FEde | — |
| constant.character.escape | #81D50Fde | — |
| constant.character.set.regexp | #DE7AEFde | — |
| constant.language | #0AD2EBde | — |
| constant.numeric | #F07DA1de | — |
| constant.numeric.dec.python | #9999F5de | — |
| constant.other.caps.python | #0EDE46de | — |
| constant.other.character-class.regexp | #F0B471de | — |
| constant.other.character-class.set.regexp | #0EDE46de | — |
| constant.other.color.rgb-value | #0DD2E9de | — |
| constant.other.placeholder | #82D60Fde | — |
| constant.other.rgb-value | #F17CA1de | — |
| constant.regexp | #82D60Ede | — |
| constant.sha.git-rebase | #E896F7de | — |
| emphasis | #0AD2EAde | — |
| entity.name.class | #0EDE44de | — |
| entity.name.function | #0DD3EAde | — |
| entity.name.function.preprocessor | #DE7AEFde | — |
| entity.name.function.python | #0DD3EAde | — |
| entity.name.label | #FEA7C3de | — |
| entity.name.namespace | #FBB15Ede | — |
| entity.name.operator | #F68EAFde | — |
| entity.name.operator.custom-literal | #FDB05Bde | — |
| entity.name.scope-resolution | #0EDE46de | — |
| entity.name.tag | #F07DA1de | — |
| entity.name.tag.css | #F27CA1de | — |
| entity.name.type | #81D60Dde | — |
| entity.name.variable | #0CDE43de | — |
| entity.other.attribute | #9898F4de | — |
| entity.other.attribute-name | #EEB06Ade | — |
| entity.other.attribute-name.class.css | #0DD3EAde | — |
| entity.other.attribute-name.class.mixin.css | #09DE42de | — |
| entity.other.attribute-name.id | #EA9DF8de | — |
| entity.other.attribute-name.id.css | #0ED2E8de | — |
| entity.other.attribute-name.parent-selector.css | #0FDD45de | — |
| entity.other.attribute-name.pseudo-class.css | #0CDE43de | — |
| entity.other.attribute-name.pseudo-element.css | #81D50Dde | — |
| entity.other.attribute-name.scss | #FEA7C3de | — |
| entity.other.document.begin.yaml | #BFBFBF6e | — |
| entity.other.inherited-class | #82D60Cde | — |
| header | #9E9EF8de | — |
| invalid | #DE7AF1de | — |
| keyword | #9898F4de | — |
| keyword.codetag.notation.python | #82D50Fde | — |
| keyword.control | #82D50Fde | — |
| keyword.control.anchor.regexp | #0EDD46de | — |
| keyword.control.import.python | #0DD3EAde | — |
| keyword.operator | #9999F5de | — |
| keyword.operator.alignas | #81D60Dde | — |
| keyword.operator.alignof | #0CDE43de | — |
| keyword.operator.cast | #ADADFAde | — |
| keyword.operator.delete | #F0A5FEde | — |
| keyword.operator.documentation.powershell | #BFBFBF6e | — |
| keyword.operator.expression | #B3B3FEde | — |
| keyword.operator.instanceof | #F0B471de | — |
| keyword.operator.logical.python | #0EDD46de | — |
| keyword.operator.minus.exponent | #B3B3FEde | — |
| keyword.operator.negation.regexp | #B5B5FBde | — |
| keyword.operator.new | #0EDE44de | — |
| keyword.operator.noexcept | #9999F2de | — |
| keyword.operator.or.regexp | #0DD2E9de | — |
| keyword.operator.plus.exponent | #B5B5FBde | — |
| keyword.operator.quantifier.regexp | #0ED3EAde | — |
| keyword.operator.sizeof | #FCB15Fde | — |
| keyword.operator.typeid | #0DD3EAde | — |
| keyword.operator.wordlike | #B3B3FEde | — |
| keyword.other.operator | #EFA5FEde | — |
| keyword.other.package.java | #EA9DF8de | — |
| keyword.other.unit | #DE7AF1de | — |
| keyword.other.using | #EFA5FEde | — |
| markup.bold | #F380A4de | — |
| markup.changed | #F0A6FEde | — |
| markup.deleted | #9999F3de | — |
| markup.fenced_code.block.markdown | #F17CA1de | — |
| markup.heading | #FBB15Cde | — |
| markup.inline.raw | #08DC40de | — |
| markup.inserted | #9E9EF8de | — |
| markup.italic | #0AD2EBde | — |
| markup.raw.block.markdown | #81D60Fde | — |
| markup.strikethrough | #E180F3de | — |
| markup.underline | #EDAC63de | — |
| meta.block.c | #E387F4de | — |
| meta.block.c | #0DD3EBde | — |
| meta.class.java | #82D60Ede | — |
| meta.definition.variable.name | #0AD2EAde | — |
| meta.diff.header | #FBB15Dde | — |
| meta.embedded | #F0A5FEde | — |
| meta.embedded.assembly | #7FD609de | — |
| meta.function-call.arguments.python | #F0A2FEde | — |
| meta.function-call.python | #DE7AEFde | — |
| meta.member.access.python | #FBB160de | — |
| meta.method.java | #F380A4de | — |
| meta.object-literal.key | #EA9DF8de | — |
| meta.paragraph.markdown | #FEA7C3de | — |
| meta.preprocessor | #9898F4de | — |
| meta.preprocessor.numeric | #0AD2EAde | — |
| meta.preprocessor.string | #FBB15Fde | — |
| meta.scope.prerequisites.makefile | #B3B3FEde | — |
| meta.structure.dictionary.json.comments | #C0C0C06e | — |
| meta.structure.dictionary.key.python | #0ADD43de | — |
| meta.structure.dictionary.value.json.comments | #C0C0C06e | — |
| meta.template.expression | #9999F3de | — |
| meta.type.cast.expr | #0CDE43de | — |
| meta.type.new.expr | #82D60Cde | — |
| parameter | #FBB15Fde | — |
| punctuation.character.set.begin.regexp | #81D50Fde | — |
| punctuation.character.set.end.regexp | #FBB160de | — |
| punctuation.definition.array.begin.json | #FBB160de | — |
| punctuation.definition.character-class.regexp | #9999F2de | — |
| punctuation.definition.comment | #C0C0C06e | — |
| punctuation.definition.comment.json.comments | #BFBFBF6e | — |
| punctuation.definition.comment.python | #C0C0C06e | — |
| punctuation.definition.dictionary.begin.json | #FBB15Dde | — |
| punctuation.definition.dictionary.end.json | #83D60Fde | — |
| punctuation.definition.group.assertion.regexp | #FCB15Cde | — |
| punctuation.definition.group.regexp | #9999F2de | — |
| punctuation.definition.list.begin.json | #F0A5FEde | — |
| punctuation.definition.list.begin.markdown | #FBB15Fde | — |
| punctuation.definition.list.begin.python | #82D60Fde | — |
| punctuation.definition.list.end.json | #E387F4de | — |
| punctuation.definition.list.end.markdown | #0CDE43de | — |
| punctuation.definition.list.end.python | #EA9DF8de | — |
| punctuation.definition.parameters.begin.python | #FBB160de | — |
| punctuation.definition.parameters.end.bracket.round.java | #9999F2de | — |
| punctuation.definition.quote.begin.markdown | #0ADD43de | — |
| punctuation.definition.tag | #9898F5de | — |
| punctuation.definition.template-expression.begin | #FDB05Dde | — |
| punctuation.definition.template-expression.end | #FBB15Ede | — |
| punctuation.section.class.begin.bracket.curly.java | #82D60Cde | — |
| punctuation.section.embedded | #F487A9de | — |
| punctuation.section.embedded.begin.php | #9999F5de | — |
| punctuation.section.embedded.end.php | #B3B3FEde | — |
| punctuation.terminator.java | #08DC40de | — |
| source.cmake | #08DC40de | — |
| source.coffee.embedded | #0EDE44de | — |
| source.cpp | #FEA7C2de | — |
| source.css.less | #9898F5de | — |
| source.groovy.embedded | #F0A5FEde | — |
| source.java | #0BD3EAde | — |
| source.java-properties | #ADADFAde | — |
| source.json.comments | #BFBFBF6e | — |
| source.makefile | #A5A5F9de | — |
| source.powershell | #82D60Ede | — |
| source.powershell.variable.other.member | #9999F5de | — |
| source.python | #FEA7C3de | — |
| storage | #82D60Ede | — |
| storage.modifier | #81D60Dde | — |
| storage.modifier.import.java | #0BDD44de | — |
| storage.modifier.package.java | #9898F4de | — |
| storage.type | #0CD3EBde | — |
| storage.type.annotation.groovy | #80D60Ade | — |
| storage.type.annotation.java | #0ADD43de | — |
| storage.type.boolean.go | #EEB06Ade | — |
| storage.type.byte.go | #FCB15Cde | — |
| storage.type.cs | #ECA5F9de | — |
| storage.type.error.go | #FEA7C3de | — |
| storage.type.generic.cs | #81D60Fde | — |
| storage.type.generic.groovy | #0DD3EBde | — |
| storage.type.generic.java | #0DD3EAde | — |
| storage.type.groovy | #FDB05Bde | — |
| storage.type.java | #9999F3de | — |
| storage.type.modifier.cs | #ADADFAde | — |
| storage.type.numeric.go | #FBB15Ede | — |
| storage.type.object.array.groovy | #81D60Fde | — |
| storage.type.object.array.java | #F68EAFde | — |
| storage.type.parameters.groovy | #0ADE43de | — |
| storage.type.primitive.array.groovy | #F487A9de | — |
| storage.type.primitive.array.java | #EA9DF8de | — |
| storage.type.primitive.groovy | #08DC40de | — |
| storage.type.primitive.java | #0ED3EAde | — |
| storage.type.rune.go | #E180F3de | — |
| storage.type.string.go | #83D60Fde | — |
| storage.type.token.java | #0EDD46de | — |
| storage.type.uintptr.go | #EF7FA2de | — |
| storage.type.variable.cs | #FBB160de | — |
| string | #08DC40de | — |
| string.quoted.docstring.multi.python | #BFBFBF6e | — |
| string.regexp | #F27CA1de | — |
| string.tag | #9898F4de | — |
| string.value | #82D50Fde | — |
| strong | #F07DA1de | — |
| support.class | #82D60Ede | — |
| support.constant.color | #81D50Fde | — |
| support.constant.dom | #0DD3EAde | — |
| support.constant.font-name | #9898F7de | — |
| support.constant.handlebars | #0DD3EAde | — |
| support.constant.json | #9999F2de | — |
| support.constant.math | #7FD609de | — |
| support.constant.media | #9999F3de | — |
| support.constant.media-type | #F0A5FEde | — |
| support.constant.property-value | #9999F1de | — |
| support.function | #9999F2de | — |
| support.function.git-rebase | #FBB15Dde | — |
| support.other.parenthesis.regexp | #ADADFAde | — |
| support.type | #7FD40Bde | — |
| support.type.property-name | #82D50Fde | — |
| support.type.vendored.property-name | #F0A2FEde | — |
| support.variable | #FBB15Dde | — |
| token.debug-token | #0DD2EAde | — |
| token.error-token | #E387F4de | — |
| token.info-token | #FDB05Dde | — |
| token.warn-token | #9E9EF8de | — |
| variable | #81D60Dde | — |
| variable.css | #82D60Ede | — |
| variable.language | #09D3ECde | — |
| variable.language.wildcard.java | #F0B471de | — |
| variable.other.constant | #ADADFAde | — |
| variable.other.definition.java | #9999F4de | — |
| variable.other.enummember | #80D60Ade | — |
| variable.other.less | #81D50Fde | — |
| variable.other.object.java | #80D60Ade | — |
| variable.other.object.property.java | #9898F5de | — |
| variable.parameter.c | #FBB15Cde | — |
| variable.parameter.function.language.python | #F27CA1de | — |
| variable.parameter.java | #ADADFAde | — |
| variable.scss | #0ED3EAde | — |
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}!`;
}