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 | #4C4C4C6e | — |
| comment.block.javadoc.java | #4D4D4D6e | — |
| comment.block.powershell | #4D4D4D6e | — |
| comment.block.xml | #4E4E4E6e | — |
| comment.line.double-slash.c | #4D4D4D6e | — |
| comment.line.double-slash.cpp | #4C4C4C6e | — |
| comment.line.double-slash.java | #4E4E4E6e | — |
| comment.line.double-slash.js | #4C4C4C6e | — |
| comment.line.number-sign.makefile | #4C4C4C6e | — |
| comment.line.number-sign.python | #4D4D4D6e | — |
| comment.line.number-sign.yaml | #4E4E4E6e | — |
| comment.line.percentage.erlang | #4D4D4D6e | — |
| comment.line.powershell | #4D4D4D6e | — |
| comment.source.cmake | #4D4D4D6e | — |
| comment.source.cmakecache | #4D4D4D6e | — |
| constant.character | #84296Dde | — |
| constant.character.character-class.regexp | #21533Dde | — |
| constant.character.escape | #950772de | — |
| constant.character.set.regexp | #195A0Ade | — |
| constant.language | #223E5Ade | — |
| constant.numeric | #0A5937de | — |
| constant.numeric.dec.python | #8F2B2Bde | — |
| constant.other.caps.python | #195B0Ade | — |
| constant.other.character-class.regexp | #195B0Ade | — |
| constant.other.character-class.set.regexp | #28517Bde | — |
| constant.other.color.rgb-value | #832A6Cde | — |
| constant.other.placeholder | #4C461Fde | — |
| constant.other.rgb-value | #950972de | — |
| constant.regexp | #215640de | — |
| constant.sha.git-rebase | #84296Dde | — |
| emphasis | #0A5937de | — |
| entity.name.class | #5A2EBDde | — |
| entity.name.function | #930B71de | — |
| entity.name.function.preprocessor | #A00707de | — |
| entity.name.function.python | #A20505de | — |
| entity.name.label | #0B5936de | — |
| entity.name.namespace | #582EB5de | — |
| entity.name.operator | #84296Dde | — |
| entity.name.operator.custom-literal | #582EB5de | — |
| entity.name.scope-resolution | #930B70de | — |
| entity.name.tag | #594F0Bde | — |
| entity.name.tag.css | #0B4F93de | — |
| entity.name.type | #950772de | bold |
| entity.name.variable | #0B3E71de | — |
| entity.other.attribute | #215640de | — |
| entity.other.attribute-name | #1B3F2Fde | — |
| entity.other.attribute-name.class.css | #534D21de | — |
| entity.other.attribute-name.class.mixin.css | #285076de | — |
| entity.other.attribute-name.id | #5A2EBCde | — |
| entity.other.attribute-name.id.css | #5A2EBCde | — |
| entity.other.attribute-name.parent-selector.css | #0B3E71de | — |
| entity.other.attribute-name.pseudo-class.css | #093C6Dde | — |
| entity.other.attribute-name.pseudo-element.css | #682557de | — |
| entity.other.attribute-name.scss | #195B09de | — |
| entity.other.document.begin.yaml | #4D4D4D6e | — |
| entity.other.inherited-class | #8F2B2Bde | — |
| header | #84296Dde | — |
| invalid | #165A05de | — |
| keyword | #0B4986de | bold |
| keyword.codetag.notation.python | #8E2A2Ade | bold |
| keyword.control | #84296Dde | bold |
| keyword.control.anchor.regexp | #0B5936de | bold |
| keyword.control.import.python | #095A36de | bold |
| keyword.operator | #A00707de | bold |
| keyword.operator.alignas | #0B5937de | bold |
| keyword.operator.alignof | #930A70de | bold |
| keyword.operator.cast | #274B6Fde | bold |
| keyword.operator.delete | #285076de | bold |
| keyword.operator.documentation.powershell | #4D4D4D6e | bold |
| keyword.operator.expression | #0A5836de | bold |
| keyword.operator.instanceof | #0A3969de | bold |
| keyword.operator.logical.python | #0B5A37de | bold |
| keyword.operator.minus.exponent | #552DADde | bold |
| keyword.operator.negation.regexp | #522DA5de | bold |
| keyword.operator.new | #940A71de | bold |
| keyword.operator.noexcept | #0A3E73de | bold |
| keyword.operator.or.regexp | #5A2EBDde | bold |
| keyword.operator.plus.exponent | #25451Dde | bold |
| keyword.operator.quantifier.regexp | #2A5321de | bold |
| keyword.operator.sizeof | #84296Dde | bold |
| keyword.operator.typeid | #223E5Ade | bold |
| keyword.operator.wordlike | #534D21de | bold |
| keyword.other.operator | #8E2A2Ade | bold |
| keyword.other.package.java | #254768de | bold |
| keyword.other.unit | #582EBBde | bold |
| keyword.other.using | #0B4F93de | bold |
| markup.bold | #832A6Cde | — |
| markup.changed | #A20505de | — |
| markup.deleted | #5A2EBCde | — |
| markup.fenced_code.block.markdown | #1A5A0Bde | — |
| markup.heading | #0B4986de | — |
| markup.inline.raw | #852A6Fde | — |
| markup.inserted | #5A2DBBde | — |
| markup.italic | #5A2EBCde | — |
| markup.raw.block.markdown | #0B4F93de | — |
| markup.strikethrough | #4900E8de | — |
| markup.underline | #093C6Dde | — |
| meta.block.c | #582EBBde | — |
| meta.block.c | #552DADde | — |
| meta.class.java | #0A5A37de | — |
| meta.definition.variable.name | #A10808de | — |
| meta.diff.header | #594F07de | — |
| meta.embedded | #594F0Ade | — |
| meta.embedded.assembly | #0A5937de | — |
| meta.function-call.arguments.python | #0A5937de | — |
| meta.function-call.python | #8E2B2Bde | — |
| meta.member.access.python | #5A2DBAde | — |
| meta.method.java | #1B3F2Fde | — |
| meta.object-literal.key | #0A5937de | — |
| meta.paragraph.markdown | #552DADde | — |
| meta.preprocessor | #274B6Fde | — |
| meta.preprocessor.numeric | #534D21de | — |
| meta.preprocessor.string | #4D05ECde | — |
| meta.scope.prerequisites.makefile | #8D2B2Bde | — |
| meta.structure.dictionary.json.comments | #4D4D4D6e | — |
| meta.structure.dictionary.key.python | #584F09de | — |
| meta.structure.dictionary.value.json.comments | #4C4C4C6e | — |
| meta.template.expression | #762863de | — |
| meta.type.cast.expr | #095533de | bold |
| meta.type.new.expr | #0B4986de | bold |
| parameter | #0B5A38de | — |
| punctuation.character.set.begin.regexp | #0A5534de | — |
| punctuation.character.set.end.regexp | #930A70de | — |
| punctuation.definition.array.begin.json | #0B4681de | — |
| punctuation.definition.character-class.regexp | #564F21de | — |
| punctuation.definition.comment | #4C4C4C6e | — |
| punctuation.definition.comment.json.comments | #4D4D4D6e | — |
| punctuation.definition.comment.python | #4E4E4E6e | — |
| punctuation.definition.dictionary.begin.json | #4D04EDde | — |
| punctuation.definition.dictionary.end.json | #584F0Ade | — |
| punctuation.definition.group.assertion.regexp | #852A6Fde | — |
| punctuation.definition.group.regexp | #8E2A2Ade | — |
| punctuation.definition.list.begin.json | #A20404de | — |
| punctuation.definition.list.begin.markdown | #5A4F09de | — |
| punctuation.definition.list.begin.python | #2B5721de | — |
| punctuation.definition.list.end.json | #0A5836de | — |
| punctuation.definition.list.end.markdown | #584E08de | — |
| punctuation.definition.list.end.python | #8D2B2Bde | — |
| punctuation.definition.parameters.begin.python | #213A53de | — |
| punctuation.definition.parameters.end.bracket.round.java | #4D05ECde | — |
| punctuation.definition.quote.begin.markdown | #1A5B0Ade | — |
| punctuation.definition.tag | #4D04EDde | — |
| punctuation.definition.template-expression.begin | #522DA5de | — |
| punctuation.definition.template-expression.end | #584E0Bde | — |
| punctuation.section.class.begin.bracket.curly.java | #19590Bde | — |
| punctuation.section.embedded | #5A2DBAde | — |
| punctuation.section.embedded.begin.php | #852A6Fde | — |
| punctuation.section.embedded.end.php | #852A6Dde | — |
| punctuation.terminator.java | #3F3A1Bde | — |
| source.cmake | #594F0Bde | — |
| source.coffee.embedded | #195B0Ade | — |
| source.cpp | #244261de | — |
| source.css.less | #8C2B2Bde | — |
| source.groovy.embedded | #223F1Bde | — |
| source.java | #762863de | — |
| source.java-properties | #592EBAde | — |
| source.json.comments | #4D4D4D6e | — |
| source.makefile | #930A70de | — |
| source.powershell | #093C6Dde | — |
| source.powershell.variable.other.member | #0B5937de | — |
| source.python | #45401Dde | — |
| storage | #084429de | — |
| storage.modifier | #185A09de | — |
| storage.modifier.import.java | #8E2A2Ade | — |
| storage.modifier.package.java | #1D4534de | — |
| storage.type | #9F0707de | bold |
| storage.type.annotation.groovy | #0B3E71de | bold |
| storage.type.annotation.java | #5A2EBDde | bold |
| storage.type.boolean.go | #5A2DBAde | bold |
| storage.type.byte.go | #195B0Bde | bold |
| storage.type.cs | #584F0Ade | bold |
| storage.type.error.go | #4C03ECde | bold |
| storage.type.generic.cs | #4900E8de | bold |
| storage.type.generic.groovy | #285076de | bold |
| storage.type.generic.java | #1B3F2Fde | bold |
| storage.type.groovy | #930A70de | bold |
| storage.type.java | #1A5B0Ade | bold |
| storage.type.modifier.cs | #1A590Bde | bold |
| storage.type.numeric.go | #285076de | bold |
| storage.type.object.array.groovy | #175B08de | bold |
| storage.type.object.array.java | #832A6Cde | bold |
| storage.type.parameters.groovy | #534D21de | bold |
| storage.type.primitive.array.groovy | #1A590Bde | bold |
| storage.type.primitive.array.java | #564F21de | bold |
| storage.type.primitive.groovy | #0B4F93de | bold |
| storage.type.primitive.java | #522DA5de | bold |
| storage.type.rune.go | #084F2Fde | bold |
| storage.type.string.go | #29507Bde | bold |
| storage.type.token.java | #1D4534de | bold |
| storage.type.uintptr.go | #45401Dde | bold |
| storage.type.variable.cs | #592EBAde | bold |
| string | #274C1Fde | — |
| string.quoted.docstring.multi.python | #4D4D4D6e | — |
| string.regexp | #2B5721de | — |
| string.tag | #594F07de | — |
| string.value | #594F0Ade | — |
| strong | #852A6Fde | — |
| support.class | #0B5A37de | — |
| support.constant.color | #552DADde | — |
| support.constant.dom | #0A5937de | — |
| support.constant.font-name | #1A5A0Bde | — |
| support.constant.handlebars | #0B4986de | — |
| support.constant.json | #7E2969de | — |
| support.constant.math | #852A2Ade | — |
| support.constant.media | #0B4F93de | — |
| support.constant.media-type | #5A2EBDde | bold |
| support.constant.property-value | #0B4B8Cde | — |
| support.function | #A10808de | — |
| support.function.git-rebase | #1A5A0Bde | — |
| support.other.parenthesis.regexp | #852A6Dde | — |
| support.type | #930B71de | bold |
| support.type.property-name | #0A5937de | bold |
| support.type.vendored.property-name | #223F1Bde | bold |
| support.variable | #534D21de | — |
| token.debug-token | #0B4B8Cde | — |
| token.error-token | #594F06de | — |
| token.info-token | #1A5B0Bde | — |
| token.warn-token | #1A5B0Ade | — |
| variable | #594F0Bde | — |
| variable.css | #0A5937de | — |
| variable.language | #0A5A37de | — |
| variable.language.wildcard.java | #7E2929de | — |
| variable.other.constant | #2B5721de | — |
| variable.other.definition.java | #223F1Bde | — |
| variable.other.enummember | #284F76de | — |
| variable.other.less | #852A6Fde | — |
| variable.other.object.java | #0B5936de | — |
| variable.other.object.property.java | #0B4B8Cde | — |
| variable.parameter.c | #950972de | — |
| variable.parameter.function.language.python | #930B70de | — |
| variable.parameter.java | #0A5A37de | — |
| variable.scss | #6F2727de | — |
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}!`;
}