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 | #5E4A2B6e | — |
| comment.block.html | #584A2D6e | — |
| comment.block.java | #5E4A2B6e | — |
| comment.block.javadoc.java | #5A4B2C6e | — |
| comment.block.powershell | #5E4A2B6e | — |
| comment.block.xml | #5B482C6e | — |
| comment.line.double-slash.c | #5A4B2C6e | — |
| comment.line.double-slash.cpp | #5E4A2B6e | — |
| comment.line.double-slash.java | #5E4A2B6e | — |
| comment.line.double-slash.js | #5B482C6e | — |
| comment.line.number-sign.makefile | #5B482C6e | — |
| comment.line.number-sign.python | #5A4B2C6e | — |
| comment.line.number-sign.yaml | #5B482C6e | — |
| comment.line.percentage.erlang | #5B482C6e | — |
| comment.line.powershell | #5E4A2B6e | — |
| comment.source.cmake | #5B482C6e | — |
| comment.source.cmakecache | #5B482C6e | — |
| constant.character | #0B2E96de | — |
| constant.character.character-class.regexp | #0A5749de | — |
| constant.character.escape | #773B28de | — |
| constant.character.set.regexp | #095509de | — |
| constant.language | #095547de | — |
| constant.numeric | #0B5647de | — |
| constant.numeric.dec.python | #084F41de | — |
| constant.other.caps.python | #0A2B90de | — |
| constant.other.character-class.regexp | #1D453Ede | — |
| constant.other.character-class.set.regexp | #622B8Dde | — |
| constant.other.color.rgb-value | #095648de | — |
| constant.other.placeholder | #682547de | — |
| constant.other.rgb-value | #082C97de | — |
| constant.regexp | #383F1Bde | — |
| constant.sha.git-rebase | #0B590Bde | — |
| emphasis | #980A51de | — |
| entity.name.class | #6C2C9Cde | — |
| entity.name.function | #922603de | — |
| entity.name.function.preprocessor | #8D2C0Bde | — |
| entity.name.function.python | #0A5749de | — |
| entity.name.label | #542876de | — |
| entity.name.namespace | #072B99de | — |
| entity.name.operator | #44510Ade | — |
| entity.name.operator.custom-literal | #842956de | — |
| entity.name.scope-resolution | #763B28de | — |
| entity.name.tag | #8E2907de | — |
| entity.name.tag.css | #45530Ade | — |
| entity.name.type | #45520Ade | bold |
| entity.name.variable | #45530Bde | — |
| entity.other.attribute | #773D28de | — |
| entity.other.attribute-name | #872A57de | — |
| entity.other.attribute-name.class.css | #3E451Dde | — |
| entity.other.attribute-name.class.mixin.css | #45520Bde | — |
| entity.other.attribute-name.id | #1D451Dde | — |
| entity.other.attribute-name.id.css | #45530Ade | — |
| entity.other.attribute-name.parent-selector.css | #532D21de | — |
| entity.other.attribute-name.pseudo-class.css | #980951de | — |
| entity.other.attribute-name.pseudo-element.css | #383F1Bde | — |
| entity.other.attribute-name.scss | #683625de | — |
| entity.other.document.begin.yaml | #584A2D6e | — |
| entity.other.inherited-class | #0A590Ade | — |
| header | #980A51de | — |
| invalid | #6F274Bde | — |
| keyword | #8B2B0Bde | bold |
| keyword.codetag.notation.python | #27396Fde | bold |
| keyword.control | #0A5648de | bold |
| keyword.control.anchor.regexp | #21534Ade | bold |
| keyword.control.import.python | #960A50de | bold |
| keyword.operator | #215621de | bold |
| keyword.operator.alignas | #622B8Dde | bold |
| keyword.operator.alignof | #215721de | bold |
| keyword.operator.cast | #095648de | bold |
| keyword.operator.delete | #773C28de | bold |
| keyword.operator.documentation.powershell | #5E4A2B6e | bold |
| keyword.operator.expression | #27396Fde | bold |
| keyword.operator.instanceof | #4B2568de | bold |
| keyword.operator.logical.python | #44510Ade | bold |
| keyword.operator.minus.exponent | #763B28de | bold |
| keyword.operator.negation.regexp | #0B5749de | bold |
| keyword.operator.new | #0B5647de | bold |
| keyword.operator.noexcept | #8E2908de | bold |
| keyword.operator.or.regexp | #45520Bde | bold |
| keyword.operator.plus.exponent | #45530Ade | bold |
| keyword.operator.quantifier.regexp | #2C469Ade | bold |
| keyword.operator.sizeof | #0B31A1de | bold |
| keyword.operator.typeid | #0A590Ade | bold |
| keyword.operator.wordlike | #682547de | bold |
| keyword.other.operator | #862A58de | bold |
| keyword.other.package.java | #4F276Fde | bold |
| keyword.other.unit | #45530Ade | bold |
| keyword.other.using | #793C28de | bold |
| markup.bold | #6C2C9Fde | — |
| markup.changed | #0B5A0Bde | — |
| markup.deleted | #8E2B0Ade | — |
| markup.fenced_code.block.markdown | #622B8Dde | — |
| markup.heading | #852A56de | — |
| markup.inline.raw | #4B2568de | — |
| markup.inserted | #6A2C9Dde | — |
| markup.italic | #45530Ade | — |
| markup.raw.block.markdown | #0A590Ade | — |
| markup.strikethrough | #445308de | — |
| markup.underline | #842957de | — |
| meta.block.c | #2C4798de | — |
| meta.block.c | #082C97de | — |
| meta.class.java | #692C9Bde | — |
| meta.definition.variable.name | #1F4C44de | — |
| meta.diff.header | #0B590Bde | — |
| meta.embedded | #2C4798de | — |
| meta.embedded.assembly | #59297Ede | — |
| meta.function-call.arguments.python | #6C2C9Fde | — |
| meta.function-call.python | #6F03C2de | — |
| meta.member.access.python | #0A2E9Bde | — |
| meta.method.java | #76284Fde | — |
| meta.object-literal.key | #622B8Dde | — |
| meta.paragraph.markdown | #763C28de | — |
| meta.preprocessor | #842957de | — |
| meta.preprocessor.numeric | #435207de | — |
| meta.preprocessor.string | #960A50de | — |
| meta.scope.prerequisites.makefile | #0B5A0Bde | — |
| meta.structure.dictionary.json.comments | #5A4B2C6e | — |
| meta.structure.dictionary.key.python | #44510Ade | — |
| meta.structure.dictionary.value.json.comments | #584A2D6e | — |
| meta.template.expression | #960B50de | — |
| meta.type.cast.expr | #45530Bde | bold |
| meta.type.new.expr | #084F08de | bold |
| parameter | #950B50de | — |
| punctuation.character.set.begin.regexp | #43500Ade | — |
| punctuation.character.set.end.regexp | #44520Ade | — |
| punctuation.definition.array.begin.json | #8E2B0Ade | — |
| punctuation.definition.character-class.regexp | #980850de | — |
| punctuation.definition.comment | #5B482C6e | — |
| punctuation.definition.comment.json.comments | #5B482C6e | — |
| punctuation.definition.comment.python | #584A2D6e | — |
| punctuation.definition.dictionary.begin.json | #6F03C2de | — |
| punctuation.definition.dictionary.end.json | #0A5749de | — |
| punctuation.definition.group.assertion.regexp | #59297Ede | — |
| punctuation.definition.group.regexp | #095A09de | — |
| punctuation.definition.list.begin.json | #0B5648de | — |
| punctuation.definition.list.begin.markdown | #464F1Fde | — |
| punctuation.definition.list.begin.python | #445308de | — |
| punctuation.definition.list.end.json | #672C95de | — |
| punctuation.definition.list.end.markdown | #44520Ade | — |
| punctuation.definition.list.end.python | #092B93de | — |
| punctuation.definition.parameters.begin.python | #6C2C9Fde | — |
| punctuation.definition.parameters.end.bracket.round.java | #0B5648de | — |
| punctuation.definition.quote.begin.markdown | #0B5749de | — |
| punctuation.definition.tag | #8C2A09de | — |
| punctuation.definition.template-expression.begin | #0B5A0Bde | — |
| punctuation.definition.template-expression.end | #990750de | — |
| punctuation.section.class.begin.bracket.curly.java | #6F06C0de | — |
| punctuation.section.embedded | #095509de | — |
| punctuation.section.embedded.begin.php | #44510Ade | — |
| punctuation.section.embedded.end.php | #99064Fde | — |
| punctuation.terminator.java | #215349de | — |
| source.cmake | #980A51de | — |
| source.coffee.embedded | #6D2C9Cde | — |
| source.cpp | #293E7Ede | — |
| source.css.less | #0A580Ade | — |
| source.groovy.embedded | #990750de | — |
| source.java | #6C2C9Dde | — |
| source.java-properties | #8B2B0Bde | — |
| source.json.comments | #5A4B2C6e | — |
| source.makefile | #0A590Ade | — |
| source.powershell | #072B99de | — |
| source.powershell.variable.other.member | #872A57de | — |
| source.python | #7005C1de | — |
| storage | #950B50de | — |
| storage.modifier | #960B50de | — |
| storage.modifier.import.java | #773B28de | — |
| storage.modifier.package.java | #5A3022de | — |
| storage.type | #902806de | bold |
| storage.type.annotation.groovy | #7E2953de | bold |
| storage.type.annotation.java | #852A58de | bold |
| storage.type.boolean.go | #092B93de | bold |
| storage.type.byte.go | #0A5547de | bold |
| storage.type.cs | #0A590Ade | bold |
| storage.type.error.go | #8E2B0Ade | bold |
| storage.type.generic.cs | #682547de | bold |
| storage.type.generic.groovy | #21534Ade | bold |
| storage.type.generic.java | #8D2C0Bde | bold |
| storage.type.groovy | #095A09de | bold |
| storage.type.java | #6C2C9Ede | bold |
| storage.type.modifier.cs | #8E2907de | bold |
| storage.type.numeric.go | #842957de | bold |
| storage.type.object.array.groovy | #45520Bde | bold |
| storage.type.object.array.java | #45530Ade | bold |
| storage.type.parameters.groovy | #960A50de | bold |
| storage.type.primitive.array.groovy | #6F04C2de | bold |
| storage.type.primitive.array.java | #21534Ade | bold |
| storage.type.primitive.groovy | #1D451Dde | bold |
| storage.type.primitive.java | #970750de | bold |
| storage.type.rune.go | #44510Ade | bold |
| storage.type.string.go | #8E2907de | bold |
| storage.type.token.java | #0A2FA1de | bold |
| storage.type.uintptr.go | #7E2953de | bold |
| storage.type.variable.cs | #763C28de | bold |
| string | #383F1Bde | — |
| string.quoted.docstring.multi.python | #5A4B2C6e | — |
| string.regexp | #692C9Bde | — |
| string.tag | #0B5A0Bde | — |
| string.value | #0A5648de | — |
| strong | #59297Ede | — |
| support.class | #215321de | — |
| support.constant.color | #095A09de | — |
| support.constant.dom | #0A590Ade | — |
| support.constant.font-name | #872A57de | — |
| support.constant.handlebars | #2C4695de | — |
| support.constant.json | #842957de | — |
| support.constant.math | #6C2C9Dde | — |
| support.constant.media | #672C95de | — |
| support.constant.media-type | #980A51de | bold |
| support.constant.property-value | #465309de | — |
| support.function | #094809de | — |
| support.function.git-rebase | #464F1Fde | — |
| support.other.parenthesis.regexp | #44510Ade | — |
| support.type | #2C4695de | bold |
| support.type.property-name | #8D2C0Bde | bold |
| support.type.vendored.property-name | #2C4798de | bold |
| support.variable | #8E2B0Ade | — |
| token.debug-token | #0B5648de | — |
| token.error-token | #45520Ade | — |
| token.info-token | #1F4C44de | — |
| token.warn-token | #5A3022de | — |
| variable | #0A5547de | — |
| variable.css | #084438de | — |
| variable.language | #8E2908de | — |
| variable.language.wildcard.java | #3E451Dde | — |
| variable.other.constant | #842957de | — |
| variable.other.definition.java | #2C479Bde | — |
| variable.other.enummember | #0A590Ade | — |
| variable.other.less | #45530Bde | — |
| variable.other.object.java | #445308de | — |
| variable.other.object.property.java | #960B51de | — |
| variable.parameter.c | #2C4898de | — |
| variable.parameter.function.language.python | #6C2C9Ede | — |
| variable.parameter.java | #6F04C2de | — |
| variable.scss | #6F09BEde | — |
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}!`;
}