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 | #3333146e | — |
| comment.block.html | #3333136e | — |
| comment.block.java | #3434126e | — |
| comment.block.javadoc.java | #3333136e | — |
| comment.block.powershell | #3434156e | — |
| comment.block.xml | #3333146e | — |
| comment.line.double-slash.c | #3434156e | — |
| comment.line.double-slash.cpp | #3333146e | — |
| comment.line.double-slash.java | #3434156e | — |
| comment.line.double-slash.js | #3434126e | — |
| comment.line.number-sign.makefile | #3333146e | — |
| comment.line.number-sign.python | #3333146e | — |
| comment.line.number-sign.yaml | #3434156e | — |
| comment.line.percentage.erlang | #3434126e | — |
| comment.line.powershell | #3434156e | — |
| comment.source.cmake | #3434156e | — |
| comment.source.cmakecache | #3434156e | — |
| constant.character | #450784de | — |
| constant.character.character-class.regexp | #0D2388de | — |
| constant.character.escape | #145314de | — |
| constant.character.set.regexp | #0F540Fde | — |
| constant.language | #5E1238de | — |
| constant.numeric | #571A39de | — |
| constant.numeric.dec.python | #145314de | — |
| constant.other.caps.python | #343C64de | — |
| constant.other.character-class.regexp | #442A37de | — |
| constant.other.character-class.set.regexp | #512038de | — |
| constant.other.color.rgb-value | #083A08de | — |
| constant.other.placeholder | #105146de | — |
| constant.other.rgb-value | #1F3532de | — |
| constant.regexp | #450784de | — |
| constant.sha.git-rebase | #571A39de | — |
| emphasis | #414C11de | — |
| entity.name.class | #155315de | — |
| entity.name.function | #155315de | — |
| entity.name.function.preprocessor | #2D4A45de | — |
| entity.name.function.python | #472738de | — |
| entity.name.label | #2E3505de | — |
| entity.name.namespace | #2D350Dde | — |
| entity.name.operator | #451377de | — |
| entity.name.operator.custom-literal | #3A2B49de | — |
| entity.name.scope-resolution | #3B2D4Ade | — |
| entity.name.tag | #2A3605de | — |
| entity.name.tag.css | #443157de | — |
| entity.name.type | #2A4440de | bold |
| entity.name.variable | #601605de | — |
| entity.other.attribute | #2D350Dde | — |
| entity.other.attribute-name | #442F2Ade | — |
| entity.other.attribute-name.class.css | #003B00de | — |
| entity.other.attribute-name.class.mixin.css | #460983de | — |
| entity.other.attribute-name.id | #434C13de | — |
| entity.other.attribute-name.id.css | #5E1238de | — |
| entity.other.attribute-name.parent-selector.css | #442C27de | — |
| entity.other.attribute-name.pseudo-class.css | #1D2C68de | — |
| entity.other.attribute-name.pseudo-element.css | #1D2C68de | — |
| entity.other.attribute-name.scss | #492636de | — |
| entity.other.document.begin.yaml | #3434126e | — |
| entity.other.inherited-class | #451377de | — |
| header | #573144de | — |
| invalid | #3F235Fde | — |
| keyword | #133913de | bold |
| keyword.codetag.notation.python | #40442Ade | bold |
| keyword.control | #434C17de | bold |
| keyword.control.anchor.regexp | #64344Cde | bold |
| keyword.control.import.python | #145146de | bold |
| keyword.operator | #512038de | bold |
| keyword.operator.alignas | #3F235Fde | bold |
| keyword.operator.alignof | #414C11de | bold |
| keyword.operator.cast | #5E3A33de | bold |
| keyword.operator.delete | #3F235Fde | bold |
| keyword.operator.documentation.powershell | #3333146e | bold |
| keyword.operator.expression | #5E3348de | bold |
| keyword.operator.instanceof | #145146de | bold |
| keyword.operator.logical.python | #105146de | bold |
| keyword.operator.minus.exponent | #573144de | bold |
| keyword.operator.negation.regexp | #3A2B49de | bold |
| keyword.operator.new | #1D2C68de | bold |
| keyword.operator.noexcept | #165046de | bold |
| keyword.operator.or.regexp | #2A4440de | bold |
| keyword.operator.plus.exponent | #133913de | bold |
| keyword.operator.quantifier.regexp | #091B97de | bold |
| keyword.operator.sizeof | #48335Ede | bold |
| keyword.operator.typeid | #48335Ede | bold |
| keyword.operator.wordlike | #343C64de | bold |
| keyword.other.operator | #5E3348de | bold |
| keyword.other.package.java | #165046de | bold |
| keyword.other.unit | #451377de | bold |
| keyword.other.using | #313757de | bold |
| markup.bold | #434C17de | — |
| markup.changed | #462A26de | — |
| markup.deleted | #571A39de | — |
| markup.fenced_code.block.markdown | #125312de | — |
| markup.heading | #193631de | — |
| markup.inline.raw | #460286de | — |
| markup.inserted | #431C6Ade | — |
| markup.italic | #562016de | — |
| markup.raw.block.markdown | #573144de | — |
| markup.strikethrough | #4A2D3Bde | — |
| markup.underline | #573731de | — |
| meta.block.c | #3B2A4Bde | — |
| meta.block.c | #2F3451de | — |
| meta.class.java | #3D284Fde | — |
| meta.definition.variable.name | #53221Bde | — |
| meta.diff.header | #451377de | — |
| meta.embedded | #3A2B49de | — |
| meta.embedded.assembly | #443157de | — |
| meta.function-call.arguments.python | #193819de | — |
| meta.function-call.python | #2D3418de | — |
| meta.member.access.python | #472923de | — |
| meta.method.java | #183636de | — |
| meta.object-literal.key | #2A4440de | — |
| meta.paragraph.markdown | #003B00de | — |
| meta.preprocessor | #333A5Ede | — |
| meta.preprocessor.numeric | #183818de | — |
| meta.preprocessor.string | #462A26de | — |
| meta.scope.prerequisites.makefile | #5E1238de | — |
| meta.structure.dictionary.json.comments | #3434126e | — |
| meta.structure.dictionary.key.python | #601605de | — |
| meta.structure.dictionary.value.json.comments | #3333136e | — |
| meta.template.expression | #083A08de | — |
| meta.type.cast.expr | #2D350Dde | bold |
| meta.type.new.expr | #001A9Ade | bold |
| parameter | #125312de | — |
| punctuation.character.set.begin.regexp | #442937de | — |
| punctuation.character.set.end.regexp | #442C27de | — |
| punctuation.definition.array.begin.json | #460983de | — |
| punctuation.definition.character-class.regexp | #650536de | — |
| punctuation.definition.comment | #3434156e | — |
| punctuation.definition.comment.json.comments | #3333146e | — |
| punctuation.definition.comment.python | #3333136e | — |
| punctuation.definition.dictionary.begin.json | #5E1238de | — |
| punctuation.definition.dictionary.end.json | #414C11de | — |
| punctuation.definition.group.assertion.regexp | #5C1438de | — |
| punctuation.definition.group.regexp | #512038de | — |
| punctuation.definition.list.begin.json | #64344Cde | — |
| punctuation.definition.list.begin.markdown | #2F331Bde | — |
| punctuation.definition.list.begin.python | #343C64de | — |
| punctuation.definition.list.end.json | #0F540Fde | — |
| punctuation.definition.list.end.markdown | #2D350Dde | — |
| punctuation.definition.list.end.python | #001A9Ade | — |
| punctuation.definition.parameters.begin.python | #571F14de | — |
| punctuation.definition.parameters.end.bracket.round.java | #562016de | — |
| punctuation.definition.quote.begin.markdown | #091B97de | — |
| punctuation.definition.tag | #3C2754de | — |
| punctuation.definition.template-expression.begin | #492636de | — |
| punctuation.definition.template-expression.end | #5E3A33de | — |
| punctuation.section.class.begin.bracket.curly.java | #571F14de | — |
| punctuation.section.embedded | #5C1438de | — |
| punctuation.section.embedded.begin.php | #611605de | — |
| punctuation.section.embedded.end.php | #165046de | — |
| punctuation.terminator.java | #5E3A33de | — |
| source.cmake | #2D324Ade | — |
| source.coffee.embedded | #083A08de | — |
| source.cpp | #1D371Dde | — |
| source.css.less | #193631de | — |
| source.groovy.embedded | #155315de | — |
| source.java | #2A3605de | — |
| source.java-properties | #571F14de | — |
| source.json.comments | #3333136e | — |
| source.makefile | #512038de | — |
| source.powershell | #462A26de | — |
| source.powershell.variable.other.member | #5C1438de | — |
| source.python | #3B2A4Bde | — |
| storage | #2A3047de | — |
| storage.modifier | #492636de | — |
| storage.modifier.import.java | #611605de | — |
| storage.modifier.package.java | #611605de | — |
| storage.type | #2F3451de | bold |
| storage.type.annotation.groovy | #3C2754de | bold |
| storage.type.annotation.java | #611605de | bold |
| storage.type.boolean.go | #434C13de | bold |
| storage.type.byte.go | #2D4A2Dde | bold |
| storage.type.cs | #165046de | bold |
| storage.type.error.go | #4A2D3Bde | bold |
| storage.type.generic.cs | #611605de | bold |
| storage.type.generic.groovy | #2A3049de | bold |
| storage.type.generic.java | #3A2B49de | bold |
| storage.type.groovy | #571F14de | bold |
| storage.type.java | #64344Cde | bold |
| storage.type.modifier.cs | #222D64de | bold |
| storage.type.numeric.go | #2A3605de | bold |
| storage.type.object.array.groovy | #3B2A4Bde | bold |
| storage.type.object.array.java | #0F540Fde | bold |
| storage.type.parameters.groovy | #5E3A33de | bold |
| storage.type.primitive.array.groovy | #003B00de | bold |
| storage.type.primitive.array.java | #571F14de | bold |
| storage.type.primitive.groovy | #165046de | bold |
| storage.type.primitive.java | #512038de | bold |
| storage.type.rune.go | #2E3505de | bold |
| storage.type.string.go | #434C13de | bold |
| storage.type.token.java | #512F40de | bold |
| storage.type.uintptr.go | #133913de | bold |
| storage.type.variable.cs | #183818de | bold |
| string | #2F3419de | — |
| string.quoted.docstring.multi.python | #3434126e | — |
| string.regexp | #0A382Fde | — |
| string.tag | #601605de | — |
| string.value | #434C17de | — |
| strong | #451377de | — |
| support.class | #573731de | — |
| support.constant.color | #51342Fde | — |
| support.constant.dom | #3B2D4Ade | — |
| support.constant.font-name | #333318de | — |
| support.constant.handlebars | #0F540Fde | — |
| support.constant.json | #4D2337de | — |
| support.constant.math | #2E3505de | — |
| support.constant.media | #091B97de | — |
| support.constant.media-type | #611605de | bold |
| support.constant.property-value | #1D371Dde | — |
| support.function | #402F51de | — |
| support.function.git-rebase | #282F4Fde | — |
| support.other.parenthesis.regexp | #253835de | — |
| support.type | #155315de | bold |
| support.type.property-name | #183636de | bold |
| support.type.vendored.property-name | #431C6Ade | bold |
| support.variable | #5C1438de | — |
| token.debug-token | #125147de | — |
| token.error-token | #442937de | — |
| token.info-token | #562016de | — |
| token.warn-token | #0D2388de | — |
| variable | #3B2D4Ade | — |
| variable.css | #5E1238de | — |
| variable.language | #222D64de | — |
| variable.language.wildcard.java | #414C11de | — |
| variable.other.constant | #442F2Ade | — |
| variable.other.definition.java | #0F540Fde | — |
| variable.other.enummember | #02392Bde | — |
| variable.other.less | #1D371Dde | — |
| variable.other.object.java | #333318de | — |
| variable.other.object.property.java | #343C64de | — |
| variable.parameter.c | #063A06de | — |
| variable.parameter.function.language.python | #2A4440de | — |
| variable.parameter.java | #2D350Dde | — |
| variable.scss | #083A08de | — |
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}!`;
}