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 | #27274C6e | — |
| comment.block.html | #27274E6e | — |
| comment.block.java | #27274E6e | — |
| comment.block.javadoc.java | #28284C6e | — |
| comment.block.powershell | #28284B6e | — |
| comment.block.xml | #28284C6e | — |
| comment.line.double-slash.c | #28284C6e | — |
| comment.line.double-slash.cpp | #27274E6e | — |
| comment.line.double-slash.java | #28284C6e | — |
| comment.line.double-slash.js | #28284B6e | — |
| comment.line.number-sign.makefile | #28284C6e | — |
| comment.line.number-sign.python | #28284C6e | — |
| comment.line.number-sign.yaml | #27274E6e | — |
| comment.line.percentage.erlang | #27274E6e | — |
| comment.line.powershell | #27274C6e | — |
| comment.source.cmake | #28284C6e | — |
| comment.source.cmakecache | #27274E6e | — |
| constant.character | #153026de | — |
| constant.character.character-class.regexp | #27334Bde | — |
| constant.character.escape | #0F4B37de | — |
| constant.character.set.regexp | #3E3E23de | — |
| constant.language | #582B49de | — |
| constant.numeric | #153026de | — |
| constant.numeric.dec.python | #373720de | — |
| constant.other.caps.python | #421E37de | — |
| constant.other.character-class.regexp | #032766de | — |
| constant.other.character-class.set.regexp | #2B3A58de | — |
| constant.other.color.rgb-value | #143127de | — |
| constant.other.placeholder | #300781de | — |
| constant.other.rgb-value | #471A3Ade | — |
| constant.regexp | #44440Fde | — |
| constant.sha.git-rebase | #0F4D0Fde | — |
| emphasis | #153026de | — |
| entity.name.class | #5F2D4Ede | — |
| entity.name.function | #232C3Ede | — |
| entity.name.function.preprocessor | #444412de | — |
| entity.name.function.python | #2F2545de | — |
| entity.name.label | #2B3A58de | — |
| entity.name.namespace | #31234Cde | — |
| entity.name.operator | #2F2545de | — |
| entity.name.operator.custom-literal | #512A44de | — |
| entity.name.scope-resolution | #1A2A4Dde | — |
| entity.name.tag | #582B49de | — |
| entity.name.tag.css | #233E23de | — |
| entity.name.type | #043404de | bold |
| entity.name.variable | #551212de | — |
| entity.other.attribute | #5C0404de | — |
| entity.other.attribute-name | #2A3751de | — |
| entity.other.attribute-name.class.css | #551212de | — |
| entity.other.attribute-name.class.mixin.css | #311D5Fde | — |
| entity.other.attribute-name.id | #582B49de | — |
| entity.other.attribute-name.id.css | #27334Bde | — |
| entity.other.attribute-name.parent-selector.css | #521515de | — |
| entity.other.attribute-name.pseudo-class.css | #1E312Bde | — |
| entity.other.attribute-name.pseudo-element.css | #1E312Bde | — |
| entity.other.attribute-name.scss | #262E02de | — |
| entity.other.document.begin.yaml | #27274E6e | — |
| entity.other.inherited-class | #5F2D4Ede | — |
| header | #032766de | — |
| invalid | #5F2D2Dde | — |
| keyword | #3A2B58de | bold |
| keyword.codetag.notation.python | #203730de | bold |
| keyword.control | #013220de | bold |
| keyword.control.anchor.regexp | #003300de | bold |
| keyword.control.import.python | #252F44de | bold |
| keyword.operator | #5D0202de | bold |
| keyword.operator.alignas | #31234Cde | bold |
| keyword.operator.alignof | #254425de | bold |
| keyword.operator.cast | #043223de | bold |
| keyword.operator.delete | #5F2D4Ede | bold |
| keyword.operator.documentation.powershell | #28284C6e | bold |
| keyword.operator.expression | #373720de | bold |
| keyword.operator.instanceof | #1E2A45de | bold |
| keyword.operator.logical.python | #1A2A4Dde | bold |
| keyword.operator.minus.exponent | #2A3751de | bold |
| keyword.operator.negation.regexp | #4B2727de | bold |
| keyword.operator.new | #2D2D02de | bold |
| keyword.operator.noexcept | #2D3E5Fde | bold |
| keyword.operator.or.regexp | #2D3E5Fde | bold |
| keyword.operator.plus.exponent | #013220de | bold |
| keyword.operator.quantifier.regexp | #444411de | bold |
| keyword.operator.sizeof | #212B3Ede | bold |
| keyword.operator.typeid | #44253Ade | bold |
| keyword.operator.wordlike | #311472de | bold |
| keyword.other.operator | #311D5Fde | bold |
| keyword.other.package.java | #233E23de | bold |
| keyword.other.unit | #1E312Bde | bold |
| keyword.other.using | #2D3E5Fde | bold |
| markup.bold | #27334Bde | — |
| markup.changed | #2D2D02de | — |
| markup.deleted | #444412de | — |
| markup.fenced_code.block.markdown | #582B2Bde | — |
| markup.heading | #25443Ade | — |
| markup.inline.raw | #202B42de | — |
| markup.inserted | #551212de | — |
| markup.italic | #4C1638de | — |
| markup.raw.block.markdown | #1E2A45de | — |
| markup.strikethrough | #202B42de | — |
| markup.underline | #33274Bde | — |
| meta.block.c | #31311Ede | — |
| meta.block.c | #373720de | — |
| meta.class.java | #4D1A1Ade | — |
| meta.definition.variable.name | #153026de | — |
| meta.diff.header | #4D1438de | — |
| meta.embedded | #4E133Ade | — |
| meta.embedded.assembly | #471E1Ede | — |
| meta.function-call.arguments.python | #2D2D00de | — |
| meta.function-call.python | #4C1638de | — |
| meta.member.access.python | #132A4Fde | — |
| meta.method.java | #003300de | — |
| meta.object-literal.key | #0A320Ade | — |
| meta.paragraph.markdown | #203730de | — |
| meta.preprocessor | #512A2Ade | — |
| meta.preprocessor.numeric | #143114de | — |
| meta.preprocessor.string | #4E133Ade | — |
| meta.scope.prerequisites.makefile | #162A4Dde | — |
| meta.structure.dictionary.json.comments | #27274C6e | — |
| meta.structure.dictionary.key.python | #541313de | — |
| meta.structure.dictionary.value.json.comments | #27274E6e | — |
| meta.template.expression | #662F2Fde | — |
| meta.type.cast.expr | #33274Bde | bold |
| meta.type.new.expr | #5C0404de | bold |
| parameter | #2D2D00de | — |
| punctuation.character.set.begin.regexp | #4D1A1Ade | — |
| punctuation.character.set.end.regexp | #043223de | — |
| punctuation.definition.array.begin.json | #203730de | — |
| punctuation.definition.character-class.regexp | #412F66de | — |
| punctuation.definition.comment | #28284C6e | — |
| punctuation.definition.comment.json.comments | #27274E6e | — |
| punctuation.definition.comment.python | #27274E6e | — |
| punctuation.definition.dictionary.begin.json | #0F4D0Fde | — |
| punctuation.definition.dictionary.end.json | #2A3751de | — |
| punctuation.definition.group.assertion.regexp | #5F2D4Ede | — |
| punctuation.definition.group.regexp | #34097Cde | — |
| punctuation.definition.list.begin.json | #551212de | — |
| punctuation.definition.list.begin.markdown | #1E311Ede | — |
| punctuation.definition.list.begin.python | #233E35de | — |
| punctuation.definition.list.end.json | #312153de | — |
| punctuation.definition.list.end.markdown | #551212de | — |
| punctuation.definition.list.end.python | #143114de | — |
| punctuation.definition.parameters.begin.python | #2B3A58de | — |
| punctuation.definition.parameters.end.bracket.round.java | #444425de | — |
| punctuation.definition.quote.begin.markdown | #512A2Ade | — |
| punctuation.definition.tag | #421E37de | — |
| punctuation.definition.template-expression.begin | #1E311Ede | — |
| punctuation.definition.template-expression.end | #31234Cde | — |
| punctuation.section.class.begin.bracket.curly.java | #143114de | — |
| punctuation.section.embedded | #31234Cde | — |
| punctuation.section.embedded.begin.php | #232C3Ede | — |
| punctuation.section.embedded.end.php | #442121de | — |
| punctuation.terminator.java | #44440Fde | — |
| source.cmake | #312153de | — |
| source.coffee.embedded | #0B3125de | — |
| source.cpp | #043404de | — |
| source.css.less | #312549de | — |
| source.groovy.embedded | #203720de | — |
| source.java | #232C3Ede | — |
| source.java-properties | #44440Fde | — |
| source.json.comments | #28284C6e | — |
| source.makefile | #203720de | — |
| source.powershell | #442121de | — |
| source.powershell.variable.other.member | #154C15de | — |
| source.python | #153115de | — |
| storage | #5F2D2Dde | — |
| storage.modifier | #4D1438de | — |
| storage.modifier.import.java | #112957de | — |
| storage.modifier.package.java | #254425de | — |
| storage.type | #412036de | bold |
| storage.type.annotation.groovy | #154B39de | bold |
| storage.type.annotation.java | #2D2D02de | bold |
| storage.type.boolean.go | #512A2Ade | bold |
| storage.type.byte.go | #5F2D2Dde | bold |
| storage.type.cs | #442525de | bold |
| storage.type.error.go | #33274Bde | bold |
| storage.type.generic.cs | #0C4D0Cde | bold |
| storage.type.generic.groovy | #3E3E23de | bold |
| storage.type.generic.java | #254425de | bold |
| storage.type.groovy | #233E23de | bold |
| storage.type.java | #5F2D4Ede | bold |
| storage.type.modifier.cs | #5F2D4Ede | bold |
| storage.type.numeric.go | #57043Cde | bold |
| storage.type.object.array.groovy | #2D2D02de | bold |
| storage.type.object.array.java | #57043Cde | bold |
| storage.type.parameters.groovy | #153026de | bold |
| storage.type.primitive.array.groovy | #252F44de | bold |
| storage.type.primitive.array.java | #0B3125de | bold |
| storage.type.primitive.groovy | #444412de | bold |
| storage.type.primitive.java | #2D2D00de | bold |
| storage.type.rune.go | #2C2C10de | bold |
| storage.type.string.go | #154C15de | bold |
| storage.type.token.java | #5D0202de | bold |
| storage.type.uintptr.go | #114D11de | bold |
| storage.type.variable.cs | #3A2B58de | bold |
| string | #203720de | — |
| string.quoted.docstring.multi.python | #27274E6e | — |
| string.regexp | #043404de | — |
| string.tag | #582B49de | — |
| string.value | #521515de | — |
| strong | #1E311Ede | — |
| support.class | #0C4D0Cde | — |
| support.constant.color | #013220de | — |
| support.constant.dom | #2D2D00de | — |
| support.constant.font-name | #162A4Dde | — |
| support.constant.handlebars | #5F2D4Ede | — |
| support.constant.json | #4D1438de | — |
| support.constant.math | #134B38de | — |
| support.constant.media | #4B2727de | — |
| support.constant.media-type | #512A44de | bold |
| support.constant.property-value | #5F2D2Dde | — |
| support.function | #512A2Ade | — |
| support.function.git-rebase | #372A51de | — |
| support.other.parenthesis.regexp | #2D2D02de | — |
| support.type | #412F66de | bold |
| support.type.property-name | #57043Cde | bold |
| support.type.vendored.property-name | #254425de | bold |
| support.variable | #043404de | — |
| token.debug-token | #114B38de | — |
| token.error-token | #043223de | — |
| token.info-token | #203730de | — |
| token.warn-token | #114D11de | — |
| variable | #0D4B37de | — |
| variable.css | #311D5Fde | — |
| variable.language | #340C7Ade | — |
| variable.language.wildcard.java | #2D2D00de | — |
| variable.other.constant | #2B3A58de | — |
| variable.other.definition.java | #1A2A4Dde | — |
| variable.other.enummember | #124D12de | — |
| variable.other.less | #33274Bde | — |
| variable.other.object.java | #0A320Ade | — |
| variable.other.object.property.java | #0C4D0Cde | — |
| variable.parameter.c | #521515de | — |
| variable.parameter.function.language.python | #5F2D4Ede | — |
| variable.parameter.java | #4D1438de | — |
| variable.scss | #143127de | — |
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}!`;
}