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 | #1535356e | — |
| comment.block.html | #1335356e | — |
| comment.block.java | #1335356e | — |
| comment.block.javadoc.java | #1435356e | — |
| comment.block.powershell | #1335356e | — |
| comment.block.xml | #1535356e | — |
| comment.line.double-slash.c | #1335356e | — |
| comment.line.double-slash.cpp | #1435356e | — |
| comment.line.double-slash.java | #1535356e | — |
| comment.line.double-slash.js | #1535356e | — |
| comment.line.number-sign.makefile | #1335356e | — |
| comment.line.number-sign.python | #1335356e | — |
| comment.line.number-sign.yaml | #1435356e | — |
| comment.line.percentage.erlang | #1335356e | — |
| comment.line.powershell | #1535356e | — |
| comment.source.cmake | #1335356e | — |
| comment.source.cmakecache | #1335356e | — |
| constant.character | #721F4Bde | — |
| constant.character.character-class.regexp | #551A39de | — |
| constant.character.escape | #551A39de | — |
| constant.character.set.regexp | #462A19de | — |
| constant.language | #4A1D64de | — |
| constant.numeric | #5F0C37de | — |
| constant.numeric.dec.python | #471B62de | — |
| constant.other.caps.python | #194E1Ede | — |
| constant.other.character-class.regexp | #59207Ade | — |
| constant.other.character-class.set.regexp | #1B2C66de | — |
| constant.other.color.rgb-value | #0D504Ade | — |
| constant.other.placeholder | #001C94de | — |
| constant.other.rgb-value | #783205de | — |
| constant.regexp | #0F3813de | — |
| constant.sha.git-rebase | #541F72de | — |
| emphasis | #03218Ade | — |
| entity.name.class | #03218Ade | — |
| entity.name.function | #033909de | — |
| entity.name.function.preprocessor | #001C94de | — |
| entity.name.function.python | #2B340Ede | — |
| entity.name.label | #0C5313de | — |
| entity.name.namespace | #6B1E47de | — |
| entity.name.operator | #3C4D08de | — |
| entity.name.operator.custom-literal | #085048de | — |
| entity.name.scope-resolution | #15403Bde | — |
| entity.name.tag | #461C60de | — |
| entity.name.tag.css | #773207de | — |
| entity.name.type | #5F0C37de | bold |
| entity.name.variable | #4A1D64de | — |
| entity.other.attribute | #4A1D64de | — |
| entity.other.attribute-name | #2B340Ede | — |
| entity.other.attribute-name.class.css | #482915de | — |
| entity.other.attribute-name.class.mixin.css | #07530Fde | — |
| entity.other.attribute-name.id | #4B0876de | — |
| entity.other.attribute-name.id.css | #15403Bde | — |
| entity.other.attribute-name.parent-selector.css | #3D4D0Ede | — |
| entity.other.attribute-name.pseudo-class.css | #0F3633de | — |
| entity.other.attribute-name.pseudo-element.css | #1E2E6Bde | — |
| entity.other.attribute-name.scss | #1E2E6Bde | — |
| entity.other.document.begin.yaml | #1435356e | — |
| entity.other.inherited-class | #192B6Dde | — |
| header | #0C2580de | — |
| invalid | #112877de | — |
| keyword | #571739de | bold |
| keyword.codetag.notation.python | #0C5049de | bold |
| keyword.control | #4C260Fde | bold |
| keyword.control.anchor.regexp | #4F1E6Bde | bold |
| keyword.control.import.python | #532103de | bold |
| keyword.operator | #1B2B68de | bold |
| keyword.operator.alignas | #571839de | bold |
| keyword.operator.alignof | #1D2C66de | bold |
| keyword.operator.cast | #0D5315de | bold |
| keyword.operator.delete | #481766de | bold |
| keyword.operator.documentation.powershell | #1535356e | bold |
| keyword.operator.expression | #581638de | bold |
| keyword.operator.instanceof | #721F4Bde | bold |
| keyword.operator.logical.python | #4C260Fde | bold |
| keyword.operator.minus.exponent | #641D42de | bold |
| keyword.operator.negation.regexp | #0C5313de | bold |
| keyword.operator.new | #4C260Fde | bold |
| keyword.operator.noexcept | #0D504Ade | bold |
| keyword.operator.or.regexp | #0F5049de | bold |
| keyword.operator.plus.exponent | #4F1E6Bde | bold |
| keyword.operator.quantifier.regexp | #354015de | bold |
| keyword.operator.sizeof | #461C60de | bold |
| keyword.operator.typeid | #273505de | bold |
| keyword.operator.wordlike | #0F3813de | bold |
| keyword.other.operator | #354015de | bold |
| keyword.other.package.java | #4C0874de | bold |
| keyword.other.unit | #4A0E71de | bold |
| keyword.other.using | #462916de | bold |
| markup.bold | #0F3633de | — |
| markup.changed | #4A2813de | — |
| markup.deleted | #001C94de | — |
| markup.fenced_code.block.markdown | #0B5049de | — |
| markup.heading | #2F3914de | — |
| markup.inline.raw | #3C4D08de | — |
| markup.inserted | #4E0277de | — |
| markup.italic | #112877de | — |
| markup.raw.block.markdown | #4A0E71de | — |
| markup.strikethrough | #4A136Bde | — |
| markup.underline | #3C4D0Dde | — |
| meta.block.c | #462A19de | — |
| meta.block.c | #4E0277de | — |
| meta.class.java | #0B5312de | — |
| meta.definition.variable.name | #07530Fde | — |
| meta.diff.header | #532103de | — |
| meta.embedded | #085048de | — |
| meta.embedded.assembly | #6B1E47de | — |
| meta.function-call.arguments.python | #15401Ade | — |
| meta.function-call.python | #013907de | — |
| meta.member.access.python | #721F4Bde | — |
| meta.method.java | #152878de | — |
| meta.object-literal.key | #033833de | — |
| meta.paragraph.markdown | #0D5315de | — |
| meta.preprocessor | #5B351Dde | — |
| meta.preprocessor.numeric | #033909de | — |
| meta.preprocessor.string | #033909de | — |
| meta.scope.prerequisites.makefile | #3C4D0Cde | — |
| meta.structure.dictionary.json.comments | #1335356e | — |
| meta.structure.dictionary.key.python | #17471Cde | — |
| meta.structure.dictionary.value.json.comments | #1535356e | — |
| meta.template.expression | #2A340Fde | — |
| meta.type.cast.expr | #551A39de | bold |
| meta.type.new.expr | #174742de | bold |
| parameter | #3D4D0Ede | — |
| punctuation.character.set.begin.regexp | #283503de | — |
| punctuation.character.set.end.regexp | #1E2A69de | — |
| punctuation.definition.array.begin.json | #143917de | — |
| punctuation.definition.character-class.regexp | #541F72de | — |
| punctuation.definition.comment | #1435356e | — |
| punctuation.definition.comment.json.comments | #1435356e | — |
| punctuation.definition.comment.python | #1335356e | — |
| punctuation.definition.dictionary.begin.json | #0C5049de | — |
| punctuation.definition.dictionary.end.json | #3C4D0Fde | — |
| punctuation.definition.group.assertion.regexp | #551A39de | — |
| punctuation.definition.group.regexp | #4C0874de | — |
| punctuation.definition.list.begin.json | #0D504Ade | — |
| punctuation.definition.list.begin.markdown | #491667de | — |
| punctuation.definition.list.begin.python | #1B2C66de | — |
| punctuation.definition.list.end.json | #0A5048de | — |
| punctuation.definition.list.end.markdown | #54321Cde | — |
| punctuation.definition.list.end.python | #03208Cde | — |
| punctuation.definition.parameters.begin.python | #0E5216de | — |
| punctuation.definition.parameters.end.bracket.round.java | #354015de | — |
| punctuation.definition.quote.begin.markdown | #4A1D64de | — |
| punctuation.definition.tag | #3C4D08de | — |
| punctuation.definition.template-expression.begin | #192B6Dde | — |
| punctuation.definition.template-expression.end | #0C5049de | — |
| punctuation.section.class.begin.bracket.curly.java | #172A70de | — |
| punctuation.section.embedded | #033731de | — |
| punctuation.section.embedded.begin.php | #532103de | — |
| punctuation.section.embedded.end.php | #4C260Fde | — |
| punctuation.terminator.java | #541F72de | — |
| source.cmake | #0A5048de | — |
| source.coffee.embedded | #3A4717de | — |
| source.cpp | #3C4D0Cde | — |
| source.css.less | #07530Fde | — |
| source.groovy.embedded | #194E1Ede | — |
| source.java | #481B62de | — |
| source.java-properties | #0C2580de | — |
| source.json.comments | #1335356e | — |
| source.makefile | #033731de | — |
| source.powershell | #1B2C66de | — |
| source.powershell.variable.other.member | #07530Fde | — |
| source.python | #3C4D0Cde | — |
| storage | #3A4717de | — |
| storage.modifier | #5A1439de | — |
| storage.modifier.import.java | #2B340Ede | — |
| storage.modifier.package.java | #0F3813de | — |
| storage.type | #4D2E1Ade | bold |
| storage.type.annotation.groovy | #3B4D0Ade | bold |
| storage.type.annotation.java | #4A2813de | bold |
| storage.type.boolean.go | #581638de | bold |
| storage.type.byte.go | #571839de | bold |
| storage.type.cs | #4A270Ede | bold |
| storage.type.error.go | #033833de | bold |
| storage.type.generic.cs | #0F3633de | bold |
| storage.type.generic.groovy | #551A39de | bold |
| storage.type.generic.java | #07530Fde | bold |
| storage.type.groovy | #471B62de | bold |
| storage.type.java | #6B1E47de | bold |
| storage.type.modifier.cs | #17471Cde | bold |
| storage.type.numeric.go | #471B62de | bold |
| storage.type.object.array.groovy | #03218Ade | bold |
| storage.type.object.array.java | #194E48de | bold |
| storage.type.parameters.groovy | #03218Ade | bold |
| storage.type.primitive.array.groovy | #5A1439de | bold |
| storage.type.primitive.array.java | #481964de | bold |
| storage.type.primitive.groovy | #15401Ade | bold |
| storage.type.primitive.java | #4A2813de | bold |
| storage.type.rune.go | #4B0876de | bold |
| storage.type.string.go | #5A1439de | bold |
| storage.type.token.java | #4D2E1Ade | bold |
| storage.type.uintptr.go | #4A0E71de | bold |
| storage.type.variable.cs | #571739de | bold |
| string | #194E48de | — |
| string.quoted.docstring.multi.python | #1535356e | — |
| string.regexp | #03208Cde | — |
| string.tag | #551A39de | — |
| string.value | #4A2813de | — |
| strong | #1D2C64de | — |
| support.class | #0E3813de | — |
| support.constant.color | #152878de | — |
| support.constant.dom | #0F3633de | — |
| support.constant.font-name | #462916de | — |
| support.constant.handlebars | #354015de | — |
| support.constant.json | #4D2E1Ade | — |
| support.constant.math | #3A4717de | — |
| support.constant.media | #354015de | — |
| support.constant.media-type | #0E3813de | bold |
| support.constant.property-value | #0B5049de | — |
| support.function | #5F0C38de | — |
| support.function.git-rebase | #3C4D0Fde | — |
| support.other.parenthesis.regexp | #4C260Fde | — |
| support.type | #4A2813de | bold |
| support.type.property-name | #0C3632de | bold |
| support.type.vendored.property-name | #571839de | bold |
| support.variable | #4A1D64de | — |
| token.debug-token | #5F0C38de | — |
| token.error-token | #354015de | — |
| token.info-token | #532103de | — |
| token.warn-token | #4A270Ede | — |
| variable | #033909de | — |
| variable.css | #59207Ade | — |
| variable.language | #512304de | — |
| variable.language.wildcard.java | #1D2C64de | — |
| variable.other.constant | #172A70de | — |
| variable.other.definition.java | #283503de | — |
| variable.other.enummember | #172A70de | — |
| variable.other.less | #4A0E71de | — |
| variable.other.object.java | #17471Cde | — |
| variable.other.object.property.java | #085048de | — |
| variable.parameter.c | #5F0C37de | — |
| variable.parameter.function.language.python | #033833de | — |
| variable.parameter.java | #354015de | — |
| variable.scss | #481766de | — |
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}!`;
}