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 | #3939B26e | — |
| comment.block.html | #3939B16e | — |
| comment.block.java | #3939B16e | — |
| comment.block.javadoc.java | #3B3BAE6e | — |
| comment.block.powershell | #3B3BAE6e | — |
| comment.block.xml | #3939B46e | — |
| comment.line.double-slash.c | #3939B16e | — |
| comment.line.double-slash.cpp | #3B3BAE6e | — |
| comment.line.double-slash.java | #3939B46e | — |
| comment.line.double-slash.js | #3939B26e | — |
| comment.line.number-sign.makefile | #3B3BAE6e | — |
| comment.line.number-sign.python | #3939B46e | — |
| comment.line.number-sign.yaml | #3939B46e | — |
| comment.line.percentage.erlang | #3939B46e | — |
| comment.line.powershell | #3939B46e | — |
| comment.source.cmake | #3B3BAE6e | — |
| comment.source.cmakecache | #3939B46e | — |
| constant.character | #315308de | — |
| constant.character.character-class.regexp | #0A525Bde | — |
| constant.character.escape | #0909B5de | — |
| constant.character.set.regexp | #960938de | — |
| constant.language | #074750de | — |
| constant.numeric | #862547de | — |
| constant.numeric.dec.python | #7D04A0de | — |
| constant.other.caps.python | #62441Fde | — |
| constant.other.character-class.regexp | #09561Ade | — |
| constant.other.character-class.set.regexp | #32530Ade | — |
| constant.other.color.rgb-value | #0A571Bde | — |
| constant.other.placeholder | #2A2AB8de | — |
| constant.other.rgb-value | #5A226Ade | — |
| constant.regexp | #7E08A0de | — |
| constant.sha.git-rebase | #335409de | — |
| emphasis | #6D410Ade | — |
| entity.name.class | #0A581Bde | — |
| entity.name.function | #662479de | — |
| entity.name.function.preprocessor | #892647de | — |
| entity.name.function.python | #28289Fde | — |
| entity.name.label | #62441Fde | — |
| entity.name.namespace | #73258Ade | — |
| entity.name.operator | #74268Ade | — |
| entity.name.operator.custom-literal | #76268Dde | — |
| entity.name.scope-resolution | #315406de | — |
| entity.name.tag | #542063de | — |
| entity.name.tag.css | #074148de | — |
| entity.name.type | #6D410Ade | bold |
| entity.name.variable | #8A2546de | — |
| entity.other.attribute | #09571Bde | — |
| entity.other.attribute-name | #335409de | — |
| entity.other.attribute-name.class.css | #6E410Ade | — |
| entity.other.attribute-name.class.mixin.css | #47331Ade | — |
| entity.other.attribute-name.id | #335409de | — |
| entity.other.attribute-name.id.css | #094E56de | — |
| entity.other.attribute-name.parent-selector.css | #6D410Ade | — |
| entity.other.attribute-name.pseudo-class.css | #09525Cde | — |
| entity.other.attribute-name.pseudo-element.css | #990536de | — |
| entity.other.attribute-name.scss | #325407de | — |
| entity.other.document.begin.yaml | #3939B46e | — |
| entity.other.inherited-class | #08464Ede | bold |
| header | #1D542Ade | — |
| invalid | #09525Cde | — |
| keyword | #374E1Cde | bold |
| keyword.codetag.notation.python | #970A39de | bold |
| keyword.control | #1A4724de | bold |
| keyword.control.anchor.regexp | #980838de | bold |
| keyword.control.import.python | #4E371Cde | bold |
| keyword.operator | #6E4008de | bold |
| keyword.operator.alignas | #085619de | bold |
| keyword.operator.alignof | #872645de | bold |
| keyword.operator.cast | #325309de | bold |
| keyword.operator.delete | #6D410Ade | bold |
| keyword.operator.documentation.powershell | #3B3BAE6e | bold |
| keyword.operator.expression | #6E4006de | bold |
| keyword.operator.instanceof | #2A2AD5de | bold |
| keyword.operator.logical.python | #6C2580de | bold |
| keyword.operator.minus.exponent | #74268Ade | bold |
| keyword.operator.negation.regexp | #970838de | bold |
| keyword.operator.new | #282898de | bold |
| keyword.operator.noexcept | #183B40de | bold |
| keyword.operator.or.regexp | #792440de | bold |
| keyword.operator.plus.exponent | #315306de | bold |
| keyword.operator.quantifier.regexp | #980637de | bold |
| keyword.operator.sizeof | #0808BEde | bold |
| keyword.operator.typeid | #6E410Ade | bold |
| keyword.operator.wordlike | #2929A7de | bold |
| keyword.other.operator | #075017de | bold |
| keyword.other.package.java | #73268Cde | bold |
| keyword.other.unit | #882645de | bold |
| keyword.other.using | #862547de | bold |
| markup.bold | #184021de | — |
| markup.changed | #1D5429de | — |
| markup.deleted | #093E45de | — |
| markup.fenced_code.block.markdown | #2C2CD5de | — |
| markup.heading | #335409de | — |
| markup.inline.raw | #2929B0de | — |
| markup.inserted | #325409de | — |
| markup.italic | #7C089Ede | — |
| markup.raw.block.markdown | #2C2CD5de | — |
| markup.strikethrough | #47331Ade | — |
| markup.underline | #0A535Cde | — |
| meta.block.c | #2C2CD5de | — |
| meta.block.c | #1A4724de | — |
| meta.class.java | #662479de | — |
| meta.definition.variable.name | #6C400Ade | — |
| meta.diff.header | #085619de | — |
| meta.embedded | #73268Cde | — |
| meta.embedded.assembly | #0A581Bde | — |
| meta.function-call.arguments.python | #960938de | — |
| meta.function-call.python | #2A2AC9de | — |
| meta.member.access.python | #335409de | — |
| meta.method.java | #960938de | — |
| meta.object-literal.key | #862545de | — |
| meta.paragraph.markdown | #792440de | — |
| meta.preprocessor | #2C2CD5de | — |
| meta.preprocessor.numeric | #980737de | — |
| meta.preprocessor.string | #7E099Fde | — |
| meta.scope.prerequisites.makefile | #0A581Bde | — |
| meta.structure.dictionary.json.comments | #3B3BAE6e | — |
| meta.structure.dictionary.key.python | #6C400Ade | — |
| meta.structure.dictionary.value.json.comments | #3B3BAE6e | — |
| meta.template.expression | #73268Ade | — |
| meta.type.cast.expr | #33540Ade | — |
| meta.type.new.expr | #0A535Cde | — |
| parameter | #335409de | — |
| punctuation.character.set.begin.regexp | #543C1Dde | — |
| punctuation.character.set.end.regexp | #33540Ade | — |
| punctuation.definition.array.begin.json | #644520de | — |
| punctuation.definition.character-class.regexp | #32530Ade | — |
| punctuation.definition.comment | #3939B16e | — |
| punctuation.definition.comment.json.comments | #3939B16e | — |
| punctuation.definition.comment.python | #3939B46e | — |
| punctuation.definition.dictionary.begin.json | #990536de | — |
| punctuation.definition.dictionary.end.json | #0A571Bde | — |
| punctuation.definition.group.assertion.regexp | #7D0A9Ede | — |
| punctuation.definition.group.regexp | #624620de | — |
| punctuation.definition.list.begin.json | #960A39de | — |
| punctuation.definition.list.begin.markdown | #47331Ade | — |
| punctuation.definition.list.begin.python | #2A2AC0de | — |
| punctuation.definition.list.end.json | #0808B8de | — |
| punctuation.definition.list.end.markdown | #1A4724de | — |
| punctuation.definition.list.end.python | #2C2CD5de | — |
| punctuation.definition.parameters.begin.python | #632036de | — |
| punctuation.definition.parameters.end.bracket.round.java | #542063de | — |
| punctuation.definition.quote.begin.markdown | #6E4008de | — |
| punctuation.definition.tag | #2B2BD5de | — |
| punctuation.definition.template-expression.begin | #1D5529de | — |
| punctuation.definition.template-expression.end | #74268Bde | — |
| punctuation.section.class.begin.bracket.curly.java | #09535Cde | — |
| punctuation.section.embedded | #73268Cde | — |
| punctuation.section.embedded.begin.php | #094516de | — |
| punctuation.section.embedded.end.php | #074750de | — |
| punctuation.terminator.java | #2A2AD5de | — |
| source.cmake | #980637de | — |
| source.coffee.embedded | #184021de | — |
| source.cpp | #980738de | — |
| source.css.less | #980436de | — |
| source.groovy.embedded | #6D4109de | — |
| source.java | #882647de | — |
| source.java-properties | #0A4D55de | — |
| source.json.comments | #3939B26e | — |
| source.makefile | #2B2BD5de | — |
| source.powershell | #4E371Cde | — |
| source.powershell.variable.other.member | #325309de | — |
| source.python | #6E4006de | — |
| storage | #09571Bde | — |
| storage.modifier | #0A571Bde | — |
| storage.modifier.import.java | #1D542Ade | — |
| storage.modifier.package.java | #084E56de | — |
| storage.type | #960A39de | bold |
| storage.type.annotation.groovy | #76268Dde | bold |
| storage.type.annotation.java | #2929B0de | bold |
| storage.type.boolean.go | #262688de | bold |
| storage.type.byte.go | #374E1Cde | bold |
| storage.type.cs | #085619de | bold |
| storage.type.error.go | #32530Ade | bold |
| storage.type.generic.cs | #1D542Ade | bold |
| storage.type.generic.groovy | #6D4009de | bold |
| storage.type.generic.java | #32530Ade | bold |
| storage.type.groovy | #6C400Ade | bold |
| storage.type.java | #862547de | bold |
| storage.type.modifier.cs | #0A571Bde | bold |
| storage.type.numeric.go | #335409de | bold |
| storage.type.object.array.groovy | #634520de | bold |
| storage.type.object.array.java | #282898de | bold |
| storage.type.parameters.groovy | #6D410Ade | bold |
| storage.type.primitive.array.groovy | #5C411Fde | bold |
| storage.type.primitive.array.java | #7D099Ede | bold |
| storage.type.primitive.groovy | #08464Ede | bold |
| storage.type.primitive.java | #1D5159de | bold |
| storage.type.rune.go | #2A2AD1de | bold |
| storage.type.string.go | #7E03A3de | bold |
| storage.type.token.java | #09571Bde | bold |
| storage.type.uintptr.go | #73268Ade | bold |
| storage.type.variable.cs | #094E56de | bold |
| string | #0A525Bde | — |
| string.quoted.docstring.multi.python | #3939B26e | — |
| string.regexp | #6D4109de | — |
| string.tag | #74268Bde | — |
| string.value | #7D099Fde | — |
| strong | #4E371Cde | — |
| support.class | #325407de | — |
| support.constant.color | #970838de | — |
| support.constant.dom | #980838de | — |
| support.constant.font-name | #960939de | — |
| support.constant.handlebars | #2C2CD5de | — |
| support.constant.json | #6C400Ade | — |
| support.constant.math | #7E03A3de | — |
| support.constant.media | #4E371Cde | — |
| support.constant.media-type | #084E56de | — |
| support.constant.property-value | #73268Cde | — |
| support.function | #7D059Fde | — |
| support.function.git-rebase | #632036de | — |
| support.other.parenthesis.regexp | #624620de | — |
| support.type | #335409de | bold |
| support.type.property-name | #970838de | bold |
| support.type.vendored.property-name | #792440de | bold |
| support.variable | #2C2CD5de | — |
| token.debug-token | #892647de | — |
| token.error-token | #882647de | — |
| token.info-token | #0A571Bde | — |
| token.warn-token | #085619de | — |
| variable | #6E4006de | — |
| variable.css | #6D4009de | — |
| variable.language | #2E4018de | — |
| variable.language.wildcard.java | #1C484Ede | — |
| variable.other.constant | #0A535Cde | — |
| variable.other.definition.java | #183B40de | — |
| variable.other.enummember | #542063de | — |
| variable.other.less | #7D069Fde | — |
| variable.other.object.java | #085619de | — |
| variable.other.object.property.java | #0A535Cde | — |
| variable.parameter.c | #6E4109de | — |
| variable.parameter.function.language.python | #2929D5de | — |
| variable.parameter.java | #7C089Ede | — |
| variable.scss | #335409de | — |
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}!`;
}