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 | #3737B46e | — |
| comment.block.html | #3737B66e | — |
| comment.block.java | #3737B46e | — |
| comment.block.javadoc.java | #3737B46e | — |
| comment.block.powershell | #3737B46e | — |
| comment.block.xml | #3737B66e | — |
| comment.line.double-slash.c | #3939B06e | — |
| comment.line.double-slash.cpp | #3939B06e | — |
| comment.line.double-slash.java | #3737B46e | — |
| comment.line.double-slash.js | #3737B46e | — |
| comment.line.number-sign.makefile | #3737B66e | — |
| comment.line.number-sign.python | #3737B66e | — |
| comment.line.number-sign.yaml | #3737B46e | — |
| comment.line.percentage.erlang | #3737B46e | — |
| comment.line.powershell | #3737B46e | — |
| comment.source.cmake | #3737B66e | — |
| comment.source.cmakecache | #3737B66e | — |
| constant.character | #7F2568de | — |
| constant.character.character-class.regexp | #08503Dde | — |
| constant.character.escape | #135609de | — |
| constant.character.set.regexp | #7E2565de | — |
| constant.language | #09376Cde | — |
| constant.numeric | #5D28ABde | — |
| constant.numeric.dec.python | #0A4991de | — |
| constant.other.caps.python | #5E28ADde | — |
| constant.other.character-class.regexp | #1E3857de | — |
| constant.other.character-class.set.regexp | #424242de | — |
| constant.other.color.rgb-value | #13550Ade | — |
| constant.other.placeholder | #4A4A4Ade | — |
| constant.other.rgb-value | #474747de | — |
| constant.regexp | #7E2364de | — |
| constant.sha.git-rebase | #5C29ADde | — |
| emphasis | #494949de | — |
| entity.name.class | #96130Ade | — |
| entity.name.function | #951107de | — |
| entity.name.function.preprocessor | #5E1F4Dde | — |
| entity.name.function.python | #234A78de | — |
| entity.name.label | #234A78de | — |
| entity.name.namespace | #4A4A4Ade | — |
| entity.name.operator | #74235Fde | — |
| entity.name.operator.custom-literal | #4A4A4Ade | — |
| entity.name.scope-resolution | #0A5541de | — |
| entity.name.tag | #7C2465de | — |
| entity.name.tag.css | #0A3B73de | — |
| entity.name.type | #234B7Ade | bold |
| entity.name.variable | #802466de | — |
| entity.other.attribute | #20491Ade | — |
| entity.other.attribute-name | #244977de | — |
| entity.other.attribute-name.class.css | #961209de | — |
| entity.other.attribute-name.class.mixin.css | #494949de | — |
| entity.other.attribute-name.id | #5E231Fde | — |
| entity.other.attribute-name.id.css | #074A38de | — |
| entity.other.attribute-name.parent-selector.css | #8E0468de | — |
| entity.other.attribute-name.pseudo-class.css | #96130Ade | — |
| entity.other.attribute-name.pseudo-element.css | #4A4A4Ade | — |
| entity.other.attribute-name.scss | #8E086Ade | — |
| entity.other.document.begin.yaml | #3737B66e | — |
| entity.other.inherited-class | #951107de | — |
| header | #145409de | — |
| invalid | #4A4A4Ade | — |
| keyword | #5E231Fde | bold |
| keyword.codetag.notation.python | #5703D6de | bold |
| keyword.control | #951108de | bold |
| keyword.control.anchor.regexp | #393939de | bold |
| keyword.control.import.python | #742923de | bold |
| keyword.operator | #5C29ADde | bold |
| keyword.operator.alignas | #13550Ade | bold |
| keyword.operator.alignof | #115705de | bold |
| keyword.operator.cast | #970E04de | bold |
| keyword.operator.delete | #424242de | bold |
| keyword.operator.documentation.powershell | #3939B06e | bold |
| keyword.operator.expression | #802466de | bold |
| keyword.operator.instanceof | #234B79de | bold |
| keyword.operator.logical.python | #842A24de | bold |
| keyword.operator.minus.exponent | #115606de | bold |
| keyword.operator.negation.regexp | #4A4A4Ade | bold |
| keyword.operator.new | #4A4A4Ade | bold |
| keyword.operator.noexcept | #5D29ABde | bold |
| keyword.operator.or.regexp | #8E0468de | bold |
| keyword.operator.plus.exponent | #8E076Bde | bold |
| keyword.operator.quantifier.regexp | #125608de | bold |
| keyword.operator.sizeof | #083972de | bold |
| keyword.operator.typeid | #8D0569de | bold |
| keyword.operator.wordlike | #7C2465de | bold |
| keyword.other.operator | #4A4A4Ade | bold |
| keyword.other.package.java | #145609de | bold |
| keyword.other.unit | #5C29ADde | bold |
| keyword.other.using | #7E2364de | bold |
| markup.bold | #5703D6de | — |
| markup.changed | #145609de | — |
| markup.deleted | #941309de | — |
| markup.fenced_code.block.markdown | #22456Dde | — |
| markup.heading | #8E086Ade | — |
| markup.inline.raw | #07366Dde | — |
| markup.inserted | #145409de | — |
| markup.italic | #5C29ADde | — |
| markup.raw.block.markdown | #951108de | — |
| markup.strikethrough | #4A4A4Ade | — |
| markup.underline | #4A4A4Ade | — |
| meta.block.c | #8C0768de | — |
| meta.block.c | #8C0A69de | — |
| meta.class.java | #424242de | — |
| meta.definition.variable.name | #494949de | — |
| meta.diff.header | #145609de | — |
| meta.embedded | #5805D4de | — |
| meta.embedded.assembly | #20491Ade | — |
| meta.function-call.arguments.python | #4F268Bde | — |
| meta.function-call.python | #951108de | — |
| meta.member.access.python | #5D28ABde | — |
| meta.method.java | #842A24de | — |
| meta.object-literal.key | #8E086Ade | — |
| meta.paragraph.markdown | #20491Ade | — |
| meta.preprocessor | #970E04de | — |
| meta.preprocessor.numeric | #7C2A24de | — |
| meta.preprocessor.string | #095541de | — |
| meta.scope.prerequisites.makefile | #095340de | — |
| meta.structure.dictionary.json.comments | #3737B46e | — |
| meta.structure.dictionary.key.python | #4A4A4Ade | — |
| meta.structure.dictionary.value.json.comments | #3939B06e | — |
| meta.template.expression | #47247Cde | — |
| meta.type.cast.expr | #234A78de | bold |
| meta.type.new.expr | #94130Ade | bold |
| parameter | #970E04de | — |
| punctuation.character.set.begin.regexp | #095541de | — |
| punctuation.character.set.end.regexp | #234A78de | — |
| punctuation.definition.array.begin.json | #4A4A4Ade | — |
| punctuation.definition.character-class.regexp | #862A25de | — |
| punctuation.definition.comment | #3737B46e | — |
| punctuation.definition.comment.json.comments | #3737B66e | — |
| punctuation.definition.comment.python | #3737B46e | — |
| punctuation.definition.dictionary.begin.json | #5E231Fde | — |
| punctuation.definition.dictionary.end.json | #13550Ade | — |
| punctuation.definition.group.assertion.regexp | #074A38de | — |
| punctuation.definition.group.regexp | #4B2584de | — |
| punctuation.definition.list.begin.json | #4A4A4Ade | — |
| punctuation.definition.list.begin.markdown | #941309de | — |
| punctuation.definition.list.begin.python | #244B76de | — |
| punctuation.definition.list.end.json | #8E0669de | — |
| punctuation.definition.list.end.markdown | #08356Ade | — |
| punctuation.definition.list.end.python | #742923de | — |
| punctuation.definition.parameters.begin.python | #8E0669de | — |
| punctuation.definition.parameters.end.bracket.round.java | #145409de | — |
| punctuation.definition.quote.begin.markdown | #832B25de | — |
| punctuation.definition.tag | #842A24de | — |
| punctuation.definition.template-expression.begin | #571E48de | — |
| punctuation.definition.template-expression.end | #970F06de | — |
| punctuation.section.class.begin.bracket.curly.java | #7C2A24de | — |
| punctuation.section.embedded | #145409de | — |
| punctuation.section.embedded.begin.php | #6D2722de | — |
| punctuation.section.embedded.end.php | #4A4A4Ade | — |
| punctuation.terminator.java | #842C25de | — |
| source.cmake | #802466de | — |
| source.coffee.embedded | #4B2584de | — |
| source.cpp | #135509de | — |
| source.css.less | #8B0969de | — |
| source.groovy.embedded | #0A4991de | — |
| source.java | #5B29ABde | — |
| source.java-properties | #5D28ABde | — |
| source.json.comments | #3737B66e | — |
| source.makefile | #7F2568de | — |
| source.powershell | #474747de | — |
| source.powershell.variable.other.member | #14540Ade | — |
| source.python | #8B0969de | — |
| storage | #095541de | — |
| storage.modifier | #125607de | — |
| storage.modifier.import.java | #5704D4de | — |
| storage.modifier.package.java | #8E086Ade | — |
| storage.type | #494949de | bold |
| storage.type.annotation.groovy | #1F3D5Ede | bold |
| storage.type.annotation.java | #095440de | bold |
| storage.type.boolean.go | #135509de | bold |
| storage.type.byte.go | #5D29ABde | bold |
| storage.type.cs | #4F268Bde | bold |
| storage.type.error.go | #7E2565de | bold |
| storage.type.generic.cs | #095541de | bold |
| storage.type.generic.groovy | #07366Dde | bold |
| storage.type.generic.java | #7E2364de | bold |
| storage.type.groovy | #0A5440de | bold |
| storage.type.java | #353535de | bold |
| storage.type.modifier.cs | #135609de | bold |
| storage.type.numeric.go | #474747de | bold |
| storage.type.object.array.groovy | #4A4A4Ade | bold |
| storage.type.object.array.java | #812468de | bold |
| storage.type.parameters.groovy | #095541de | bold |
| storage.type.primitive.array.groovy | #8D086Ade | bold |
| storage.type.primitive.array.java | #961208de | bold |
| storage.type.primitive.groovy | #22456Dde | bold |
| storage.type.primitive.java | #07366Dde | bold |
| storage.type.rune.go | #095541de | bold |
| storage.type.string.go | #4A4A4Ade | bold |
| storage.type.token.java | #074132de | bold |
| storage.type.uintptr.go | #8D0569de | bold |
| storage.type.variable.cs | #234B7Ade | bold |
| string | #5B29ABde | — |
| string.quoted.docstring.multi.python | #3737B46e | — |
| string.regexp | #424242de | — |
| string.tag | #5704D4de | — |
| string.value | #1E4218de | — |
| strong | #571E48de | — |
| support.class | #125608de | — |
| support.constant.color | #571E48de | — |
| support.constant.dom | #084535de | — |
| support.constant.font-name | #14560Ade | — |
| support.constant.handlebars | #09533Fde | — |
| support.constant.json | #115705de | — |
| support.constant.math | #214165de | — |
| support.constant.media | #4A4A4Ade | — |
| support.constant.media-type | #1F3D5Ede | bold |
| support.constant.property-value | #135509de | — |
| support.function | #074A38de | — |
| support.function.git-rebase | #244977de | — |
| support.other.parenthesis.regexp | #093C75de | — |
| support.type | #852B24de | bold |
| support.type.property-name | #093C75de | bold |
| support.type.vendored.property-name | #94130Ade | bold |
| support.variable | #09376Cde | — |
| token.debug-token | #0A4385de | — |
| token.error-token | #961208de | — |
| token.info-token | #5E1F4Dde | — |
| token.warn-token | #145609de | — |
| variable | #5700D7de | — |
| variable.css | #5602D5de | — |
| variable.language | #083972de | — |
| variable.language.wildcard.java | #4A4A4Ade | — |
| variable.other.constant | #5703D6de | — |
| variable.other.definition.java | #5806D3de | — |
| variable.other.enummember | #4B2584de | — |
| variable.other.less | #5D28ABde | — |
| variable.other.object.java | #125607de | — |
| variable.other.object.property.java | #5602D5de | — |
| variable.parameter.c | #5703D6de | — |
| variable.parameter.function.language.python | #4A4A4Ade | — |
| variable.parameter.java | #494949de | — |
| variable.scss | #145609de | — |
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}!`;
}