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 | #1335356e | — |
| comment.block.html | #1535356e | — |
| comment.block.java | #1635356e | — |
| comment.block.javadoc.java | #1335356e | — |
| comment.block.powershell | #1635356e | — |
| comment.block.xml | #1536366e | — |
| comment.line.double-slash.c | #1535356e | — |
| comment.line.double-slash.cpp | #1635356e | — |
| comment.line.double-slash.java | #1536366e | — |
| comment.line.double-slash.js | #1635356e | — |
| comment.line.number-sign.makefile | #1536366e | — |
| comment.line.number-sign.python | #1335356e | — |
| comment.line.number-sign.yaml | #1335356e | — |
| comment.line.percentage.erlang | #1635356e | — |
| comment.line.powershell | #1635356e | — |
| comment.source.cmake | #1535356e | — |
| comment.source.cmakecache | #1536366e | — |
| constant.character | #5D0D37de | — |
| constant.character.character-class.regexp | #1C4E45de | — |
| constant.character.escape | #59133Bde | — |
| constant.character.set.regexp | #103732de | — |
| constant.language | #303030de | — |
| constant.numeric | #434B09de | — |
| constant.numeric.dec.python | #6A224Ade | — |
| constant.other.caps.python | #4C2519de | — |
| constant.other.character-class.regexp | #1C4E45de | — |
| constant.other.character-class.set.regexp | #303030de | — |
| constant.other.color.rgb-value | #2E330Ade | — |
| constant.other.placeholder | #303030de | — |
| constant.other.rgb-value | #5D0D37de | — |
| constant.regexp | #103732de | — |
| constant.sha.git-rebase | #303030de | — |
| emphasis | #012583de | — |
| entity.name.class | #4C2519de | — |
| entity.name.function | #430F78de | — |
| entity.name.function.preprocessor | #22366Ade | — |
| entity.name.function.python | #1A473Fde | — |
| entity.name.label | #5E0B38de | — |
| entity.name.namespace | #1C2D5Dde | — |
| entity.name.operator | #411C66de | — |
| entity.name.operator.custom-literal | #1C4E45de | — |
| entity.name.scope-resolution | #4E2418de | — |
| entity.name.tag | #44097Fde | — |
| entity.name.tag.css | #1A473Fde | — |
| entity.name.type | #22366Ade | bold |
| entity.name.variable | #44097Fde | — |
| entity.other.attribute | #0B2876de | — |
| entity.other.attribute-name | #401E62de | — |
| entity.other.attribute-name.class.css | #3B4018de | — |
| entity.other.attribute-name.class.mixin.css | #440681de | — |
| entity.other.attribute-name.id | #1A473Fde | — |
| entity.other.attribute-name.id.css | #5E1603de | — |
| entity.other.attribute-name.parent-selector.css | #434B0Dde | — |
| entity.other.attribute-name.pseudo-class.css | #103630de | — |
| entity.other.attribute-name.pseudo-element.css | #2E330Ade | — |
| entity.other.attribute-name.scss | #052384de | — |
| entity.other.document.begin.yaml | #1635356e | — |
| entity.other.inherited-class | #1A473Fde | — |
| header | #421473de | — |
| invalid | #052384de | — |
| keyword | #440681de | bold |
| keyword.codetag.notation.python | #421473de | bold |
| keyword.control | #444A0Fde | bold |
| keyword.control.anchor.regexp | #5D0D37de | bold |
| keyword.control.import.python | #2D3303de | bold |
| keyword.operator | #373737de | bold |
| keyword.operator.alignas | #6A224Ade | bold |
| keyword.operator.alignof | #2F3210de | bold |
| keyword.operator.cast | #1F305Cde | bold |
| keyword.operator.delete | #112A6Fde | bold |
| keyword.operator.documentation.powershell | #1635356e | bold |
| keyword.operator.expression | #03372Ede | bold |
| keyword.operator.instanceof | #4E2418de | bold |
| keyword.operator.logical.python | #541F0Fde | bold |
| keyword.operator.minus.exponent | #454545de | bold |
| keyword.operator.negation.regexp | #434B0Dde | bold |
| keyword.operator.new | #5D0D3Ade | bold |
| keyword.operator.noexcept | #303030de | bold |
| keyword.operator.or.regexp | #541D3Cde | bold |
| keyword.operator.plus.exponent | #3B4018de | bold |
| keyword.operator.quantifier.regexp | #5C1F41de | bold |
| keyword.operator.sizeof | #542A1Dde | bold |
| keyword.operator.typeid | #11362Fde | bold |
| keyword.operator.wordlike | #43186Cde | bold |
| keyword.other.operator | #444A10de | bold |
| keyword.other.package.java | #353916de | bold |
| keyword.other.unit | #541B3Bde | bold |
| keyword.other.using | #4C2519de | bold |
| markup.bold | #5C1F41de | — |
| markup.changed | #411C66de | — |
| markup.deleted | #5D0D37de | — |
| markup.fenced_code.block.markdown | #1C4E45de | — |
| markup.heading | #632F20de | — |
| markup.inline.raw | #233971de | — |
| markup.inserted | #4F2316de | — |
| markup.italic | #434B09de | — |
| markup.raw.block.markdown | #454545de | — |
| markup.strikethrough | #095045de | — |
| markup.underline | #303030de | — |
| meta.block.c | #2E330Ade | — |
| meta.block.c | #620337de | — |
| meta.class.java | #5C2C1Fde | — |
| meta.definition.variable.name | #5C1F41de | — |
| meta.diff.header | #5C2C1Fde | — |
| meta.embedded | #07362Fde | — |
| meta.embedded.assembly | #42471Ade | — |
| meta.function-call.arguments.python | #095045de | — |
| meta.function-call.python | #3B4018de | — |
| meta.member.access.python | #3C3C3Cde | — |
| meta.method.java | #233971de | — |
| meta.object-literal.key | #713423de | — |
| meta.paragraph.markdown | #4A2371de | — |
| meta.preprocessor | #303030de | — |
| meta.preprocessor.numeric | #46226Ade | — |
| meta.preprocessor.string | #4E271Cde | — |
| meta.scope.prerequisites.makefile | #632F20de | — |
| meta.structure.dictionary.json.comments | #1535356e | — |
| meta.structure.dictionary.key.python | #03372Ede | — |
| meta.structure.dictionary.value.json.comments | #1535356e | — |
| meta.template.expression | #43186Cde | — |
| meta.type.cast.expr | #012583de | bold |
| meta.type.new.expr | #353916de | bold |
| parameter | #1A2D5Ede | — |
| punctuation.character.set.begin.regexp | #541D3Cde | — |
| punctuation.character.set.end.regexp | #095045de | — |
| punctuation.definition.array.begin.json | #303030de | — |
| punctuation.definition.character-class.regexp | #303030de | — |
| punctuation.definition.comment | #1635356e | — |
| punctuation.definition.comment.json.comments | #1535356e | — |
| punctuation.definition.comment.python | #1635356e | — |
| punctuation.definition.dictionary.begin.json | #203363de | — |
| punctuation.definition.dictionary.end.json | #542010de | — |
| punctuation.definition.group.assertion.regexp | #163933de | — |
| punctuation.definition.group.regexp | #2C3302de | — |
| punctuation.definition.list.begin.json | #2F3314de | — |
| punctuation.definition.list.begin.markdown | #103630de | — |
| punctuation.definition.list.begin.python | #03372Ede | — |
| punctuation.definition.list.end.json | #541B3Bde | — |
| punctuation.definition.list.end.markdown | #303030de | — |
| punctuation.definition.list.end.python | #303030de | — |
| punctuation.definition.parameters.begin.python | #430F78de | — |
| punctuation.definition.parameters.end.bracket.round.java | #71234Ede | — |
| punctuation.definition.quote.begin.markdown | #07277Ade | — |
| punctuation.definition.tag | #541A3Ade | — |
| punctuation.definition.template-expression.begin | #542010de | — |
| punctuation.definition.template-expression.end | #233971de | — |
| punctuation.section.class.begin.bracket.curly.java | #1A2D5Ede | — |
| punctuation.section.embedded | #444A0Fde | — |
| punctuation.section.embedded.begin.php | #632F20de | — |
| punctuation.section.embedded.end.php | #2E330Ade | — |
| punctuation.terminator.java | #551E0Ede | — |
| source.cmake | #2E330Ade | — |
| source.coffee.embedded | #434B0Dde | — |
| source.cpp | #1A473Fde | — |
| source.css.less | #404040de | — |
| source.groovy.embedded | #6A3222de | — |
| source.java | #5E1603de | — |
| source.java-properties | #1C4E45de | — |
| source.json.comments | #1335356e | — |
| source.makefile | #303030de | — |
| source.powershell | #303030de | — |
| source.powershell.variable.other.member | #541F0Fde | — |
| source.python | #1C2D5Dde | — |
| storage | #411C66de | — |
| storage.modifier | #454545de | — |
| storage.modifier.import.java | #373737de | — |
| storage.modifier.package.java | #303030de | — |
| storage.type | #22366Ade | bold |
| storage.type.annotation.groovy | #4F2316de | bold |
| storage.type.annotation.java | #420186de | bold |
| storage.type.boolean.go | #59133Bde | bold |
| storage.type.byte.go | #541A3Ade | bold |
| storage.type.cs | #3B4018de | bold |
| storage.type.error.go | #103630de | bold |
| storage.type.generic.cs | #07362Fde | bold |
| storage.type.generic.groovy | #551E0Ede | bold |
| storage.type.generic.java | #551E0Ede | bold |
| storage.type.groovy | #233971de | bold |
| storage.type.java | #42471Ade | bold |
| storage.type.modifier.cs | #152C65de | bold |
| storage.type.numeric.go | #303030de | bold |
| storage.type.object.array.groovy | #0B2876de | bold |
| storage.type.object.array.java | #1C4E45de | bold |
| storage.type.parameters.groovy | #0B5043de | bold |
| storage.type.primitive.array.groovy | #0F5045de | bold |
| storage.type.primitive.array.java | #71234Ede | bold |
| storage.type.primitive.groovy | #542A1Dde | bold |
| storage.type.primitive.java | #03372Ede | bold |
| storage.type.rune.go | #412063de | bold |
| storage.type.string.go | #412063de | bold |
| storage.type.token.java | #541D3Cde | bold |
| storage.type.uintptr.go | #233971de | bold |
| storage.type.variable.cs | #71234Ede | bold |
| string | #0E5045de | — |
| string.quoted.docstring.multi.python | #1535356e | — |
| string.regexp | #0C5045de | — |
| string.tag | #163933de | — |
| string.value | #4E2418de | — |
| strong | #6A224Ade | — |
| support.class | #59133Bde | — |
| support.constant.color | #401E62de | — |
| support.constant.dom | #0F5045de | — |
| support.constant.font-name | #4A2371de | — |
| support.constant.handlebars | #401F62de | — |
| support.constant.json | #0B2876de | — |
| support.constant.math | #333333de | — |
| support.constant.media | #303030de | — |
| support.constant.media-type | #0B5043de | bold |
| support.constant.property-value | #303030de | — |
| support.function | #5E0B38de | — |
| support.function.git-rebase | #5C0F39de | — |
| support.other.parenthesis.regexp | #410584de | — |
| support.type | #0B5043de | bold |
| support.type.property-name | #411C66de | bold |
| support.type.vendored.property-name | #303030de | bold |
| support.variable | #632F20de | — |
| token.debug-token | #421473de | — |
| token.error-token | #0B5043de | — |
| token.info-token | #0F5045de | — |
| token.warn-token | #434B0Cde | — |
| variable | #71234Ede | — |
| variable.css | #541F0Fde | — |
| variable.language | #5C1703de | — |
| variable.language.wildcard.java | #5E0B38de | — |
| variable.other.constant | #0F5045de | — |
| variable.other.definition.java | #0B5043de | — |
| variable.other.enummember | #43186Cde | — |
| variable.other.less | #434A0Ade | — |
| variable.other.object.java | #112A6Fde | — |
| variable.other.object.property.java | #4E2418de | — |
| variable.parameter.c | #303030de | — |
| variable.parameter.function.language.python | #5C1F41de | — |
| variable.parameter.java | #44097Fde | — |
| variable.scss | #152C65de | — |
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}!`;
}