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 | #1231486e | — |
| comment.block.html | #11304F6e | — |
| comment.block.java | #13304E6e | — |
| comment.block.javadoc.java | #1231486e | — |
| comment.block.powershell | #11304F6e | — |
| comment.block.xml | #1231486e | — |
| comment.line.double-slash.c | #12304E6e | — |
| comment.line.double-slash.cpp | #11304F6e | — |
| comment.line.double-slash.java | #1231486e | — |
| comment.line.double-slash.js | #11304F6e | — |
| comment.line.number-sign.makefile | #12304E6e | — |
| comment.line.number-sign.python | #12304E6e | — |
| comment.line.number-sign.yaml | #1231486e | — |
| comment.line.percentage.erlang | #13304E6e | — |
| comment.line.powershell | #11304F6e | — |
| comment.source.cmake | #11304F6e | — |
| comment.source.cmakecache | #12304E6e | — |
| constant.character | #2E2E2Ede | — |
| constant.character.character-class.regexp | #253210de | — |
| constant.character.escape | #632377de | — |
| constant.character.set.regexp | #194523de | — |
| constant.language | #15371Dde | — |
| constant.numeric | #084D51de | — |
| constant.numeric.dec.python | #1F2865de | — |
| constant.other.caps.python | #085119de | — |
| constant.other.character-class.regexp | #491758de | — |
| constant.other.character-class.set.regexp | #26320Fde | — |
| constant.other.color.rgb-value | #253210de | — |
| constant.other.placeholder | #5B0E2Bde | — |
| constant.other.rgb-value | #3D3D3Dde | — |
| constant.regexp | #1F2865de | — |
| constant.sha.git-rebase | #354519de | — |
| emphasis | #334C07de | — |
| entity.name.class | #4E0C63de | — |
| entity.name.function | #0A501Bde | — |
| entity.name.function.preprocessor | #233307de | — |
| entity.name.function.python | #491758de | — |
| entity.name.label | #0F3335de | — |
| entity.name.namespace | #194245de | — |
| entity.name.operator | #0F3335de | — |
| entity.name.operator.custom-literal | #521F61de | — |
| entity.name.scope-resolution | #173E20de | — |
| entity.name.tag | #632377de | — |
| entity.name.tag.css | #5D2270de | — |
| entity.name.type | #57152Fde | bold |
| entity.name.variable | #192573de | — |
| entity.other.attribute | #0A4D52de | — |
| entity.other.attribute-name | #173C3Ede | — |
| entity.other.attribute-name.class.css | #223303de | — |
| entity.other.attribute-name.class.mixin.css | #60032Ade | — |
| entity.other.attribute-name.id | #2E2E2Ede | — |
| entity.other.attribute-name.id.css | #0F3518de | — |
| entity.other.attribute-name.parent-selector.css | #471C55de | — |
| entity.other.attribute-name.pseudo-class.css | #10501Fde | — |
| entity.other.attribute-name.pseudo-element.css | #0C501Cde | — |
| entity.other.attribute-name.scss | #68213Ede | — |
| entity.other.document.begin.yaml | #1231486e | — |
| entity.other.inherited-class | #611F3Ade | — |
| header | #491758de | — |
| invalid | #104D51de | — |
| keyword | #1D2769de | bold |
| keyword.codetag.notation.python | #541730de | bold |
| keyword.control | #303E17de | bold |
| keyword.control.anchor.regexp | #24330Fde | bold |
| keyword.control.import.python | #4C115Fde | bold |
| keyword.operator | #103335de | bold |
| keyword.operator.alignas | #03370Fde | bold |
| keyword.operator.alignof | #1B4C26de | bold |
| keyword.operator.cast | #192573de | bold |
| keyword.operator.delete | #4C115Fde | bold |
| keyword.operator.documentation.powershell | #1231486e | bold |
| keyword.operator.expression | #582168de | bold |
| keyword.operator.instanceof | #414141de | bold |
| keyword.operator.logical.python | #541730de | bold |
| keyword.operator.minus.exponent | #033438de | bold |
| keyword.operator.negation.regexp | #343434de | bold |
| keyword.operator.new | #541730de | bold |
| keyword.operator.noexcept | #2E2E2Ede | bold |
| keyword.operator.or.regexp | #0D3335de | bold |
| keyword.operator.plus.exponent | #194245de | bold |
| keyword.operator.quantifier.regexp | #091796de | bold |
| keyword.operator.sizeof | #091796de | bold |
| keyword.operator.typeid | #2E2E2Ede | bold |
| keyword.operator.wordlike | #611F3Ade | bold |
| keyword.other.operator | #0D501Dde | bold |
| keyword.other.package.java | #0C501Cde | bold |
| keyword.other.unit | #5B0E2Bde | bold |
| keyword.other.using | #26320Fde | bold |
| markup.bold | #364C0Cde | — |
| markup.changed | #2B3715de | — |
| markup.deleted | #173E20de | — |
| markup.fenced_code.block.markdown | #491758de | — |
| markup.heading | #222B70de | — |
| markup.inline.raw | #5D2270de | — |
| markup.inserted | #2B3715de | — |
| markup.italic | #2E2E2Ede | — |
| markup.raw.block.markdown | #3D3D3Dde | — |
| markup.strikethrough | #5A1E37de | — |
| markup.underline | #233307de | — |
| meta.block.c | #0D501Dde | — |
| meta.block.c | #4D0D61de | — |
| meta.class.java | #2E2E2Ede | — |
| meta.definition.variable.name | #2E2E2Ede | — |
| meta.diff.header | #263211de | — |
| meta.embedded | #2E2E2Ede | — |
| meta.embedded.assembly | #0C501Cde | — |
| meta.function-call.arguments.python | #364C0Cde | — |
| meta.function-call.python | #0A501Bde | — |
| meta.member.access.python | #4E0C63de | — |
| meta.method.java | #2E2E2Ede | — |
| meta.object-literal.key | #521F61de | — |
| meta.paragraph.markdown | #2E2E2Ede | — |
| meta.preprocessor | #0A501Bde | — |
| meta.preprocessor.numeric | #24330Fde | — |
| meta.preprocessor.string | #202769de | — |
| meta.scope.prerequisites.makefile | #212968de | — |
| meta.structure.dictionary.json.comments | #13304E6e | — |
| meta.structure.dictionary.key.python | #471C55de | — |
| meta.structure.dictionary.value.json.comments | #12304E6e | — |
| meta.template.expression | #5A1E37de | — |
| meta.type.cast.expr | #414141de | bold |
| meta.type.new.expr | #194523de | bold |
| parameter | #354519de | — |
| punctuation.character.set.begin.regexp | #03370Fde | — |
| punctuation.character.set.end.regexp | #4C1E5Ade | — |
| punctuation.definition.array.begin.json | #471A54de | — |
| punctuation.definition.character-class.regexp | #500366de | — |
| punctuation.definition.comment | #12304E6e | — |
| punctuation.definition.comment.json.comments | #11304F6e | — |
| punctuation.definition.comment.python | #11304F6e | — |
| punctuation.definition.dictionary.begin.json | #4C1E5Ade | — |
| punctuation.definition.dictionary.end.json | #5C0D2Ede | — |
| punctuation.definition.group.assertion.regexp | #0F3335de | — |
| punctuation.definition.group.regexp | #1C2570de | — |
| punctuation.definition.list.begin.json | #354C09de | — |
| punctuation.definition.list.begin.markdown | #1B4C26de | — |
| punctuation.definition.list.begin.python | #0C4D51de | — |
| punctuation.definition.list.end.json | #343434de | — |
| punctuation.definition.list.end.markdown | #233307de | — |
| punctuation.definition.list.end.python | #1B4C26de | — |
| punctuation.definition.parameters.begin.python | #26320Fde | — |
| punctuation.definition.parameters.end.bracket.round.java | #222B70de | — |
| punctuation.definition.quote.begin.markdown | #1B494Cde | — |
| punctuation.definition.tag | #414141de | — |
| punctuation.definition.template-expression.begin | #354C09de | — |
| punctuation.definition.template-expression.end | #2E2E2Ede | — |
| punctuation.section.class.begin.bracket.curly.java | #1B4C26de | — |
| punctuation.section.embedded | #084D51de | — |
| punctuation.section.embedded.begin.php | #1F2868de | — |
| punctuation.section.embedded.end.php | #194245de | — |
| punctuation.terminator.java | #0F3518de | — |
| source.cmake | #354C0Bde | — |
| source.coffee.embedded | #0F3518de | — |
| source.cpp | #043436de | — |
| source.css.less | #10501Fde | — |
| source.groovy.embedded | #263211de | — |
| source.java | #364C0Cde | — |
| source.java-properties | #2E2E2Ede | — |
| source.json.comments | #11304F6e | — |
| source.makefile | #5C0D29de | — |
| source.powershell | #414141de | — |
| source.powershell.variable.other.member | #5B0E2Bde | — |
| source.python | #521A31de | — |
| storage | #103335de | — |
| storage.modifier | #0F3335de | — |
| storage.modifier.import.java | #173C3Ede | — |
| storage.modifier.package.java | #364C0Cde | — |
| storage.type | #611F3Ade | bold |
| storage.type.annotation.groovy | #2E2E2Ede | bold |
| storage.type.annotation.java | #5B0E2Bde | bold |
| storage.type.boolean.go | #0F3335de | bold |
| storage.type.byte.go | #383838de | bold |
| storage.type.cs | #5A122Ede | bold |
| storage.type.error.go | #4D0D61de | bold |
| storage.type.generic.cs | #354C09de | bold |
| storage.type.generic.groovy | #354C09de | bold |
| storage.type.generic.java | #5B0E2Bde | bold |
| storage.type.groovy | #5A1E37de | bold |
| storage.type.java | #2B3715de | bold |
| storage.type.modifier.cs | #10501Fde | bold |
| storage.type.numeric.go | #153537de | bold |
| storage.type.object.array.groovy | #354C09de | bold |
| storage.type.object.array.java | #2E2E2Ede | bold |
| storage.type.parameters.groovy | #4D0D61de | bold |
| storage.type.primitive.array.groovy | #194245de | bold |
| storage.type.primitive.array.java | #471C55de | bold |
| storage.type.primitive.groovy | #1D2769de | bold |
| storage.type.primitive.java | #0D4D51de | bold |
| storage.type.rune.go | #3D3D3Dde | bold |
| storage.type.string.go | #081891de | bold |
| storage.type.token.java | #461C53de | bold |
| storage.type.uintptr.go | #521A31de | bold |
| storage.type.variable.cs | #541730de | bold |
| string | #582168de | — |
| string.quoted.docstring.multi.python | #11304F6e | — |
| string.regexp | #173C3Ede | — |
| string.tag | #2E2E2Ede | — |
| string.value | #414141de | — |
| strong | #531C33de | — |
| support.class | #03380Fde | — |
| support.constant.color | #531931de | — |
| support.constant.dom | #212968de | — |
| support.constant.font-name | #354519de | — |
| support.constant.handlebars | #2E2E2Ede | — |
| support.constant.json | #2E2E2Ede | — |
| support.constant.math | #1E2768de | — |
| support.constant.media | #0F3335de | — |
| support.constant.media-type | #471A54de | bold |
| support.constant.property-value | #2E2E2Ede | — |
| support.function | #500366de | — |
| support.function.git-rebase | #5B0E2Bde | — |
| support.other.parenthesis.regexp | #2E2E2Ede | — |
| support.type | #2E2E2Ede | bold |
| support.type.property-name | #0C4D51de | bold |
| support.type.vendored.property-name | #364C0Cde | bold |
| support.variable | #26320Fde | — |
| token.debug-token | #414141de | — |
| token.error-token | #364C0Ede | — |
| token.info-token | #471C55de | — |
| token.warn-token | #354C0Bde | — |
| variable | #303E17de | — |
| variable.css | #085119de | — |
| variable.language | #5B0E2Bde | — |
| variable.language.wildcard.java | #03370Fde | — |
| variable.other.constant | #104D51de | — |
| variable.other.definition.java | #253210de | — |
| variable.other.enummember | #03380Fde | — |
| variable.other.less | #043436de | — |
| variable.other.object.java | #521A31de | — |
| variable.other.object.property.java | #24330Fde | — |
| variable.parameter.c | #531931de | — |
| variable.parameter.function.language.python | #2E2E2Ede | — |
| variable.parameter.java | #173E20de | — |
| variable.scss | #173E20de | — |
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}!`;
}