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 | #5515556e | — |
| comment.block.html | #5515556e | — |
| comment.block.java | #5515556e | — |
| comment.block.javadoc.java | #5514556e | — |
| comment.block.powershell | #5515556e | — |
| comment.block.xml | #5514556e | — |
| comment.line.double-slash.c | #5514556e | — |
| comment.line.double-slash.cpp | #5514556e | — |
| comment.line.double-slash.java | #5515556e | — |
| comment.line.double-slash.js | #5515556e | — |
| comment.line.number-sign.makefile | #3131316e | — |
| comment.line.number-sign.python | #5515556e | — |
| comment.line.number-sign.yaml | #5514556e | — |
| comment.line.percentage.erlang | #5514556e | — |
| comment.line.powershell | #5514556e | — |
| comment.source.cmake | #5515556e | — |
| comment.source.cmakecache | #5515556e | — |
| constant.character | #660B0Bde | — |
| constant.character.character-class.regexp | #0D532Fde | — |
| constant.character.escape | #153903de | — |
| constant.character.set.regexp | #24520Dde | — |
| constant.language | #56460Ade | — |
| constant.numeric | #003A1Bde | — |
| constant.numeric.dec.python | #362076de | — |
| constant.other.caps.python | #56460Ade | — |
| constant.other.character-class.regexp | #641D58de | — |
| constant.other.character-class.set.regexp | #19374Ede | — |
| constant.other.color.rgb-value | #551A4Cde | — |
| constant.other.placeholder | #5C0D4Ede | — |
| constant.other.rgb-value | #1B380Ede | — |
| constant.regexp | #6A0303de | — |
| constant.sha.git-rebase | #003A1Bde | — |
| emphasis | #362076de | — |
| entity.name.class | #2F099Ade | — |
| entity.name.function | #234015de | — |
| entity.name.function.preprocessor | #003A1Bde | — |
| entity.name.function.python | #372077de | — |
| entity.name.label | #19380Ade | — |
| entity.name.namespace | #5C1A1Ade | — |
| entity.name.operator | #361D7Bde | — |
| entity.name.operator.custom-literal | #5D0C4Cde | — |
| entity.name.scope-resolution | #07532Bde | — |
| entity.name.tag | #0C532Ede | — |
| entity.name.tag.css | #2B059Dde | — |
| entity.name.type | #0E532Fde | bold |
| entity.name.variable | #0D3450de | — |
| entity.other.attribute | #55460Ede | — |
| entity.other.attribute-name | #660B0Bde | — |
| entity.other.attribute-name.class.css | #033457de | — |
| entity.other.attribute-name.class.mixin.css | #56460Ade | — |
| entity.other.attribute-name.id | #6A0303de | — |
| entity.other.attribute-name.id.css | #143925de | — |
| entity.other.attribute-name.parent-selector.css | #393114de | — |
| entity.other.attribute-name.pseudo-class.css | #311290de | — |
| entity.other.attribute-name.pseudo-element.css | #1A3C55de | — |
| entity.other.attribute-name.scss | #054A7Dde | — |
| entity.other.document.begin.yaml | #5514556e | — |
| entity.other.inherited-class | #601616de | — |
| header | #5C0D4Ede | — |
| invalid | #0B532Cde | — |
| keyword | #3B3007de | bold |
| keyword.codetag.notation.python | #093920de | bold |
| keyword.control | #24520Ede | bold |
| keyword.control.anchor.regexp | #351C7Ede | bold |
| keyword.control.import.python | #56184Bde | bold |
| keyword.operator | #351C7Ede | bold |
| keyword.operator.alignas | #4E4319de | bold |
| keyword.operator.alignof | #351982de | bold |
| keyword.operator.cast | #6B1E5Fde | bold |
| keyword.operator.delete | #1C380Fde | bold |
| keyword.operator.documentation.powershell | #3131316e | bold |
| keyword.operator.expression | #0E532Fde | bold |
| keyword.operator.instanceof | #19374Ede | bold |
| keyword.operator.logical.python | #205209de | bold |
| keyword.operator.minus.exponent | #631010de | bold |
| keyword.operator.negation.regexp | #24520Dde | bold |
| keyword.operator.new | #24520Dde | bold |
| keyword.operator.noexcept | #6B1E1Ede | bold |
| keyword.operator.or.regexp | #003A1Bde | bold |
| keyword.operator.plus.exponent | #351982de | bold |
| keyword.operator.quantifier.regexp | #19374Ede | bold |
| keyword.operator.sizeof | #0E532Fde | bold |
| keyword.operator.typeid | #10344Dde | bold |
| keyword.operator.wordlike | #14344Bde | bold |
| keyword.other.operator | #0B532Cde | bold |
| keyword.other.package.java | #55460Bde | bold |
| keyword.other.unit | #15402Ade | bold |
| keyword.other.using | #15402Ade | bold |
| markup.bold | #361F77de | — |
| markup.changed | #55460Bde | — |
| markup.deleted | #294E19de | — |
| markup.fenced_code.block.markdown | #11344Dde | — |
| markup.heading | #234015de | — |
| markup.inline.raw | #3B3007de | — |
| markup.inserted | #16344Ade | — |
| markup.italic | #5C0C4Fde | — |
| markup.raw.block.markdown | #1E4B6Bde | — |
| markup.strikethrough | #564608de | — |
| markup.underline | #361D7Bde | — |
| meta.block.c | #551A4Cde | — |
| meta.block.c | #17472Ede | — |
| meta.class.java | #234015de | — |
| meta.definition.variable.name | #07532Bde | — |
| meta.diff.header | #5C1C1Cde | — |
| meta.embedded | #3B3007de | — |
| meta.embedded.assembly | #5F1717de | — |
| meta.function-call.arguments.python | #0E3450de | — |
| meta.function-call.python | #14344Bde | — |
| meta.member.access.python | #5D084Fde | — |
| meta.method.java | #0D3450de | — |
| meta.object-literal.key | #351C7Ede | — |
| meta.paragraph.markdown | #17472Ede | — |
| meta.preprocessor | #22520Cde | — |
| meta.preprocessor.numeric | #5D1919de | — |
| meta.preprocessor.string | #2B059Dde | — |
| meta.scope.prerequisites.makefile | #371F79de | — |
| meta.structure.dictionary.json.comments | #5515556e | — |
| meta.structure.dictionary.key.python | #6B1E5Fde | — |
| meta.structure.dictionary.value.json.comments | #5515556e | — |
| meta.template.expression | #5C1C1Cde | — |
| meta.type.cast.expr | #641D58de | bold |
| meta.type.new.expr | #631010de | bold |
| parameter | #564606de | — |
| punctuation.character.set.begin.regexp | #07532Bde | — |
| punctuation.character.set.end.regexp | #393111de | — |
| punctuation.definition.array.begin.json | #5D1919de | — |
| punctuation.definition.character-class.regexp | #033457de | — |
| punctuation.definition.comment | #5515556e | — |
| punctuation.definition.comment.json.comments | #5514556e | — |
| punctuation.definition.comment.python | #3131316e | — |
| punctuation.definition.dictionary.begin.json | #5A114Dde | — |
| punctuation.definition.dictionary.end.json | #56184Bde | — |
| punctuation.definition.group.assertion.regexp | #351982de | — |
| punctuation.definition.group.regexp | #19374Ede | — |
| punctuation.definition.list.begin.json | #564608de | — |
| punctuation.definition.list.begin.markdown | #11344Dde | — |
| punctuation.definition.list.begin.python | #0F3823de | — |
| punctuation.definition.list.end.json | #003A1Bde | — |
| punctuation.definition.list.end.markdown | #5C1C1Cde | — |
| punctuation.definition.list.end.python | #1A3C55de | — |
| punctuation.definition.parameters.begin.python | #55460Ede | — |
| punctuation.definition.parameters.end.bracket.round.java | #5D1919de | — |
| punctuation.definition.quote.begin.markdown | #351687de | — |
| punctuation.definition.tag | #07532Bde | — |
| punctuation.definition.template-expression.begin | #55174Bde | — |
| punctuation.definition.template-expression.end | #5D1919de | — |
| punctuation.section.class.begin.bracket.curly.java | #0D532Fde | — |
| punctuation.section.embedded | #205209de | — |
| punctuation.section.embedded.begin.php | #351687de | — |
| punctuation.section.embedded.end.php | #5D084Fde | — |
| punctuation.terminator.java | #601616de | — |
| source.cmake | #641D58de | — |
| source.coffee.embedded | #641D1Dde | — |
| source.cpp | #564606de | — |
| source.css.less | #361E78de | — |
| source.groovy.embedded | #5C1C52de | — |
| source.java | #361E78de | — |
| source.java-properties | #393111de | — |
| source.json.comments | #5515556e | — |
| source.makefile | #24520Dde | — |
| source.powershell | #0D3450de | — |
| source.powershell.variable.other.member | #24520Ede | — |
| source.python | #56184Bde | — |
| storage | #16344Ade | — |
| storage.modifier | #372077de | — |
| storage.modifier.import.java | #55460Ede | — |
| storage.modifier.package.java | #0C532Ede | — |
| storage.type | #660B0Bde | bold |
| storage.type.annotation.groovy | #003A1Bde | bold |
| storage.type.annotation.java | #5C1C52de | bold |
| storage.type.boolean.go | #58144Dde | bold |
| storage.type.byte.go | #2F0C96de | bold |
| storage.type.cs | #234015de | bold |
| storage.type.error.go | #403715de | bold |
| storage.type.generic.cs | #5C1C1Cde | bold |
| storage.type.generic.groovy | #093920de | bold |
| storage.type.generic.java | #56184Bde | bold |
| storage.type.groovy | #11344Dde | bold |
| storage.type.java | #5A114Dde | bold |
| storage.type.modifier.cs | #362076de | bold |
| storage.type.numeric.go | #1E4B6Bde | bold |
| storage.type.object.array.groovy | #205209de | bold |
| storage.type.object.array.java | #641D1Dde | bold |
| storage.type.parameters.groovy | #19374Ede | bold |
| storage.type.primitive.array.groovy | #22520Cde | bold |
| storage.type.primitive.array.java | #1D4664de | bold |
| storage.type.primitive.groovy | #234015de | bold |
| storage.type.primitive.java | #0C532Ede | bold |
| storage.type.rune.go | #153903de | bold |
| storage.type.string.go | #351687de | bold |
| storage.type.token.java | #58144Dde | bold |
| storage.type.uintptr.go | #14344Bde | bold |
| storage.type.variable.cs | #19374Ede | bold |
| string | #721F65de | — |
| string.quoted.docstring.multi.python | #5515556e | — |
| string.regexp | #0B532Cde | — |
| string.tag | #24520Dde | — |
| string.value | #205209de | — |
| strong | #003A1Bde | — |
| support.class | #19380Ade | — |
| support.constant.color | #5D1919de | — |
| support.constant.dom | #361E78de | — |
| support.constant.font-name | #361F77de | — |
| support.constant.handlebars | #294E19de | — |
| support.constant.json | #1A3C55de | — |
| support.constant.math | #033A1Ede | — |
| support.constant.media | #55460Bde | — |
| support.constant.media-type | #680606de | bold |
| support.constant.property-value | #1C415Cde | — |
| support.function | #680606de | — |
| support.function.git-rebase | #6B1E5Fde | — |
| support.other.parenthesis.regexp | #1C415Cde | — |
| support.type | #403715de | bold |
| support.type.property-name | #033457de | bold |
| support.type.vendored.property-name | #351982de | bold |
| support.variable | #0D3450de | — |
| token.debug-token | #143925de | — |
| token.error-token | #4E4319de | — |
| token.info-token | #721F1Fde | — |
| token.warn-token | #5C1C1Cde | — |
| variable | #5C0C4Fde | — |
| variable.css | #361E78de | — |
| variable.language | #1B380Ede | — |
| variable.language.wildcard.java | #551A4Cde | — |
| variable.other.constant | #0D3450de | — |
| variable.other.definition.java | #19380Ade | — |
| variable.other.enummember | #054A7Dde | — |
| variable.other.less | #55470Dde | — |
| variable.other.object.java | #55460Ede | — |
| variable.other.object.property.java | #6A0303de | — |
| variable.parameter.c | #551A4Cde | — |
| variable.parameter.function.language.python | #093920de | — |
| variable.parameter.java | #55460Ede | — |
| variable.scss | #5F1717de | — |
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}!`;
}