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 | #27274E6e | — |
| comment.block.html | #27274C6e | — |
| comment.block.java | #27274C6e | — |
| comment.block.javadoc.java | #28284B6e | — |
| comment.block.powershell | #27274E6e | — |
| comment.block.xml | #27274C6e | — |
| comment.line.double-slash.c | #27274E6e | — |
| comment.line.double-slash.cpp | #28284B6e | — |
| comment.line.double-slash.java | #28284C6e | — |
| comment.line.double-slash.js | #28284C6e | — |
| comment.line.number-sign.makefile | #28284C6e | — |
| comment.line.number-sign.python | #27274C6e | — |
| comment.line.number-sign.yaml | #28284B6e | — |
| comment.line.percentage.erlang | #27274E6e | — |
| comment.line.powershell | #27274E6e | — |
| comment.source.cmake | #28284C6e | — |
| comment.source.cmakecache | #28284B6e | — |
| constant.character | #461F1Fde | — |
| constant.character.character-class.regexp | #322055de | — |
| constant.character.escape | #35264Ede | — |
| constant.character.set.regexp | #361C5Cde | — |
| constant.language | #461F1Fde | — |
| constant.numeric | #2D2D2Dde | — |
| constant.numeric.dec.python | #032763de | — |
| constant.other.caps.python | #5D0404de | — |
| constant.other.character-class.regexp | #4F1337de | — |
| constant.other.character-class.set.regexp | #511616de | — |
| constant.other.color.rgb-value | #461F1Fde | — |
| constant.other.placeholder | #194C12de | — |
| constant.other.rgb-value | #0D4C34de | — |
| constant.regexp | #3F3F3Fde | — |
| constant.sha.git-rebase | #4E2626de | — |
| emphasis | #1F2B3Ede | — |
| entity.name.class | #1F3A30de | — |
| entity.name.function | #3C2A5Bde | — |
| entity.name.function.preprocessor | #222D41de | — |
| entity.name.function.python | #1B4C14de | — |
| entity.name.label | #4E1919de | — |
| entity.name.namespace | #5B2A49de | — |
| entity.name.operator | #632B2Bde | — |
| entity.name.operator.custom-literal | #5D0404de | — |
| entity.name.scope-resolution | #1F2B41de | — |
| entity.name.tag | #810753de | — |
| entity.name.tag.css | #20341Dde | — |
| entity.name.type | #461F1Fde | bold |
| entity.name.variable | #0A3204de | — |
| entity.other.attribute | #810753de | — |
| entity.other.attribute-name | #5D0404de | — |
| entity.other.attribute-name.class.css | #472424de | — |
| entity.other.attribute-name.class.mixin.css | #192B45de | — |
| entity.other.attribute-name.id | #4E1919de | — |
| entity.other.attribute-name.id.css | #412222de | — |
| entity.other.attribute-name.parent-selector.css | #2B2B2Bde | — |
| entity.other.attribute-name.pseudo-class.css | #32224Fde | — |
| entity.other.attribute-name.pseudo-element.css | #0D4C34de | — |
| entity.other.attribute-name.scss | #243147de | — |
| entity.other.document.begin.yaml | #27274E6e | — |
| entity.other.inherited-class | #20341Dde | — |
| header | #063303de | — |
| invalid | #5B2A49de | — |
| keyword | #442D6Ade | bold |
| keyword.codetag.notation.python | #360F74de | bold |
| keyword.control | #0F4B34de | bold |
| keyword.control.anchor.regexp | #153025de | bold |
| keyword.control.import.python | #254122de | bold |
| keyword.operator | #431F35de | bold |
| keyword.operator.alignas | #043220de | bold |
| keyword.operator.alignof | #194C12de | bold |
| keyword.operator.cast | #2B2B2Bde | bold |
| keyword.operator.delete | #173213de | bold |
| keyword.operator.documentation.powershell | #28284B6e | bold |
| keyword.operator.expression | #124B36de | bold |
| keyword.operator.instanceof | #224135de | bold |
| keyword.operator.logical.python | #312447de | bold |
| keyword.operator.minus.exponent | #412035de | bold |
| keyword.operator.negation.regexp | #2B2B2Bde | bold |
| keyword.operator.new | #144B36de | bold |
| keyword.operator.noexcept | #233A1Fde | bold |
| keyword.operator.or.regexp | #0D3124de | bold |
| keyword.operator.plus.exponent | #511616de | bold |
| keyword.operator.quantifier.regexp | #2B2B2Bde | bold |
| keyword.operator.sizeof | #112A52de | bold |
| keyword.operator.typeid | #4E2626de | bold |
| keyword.operator.wordlike | #442020de | bold |
| keyword.other.operator | #552844de | bold |
| keyword.other.package.java | #2B2B2Bde | bold |
| keyword.other.unit | #5D0404de | bold |
| keyword.other.using | #153025de | bold |
| markup.bold | #2B2B2Bde | — |
| markup.changed | #402B63de | — |
| markup.deleted | #254122de | — |
| markup.fenced_code.block.markdown | #4E2626de | — |
| markup.heading | #431F35de | — |
| markup.inline.raw | #313131de | — |
| markup.inserted | #1F2B41de | — |
| markup.italic | #3C2A5Bde | — |
| markup.raw.block.markdown | #551111de | — |
| markup.strikethrough | #003894de | — |
| markup.underline | #1B4C14de | — |
| meta.block.c | #243147de | — |
| meta.block.c | #114B36de | — |
| meta.class.java | #570438de | — |
| meta.definition.variable.name | #2D2D2Dde | — |
| meta.diff.header | #1A3017de | — |
| meta.embedded | #570438de | — |
| meta.embedded.assembly | #363636de | — |
| meta.function-call.arguments.python | #132B4Ede | — |
| meta.function-call.python | #402B63de | — |
| meta.member.access.python | #20341Dde | — |
| meta.method.java | #182F26de | — |
| meta.object-literal.key | #20341Dde | — |
| meta.paragraph.markdown | #371765de | — |
| meta.preprocessor | #154D0Dde | — |
| meta.preprocessor.numeric | #4E1919de | — |
| meta.preprocessor.string | #5B2A2Ade | — |
| meta.scope.prerequisites.makefile | #402B63de | — |
| meta.structure.dictionary.json.comments | #28284C6e | — |
| meta.structure.dictionary.key.python | #132B4Ede | — |
| meta.structure.dictionary.value.json.comments | #27274E6e | — |
| meta.template.expression | #032763de | — |
| meta.type.cast.expr | #461F1Fde | bold |
| meta.type.new.expr | #3C2A5Bde | bold |
| parameter | #4E263Fde | — |
| punctuation.character.set.begin.regexp | #442020de | — |
| punctuation.character.set.end.regexp | #442D6Ade | — |
| punctuation.definition.array.begin.json | #491938de | — |
| punctuation.definition.character-class.regexp | #26354Ede | — |
| punctuation.definition.comment | #27274C6e | — |
| punctuation.definition.comment.json.comments | #27274C6e | — |
| punctuation.definition.comment.python | #28284B6e | — |
| punctuation.definition.dictionary.begin.json | #313131de | — |
| punctuation.definition.dictionary.end.json | #313131de | — |
| punctuation.definition.group.assertion.regexp | #043221de | — |
| punctuation.definition.group.regexp | #371765de | — |
| punctuation.definition.list.begin.json | #313131de | — |
| punctuation.definition.list.begin.markdown | #371765de | — |
| punctuation.definition.list.begin.python | #194C12de | — |
| punctuation.definition.list.end.json | #3A3A3Ade | — |
| punctuation.definition.list.end.markdown | #133026de | — |
| punctuation.definition.list.end.python | #322055de | — |
| punctuation.definition.parameters.begin.python | #154D0Dde | — |
| punctuation.definition.parameters.end.bracket.round.java | #360F74de | — |
| punctuation.definition.quote.begin.markdown | #283955de | — |
| punctuation.definition.tag | #1A3017de | — |
| punctuation.definition.template-expression.begin | #552828de | — |
| punctuation.definition.template-expression.end | #173213de | — |
| punctuation.section.class.begin.bracket.curly.java | #2B2B2Bde | — |
| punctuation.section.embedded | #224135de | — |
| punctuation.section.embedded.begin.php | #363636de | — |
| punctuation.section.embedded.end.php | #124B36de | — |
| punctuation.terminator.java | #392855de | — |
| source.cmake | #31234Bde | — |
| source.coffee.embedded | #0A3204de | — |
| source.cpp | #0D4C34de | — |
| source.css.less | #153025de | — |
| source.groovy.embedded | #632B4Ede | — |
| source.java | #284724de | — |
| source.java-properties | #412222de | — |
| source.json.comments | #28284C6e | — |
| source.makefile | #10320Cde | — |
| source.powershell | #5B2A49de | — |
| source.powershell.variable.other.member | #144B36de | — |
| source.python | #461D35de | — |
| storage | #063303de | — |
| storage.modifier | #283955de | — |
| storage.modifier.import.java | #322055de | — |
| storage.modifier.package.java | #2A3C5Bde | — |
| storage.type | #2B2B2Bde | bold |
| storage.type.annotation.groovy | #2A3C5Bde | bold |
| storage.type.annotation.java | #2B2B2Bde | bold |
| storage.type.boolean.go | #47243Ade | bold |
| storage.type.byte.go | #2B4063de | bold |
| storage.type.cs | #570438de | bold |
| storage.type.error.go | #283955de | bold |
| storage.type.generic.cs | #2B2B2Bde | bold |
| storage.type.generic.groovy | #254122de | bold |
| storage.type.generic.java | #461D35de | bold |
| storage.type.groovy | #461D35de | bold |
| storage.type.java | #3F3F3Fde | bold |
| storage.type.modifier.cs | #243147de | bold |
| storage.type.numeric.go | #2B2B2Bde | bold |
| storage.type.object.array.groovy | #224135de | bold |
| storage.type.object.array.java | #192B45de | bold |
| storage.type.parameters.groovy | #10320Cde | bold |
| storage.type.primitive.array.groovy | #320184de | bold |
| storage.type.primitive.array.java | #2A3C5Bde | bold |
| storage.type.primitive.groovy | #6A2D2Dde | bold |
| storage.type.primitive.java | #810753de | bold |
| storage.type.rune.go | #0D3124de | bold |
| storage.type.string.go | #541212de | bold |
| storage.type.token.java | #2B2B2Bde | bold |
| storage.type.uintptr.go | #461F1Fde | bold |
| storage.type.variable.cs | #511616de | bold |
| string | #3F3F3Fde | — |
| string.quoted.docstring.multi.python | #28284B6e | — |
| string.regexp | #632B2Bde | — |
| string.tag | #194C12de | — |
| string.value | #360A78de | — |
| strong | #2B2B2Bde | — |
| support.class | #371765de | — |
| support.constant.color | #363636de | — |
| support.constant.dom | #4C1637de | — |
| support.constant.font-name | #810753de | — |
| support.constant.handlebars | #2A3C5Bde | — |
| support.constant.json | #552828de | — |
| support.constant.math | #361C5Cde | — |
| support.constant.media | #461D35de | — |
| support.constant.media-type | #283955de | bold |
| support.constant.property-value | #5B2A2Ade | — |
| support.function | #424242de | — |
| support.function.git-rebase | #1D342Bde | — |
| support.other.parenthesis.regexp | #184C11de | — |
| support.type | #153025de | bold |
| support.type.property-name | #043220de | bold |
| support.type.vendored.property-name | #153025de | bold |
| support.variable | #0D3124de | — |
| token.debug-token | #164C0Fde | — |
| token.error-token | #184C11de | — |
| token.info-token | #124B36de | — |
| token.warn-token | #254122de | — |
| variable | #31234Bde | — |
| variable.css | #412222de | — |
| variable.language | #1B4C14de | — |
| variable.language.wildcard.java | #551111de | — |
| variable.other.constant | #24473Ade | — |
| variable.other.definition.java | #20341Dde | — |
| variable.other.enummember | #320184de | — |
| variable.other.less | #2B4063de | — |
| variable.other.object.java | #511616de | — |
| variable.other.object.property.java | #192B45de | — |
| variable.parameter.c | #412235de | — |
| variable.parameter.function.language.python | #4C1637de | — |
| variable.parameter.java | #4F1337de | — |
| variable.scss | #35264Ede | — |
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}!`;
}