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 | #5614566e | — |
| comment.block.html | #5415546e | — |
| comment.block.java | #5415546e | — |
| comment.block.javadoc.java | #5614566e | — |
| comment.block.powershell | #5415546e | — |
| comment.block.xml | #3131316e | — |
| comment.line.double-slash.c | #5614566e | — |
| comment.line.double-slash.cpp | #5415546e | — |
| comment.line.double-slash.java | #3131316e | — |
| comment.line.double-slash.js | #3131316e | — |
| comment.line.number-sign.makefile | #3131316e | — |
| comment.line.number-sign.python | #5415546e | — |
| comment.line.number-sign.yaml | #3131316e | — |
| comment.line.percentage.erlang | #3131316e | — |
| comment.line.powershell | #5415546e | — |
| comment.source.cmake | #5415546e | — |
| comment.source.cmakecache | #5614566e | — |
| constant.character | #4B2821de | — |
| constant.character.character-class.regexp | #0F390Fde | — |
| constant.character.escape | #2A4A2Ade | — |
| constant.character.set.regexp | #183818de | — |
| constant.language | #173817de | — |
| constant.numeric | #591740de | — |
| constant.numeric.dec.python | #571F17de | — |
| constant.other.caps.python | #611405de | — |
| constant.other.character-class.regexp | #3F2557de | — |
| constant.other.character-class.set.regexp | #3E2D4Fde | — |
| constant.other.color.rgb-value | #460E7Ede | — |
| constant.other.placeholder | #4A4A13de | — |
| constant.other.rgb-value | #173636de | — |
| constant.regexp | #155315de | — |
| constant.sha.git-rebase | #243633de | — |
| emphasis | #5B1343de | — |
| entity.name.class | #313F5Cde | — |
| entity.name.function | #450784de | — |
| entity.name.function.preprocessor | #492B3Fde | — |
| entity.name.function.python | #432B26de | — |
| entity.name.label | #333304de | — |
| entity.name.namespace | #3D2852de | — |
| entity.name.operator | #24314Ade | — |
| entity.name.operator.custom-literal | #4A243Ede | — |
| entity.name.scope-resolution | #4F213Ede | — |
| entity.name.tag | #32321Ede | — |
| entity.name.tag.css | #273145de | — |
| entity.name.type | #2F3C55de | bold |
| entity.name.variable | #273146de | — |
| entity.other.attribute | #1C2F5Dde | — |
| entity.other.attribute-name | #424229de | — |
| entity.other.attribute-name.class.css | #155315de | — |
| entity.other.attribute-name.class.mixin.css | #183631de | — |
| entity.other.attribute-name.id | #233823de | — |
| entity.other.attribute-name.id.css | #243633de | — |
| entity.other.attribute-name.parent-selector.css | #571F14de | — |
| entity.other.attribute-name.pseudo-class.css | #620541de | — |
| entity.other.attribute-name.pseudo-element.css | #183631de | — |
| entity.other.attribute-name.scss | #063A06de | — |
| entity.other.document.begin.yaml | #5415546e | — |
| entity.other.inherited-class | #333318de | — |
| header | #06382Ede | — |
| invalid | #155147de | — |
| keyword | #492B3Fde | bold |
| keyword.codetag.notation.python | #47283Dde | bold |
| keyword.control | #1A3632de | bold |
| keyword.control.anchor.regexp | #333304de | bold |
| keyword.control.import.python | #293142de | bold |
| keyword.operator | #333305de | bold |
| keyword.operator.alignas | #053A05de | bold |
| keyword.operator.alignof | #620541de | bold |
| keyword.operator.cast | #2D384Fde | bold |
| keyword.operator.delete | #2C502Cde | bold |
| keyword.operator.documentation.powershell | #3131316e | bold |
| keyword.operator.expression | #233823de | bold |
| keyword.operator.instanceof | #4A4A11de | bold |
| keyword.operator.logical.python | #29423Ede | bold |
| keyword.operator.minus.exponent | #4A4A13de | bold |
| keyword.operator.negation.regexp | #4A243Ede | bold |
| keyword.operator.new | #333318de | bold |
| keyword.operator.noexcept | #135147de | bold |
| keyword.operator.or.regexp | #243633de | bold |
| keyword.operator.plus.exponent | #173817de | bold |
| keyword.operator.quantifier.regexp | #450784de | bold |
| keyword.operator.sizeof | #103731de | bold |
| keyword.operator.typeid | #33330Bde | bold |
| keyword.operator.wordlike | #243633de | bold |
| keyword.other.operator | #3B294Ede | bold |
| keyword.other.package.java | #460E7Ede | bold |
| keyword.other.unit | #3A2B49de | bold |
| keyword.other.using | #263E26de | bold |
| markup.bold | #334363de | — |
| markup.changed | #571F17de | — |
| markup.deleted | #4F332Dde | — |
| markup.fenced_code.block.markdown | #333317de | — |
| markup.heading | #173817de | — |
| markup.inline.raw | #4A4A15de | — |
| markup.inserted | #531D43de | — |
| markup.italic | #571F14de | — |
| markup.raw.block.markdown | #273145de | — |
| markup.strikethrough | #633B33de | — |
| markup.underline | #5C3831de | — |
| meta.block.c | #243633de | — |
| meta.block.c | #552F49de | — |
| meta.class.java | #3B294Ede | — |
| meta.definition.variable.name | #5C314Ede | — |
| meta.diff.header | #0F5146de | — |
| meta.embedded | #422F55de | — |
| meta.embedded.assembly | #4B2821de | — |
| meta.function-call.arguments.python | #213154de | — |
| meta.function-call.python | #273146de | — |
| meta.member.access.python | #273145de | — |
| meta.method.java | #273146de | — |
| meta.object-literal.key | #3C3C26de | — |
| meta.paragraph.markdown | #273146de | — |
| meta.preprocessor | #24314Ade | — |
| meta.preprocessor.numeric | #263E26de | — |
| meta.preprocessor.string | #4B3363de | — |
| meta.scope.prerequisites.makefile | #0F5146de | — |
| meta.structure.dictionary.json.comments | #5415546e | — |
| meta.structure.dictionary.key.python | #4C271Ede | — |
| meta.structure.dictionary.value.json.comments | #3131316e | — |
| meta.template.expression | #183631de | — |
| meta.type.cast.expr | #4B2821de | bold |
| meta.type.new.expr | #105410de | bold |
| parameter | #3B2B4Cde | — |
| punctuation.character.set.begin.regexp | #571F14de | — |
| punctuation.character.set.end.regexp | #32321Ede | — |
| punctuation.definition.array.begin.json | #293142de | — |
| punctuation.definition.character-class.regexp | #173636de | — |
| punctuation.definition.comment | #5415546e | — |
| punctuation.definition.comment.json.comments | #3131316e | — |
| punctuation.definition.comment.python | #5415546e | — |
| punctuation.definition.dictionary.begin.json | #2F3C55de | — |
| punctuation.definition.dictionary.end.json | #233823de | — |
| punctuation.definition.group.assertion.regexp | #571F17de | — |
| punctuation.definition.group.regexp | #333305de | — |
| punctuation.definition.list.begin.json | #115147de | — |
| punctuation.definition.list.begin.markdown | #4A4A11de | — |
| punctuation.definition.list.begin.python | #243633de | — |
| punctuation.definition.list.end.json | #053A05de | — |
| punctuation.definition.list.end.markdown | #333304de | — |
| punctuation.definition.list.end.python | #611405de | — |
| punctuation.definition.parameters.begin.python | #24314Ade | — |
| punctuation.definition.parameters.end.bracket.round.java | #333317de | — |
| punctuation.definition.quote.begin.markdown | #620541de | — |
| punctuation.definition.tag | #3D2852de | — |
| punctuation.definition.template-expression.begin | #422F55de | — |
| punctuation.definition.template-expression.end | #333305de | — |
| punctuation.section.class.begin.bracket.curly.java | #213154de | — |
| punctuation.section.embedded | #44018Bde | — |
| punctuation.section.embedded.begin.php | #333317de | — |
| punctuation.section.embedded.end.php | #5B1343de | — |
| punctuation.terminator.java | #115147de | — |
| source.cmake | #47315Cde | — |
| source.coffee.embedded | #333314de | — |
| source.cpp | #5B1343de | — |
| source.css.less | #460E7Ede | — |
| source.groovy.embedded | #29423Ede | — |
| source.java | #450784de | — |
| source.java-properties | #053A05de | — |
| source.json.comments | #3131316e | — |
| source.makefile | #334363de | — |
| source.powershell | #173817de | — |
| source.powershell.variable.other.member | #3B2B4Cde | — |
| source.python | #441870de | — |
| storage | #3D2852de | — |
| storage.modifier | #3D2852de | — |
| storage.modifier.import.java | #450784de | — |
| storage.modifier.package.java | #571F17de | — |
| storage.type | #571F14de | bold |
| storage.type.annotation.groovy | #363624de | bold |
| storage.type.annotation.java | #24314Ade | bold |
| storage.type.boolean.go | #363624de | bold |
| storage.type.byte.go | #492B3Fde | bold |
| storage.type.cs | #460E7Ede | bold |
| storage.type.error.go | #44018Bde | bold |
| storage.type.generic.cs | #4A4A16de | bold |
| storage.type.generic.groovy | #284428de | bold |
| storage.type.generic.java | #33330Bde | bold |
| storage.type.groovy | #1A362Fde | bold |
| storage.type.java | #3B294Ede | bold |
| storage.type.modifier.cs | #49492Bde | bold |
| storage.type.numeric.go | #4A4A16de | bold |
| storage.type.object.array.groovy | #3E2D4Fde | bold |
| storage.type.object.array.java | #155147de | bold |
| storage.type.parameters.groovy | #1A362Fde | bold |
| storage.type.primitive.array.groovy | #105410de | bold |
| storage.type.primitive.array.java | #032A7Ade | bold |
| storage.type.primitive.groovy | #2B4944de | bold |
| storage.type.primitive.java | #1A381Ade | bold |
| storage.type.rune.go | #3D2852de | bold |
| storage.type.string.go | #173817de | bold |
| storage.type.token.java | #4A4A16de | bold |
| storage.type.uintptr.go | #4A243Ede | bold |
| storage.type.variable.cs | #135313de | bold |
| string | #492B3Fde | — |
| string.quoted.docstring.multi.python | #3131316e | — |
| string.regexp | #273146de | — |
| string.tag | #5B1343de | — |
| string.value | #3A2B49de | — |
| strong | #422C27de | — |
| support.class | #460E7Ede | — |
| support.constant.color | #29423Ede | — |
| support.constant.dom | #492B3Fde | — |
| support.constant.font-name | #2C502Cde | — |
| support.constant.handlebars | #233823de | — |
| support.constant.json | #633B33de | — |
| support.constant.math | #2C502Cde | — |
| support.constant.media | #633B33de | — |
| support.constant.media-type | #5C314Ede | bold |
| support.constant.property-value | #135147de | — |
| support.function | #183631de | — |
| support.function.git-rebase | #2A4A2Ade | — |
| support.other.parenthesis.regexp | #472924de | — |
| support.type | #1A362Fde | bold |
| support.type.property-name | #591E13de | bold |
| support.type.vendored.property-name | #633B33de | bold |
| support.variable | #135147de | — |
| token.debug-token | #44018Bde | — |
| token.error-token | #46273Cde | — |
| token.info-token | #5B1343de | — |
| token.warn-token | #571F17de | — |
| variable | #5C314Ede | — |
| variable.css | #135147de | — |
| variable.language | #273145de | — |
| variable.language.wildcard.java | #492B3Fde | — |
| variable.other.constant | #424229de | — |
| variable.other.definition.java | #112A75de | — |
| variable.other.enummember | #3C3C26de | — |
| variable.other.less | #263E26de | — |
| variable.other.object.java | #284428de | — |
| variable.other.object.property.java | #2B3549de | — |
| variable.parameter.c | #155315de | — |
| variable.parameter.function.language.python | #2A4A2Ade | — |
| variable.parameter.java | #4A4A13de | — |
| variable.scss | #432B26de | — |
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}!`;
}