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 | #9999F86e | — |
| comment.block.html | #9999F96e | — |
| comment.block.java | #9A9AF66e | — |
| comment.block.javadoc.java | #9C9CF76e | — |
| comment.block.powershell | #9999F96e | — |
| comment.block.xml | #9C9CF76e | — |
| comment.line.double-slash.c | #9999F86e | — |
| comment.line.double-slash.cpp | #9999F96e | — |
| comment.line.double-slash.java | #9999F96e | — |
| comment.line.double-slash.js | #9999F96e | — |
| comment.line.number-sign.makefile | #9A9AF66e | — |
| comment.line.number-sign.python | #9999F96e | — |
| comment.line.number-sign.yaml | #9999F86e | — |
| comment.line.percentage.erlang | #9A9AF66e | — |
| comment.line.powershell | #9999F96e | — |
| comment.source.cmake | #9C9CF76e | — |
| comment.source.cmakecache | #9A9AF66e | — |
| constant.character | #C1A12Dde | — |
| constant.character.character-class.regexp | #39A8FBde | — |
| constant.character.escape | #EE76DCde | — |
| constant.character.set.regexp | #ED75DCde | — |
| constant.language | #B3B3B3de | — |
| constant.numeric | #08BD62de | — |
| constant.numeric.dec.python | #A2A2A2de | — |
| constant.other.caps.python | #C69D0Ade | — |
| constant.other.character-class.regexp | #EE75DDde | — |
| constant.other.character-class.set.regexp | #3BBD08de | — |
| constant.other.color.rgb-value | #08BD62de | — |
| constant.other.placeholder | #C1A12Dde | — |
| constant.other.rgb-value | #5AA9E5de | — |
| constant.regexp | #3CD78Ade | — |
| constant.sha.git-rebase | #5AA9E5de | — |
| emphasis | #EE76DCde | — |
| entity.name.class | #A994F5de | — |
| entity.name.function | #60ADE7de | — |
| entity.name.function.preprocessor | #5BCB2Ede | — |
| entity.name.function.python | #AA95F5de | — |
| entity.name.label | #59A9E4de | — |
| entity.name.namespace | #08D26Ede | — |
| entity.name.operator | #A2A2A2de | — |
| entity.name.operator.custom-literal | #AB97F5de | — |
| entity.name.scope-resolution | #A2A2A2de | — |
| entity.name.tag | #AA95F5de | — |
| entity.name.tag.css | #ED75DCde | — |
| entity.name.type | #68D73Cde | — |
| entity.name.variable | #C79F09de | — |
| entity.other.attribute | #3CBD09de | — |
| entity.other.attribute-name | #54B82Dde | — |
| entity.other.attribute-name.class.css | #59A9E5de | — |
| entity.other.attribute-name.class.mixin.css | #EE76DCde | — |
| entity.other.attribute-name.id | #A2A2A2de | — |
| entity.other.attribute-name.id.css | #3DBB09de | — |
| entity.other.attribute-name.parent-selector.css | #B19EF7de | — |
| entity.other.attribute-name.pseudo-class.css | #A2A2A2de | — |
| entity.other.attribute-name.pseudo-element.css | #A3A3A3de | — |
| entity.other.attribute-name.scss | #ED75DCde | — |
| entity.other.document.begin.yaml | #9999F96e | — |
| entity.other.inherited-class | #A994F5de | — |
| header | #08BD62de | — |
| invalid | #3DBD0Ade | — |
| keyword | #3DBD0Ade | — |
| keyword.codetag.notation.python | #09BB63de | — |
| keyword.control | #D7B63Cde | — |
| keyword.control.anchor.regexp | #AFAFAFde | — |
| keyword.control.import.python | #5BAAE6de | — |
| keyword.operator | #C89F09de | — |
| keyword.operator.alignas | #3DBB09de | — |
| keyword.operator.alignof | #ED75DCde | — |
| keyword.operator.cast | #09BB63de | — |
| keyword.operator.delete | #5AA9E5de | — |
| keyword.operator.documentation.powershell | #9A9AF66e | — |
| keyword.operator.expression | #08BD62de | — |
| keyword.operator.instanceof | #EE76DCde | — |
| keyword.operator.logical.python | #A2A2A2de | — |
| keyword.operator.minus.exponent | #AFAFAFde | — |
| keyword.operator.negation.regexp | #2DB973de | — |
| keyword.operator.new | #6DB5EBde | — |
| keyword.operator.noexcept | #7BBDEFde | — |
| keyword.operator.or.regexp | #82C1F1de | — |
| keyword.operator.plus.exponent | #F490E6de | — |
| keyword.operator.quantifier.regexp | #D2AF30de | — |
| keyword.operator.sizeof | #A2A2A2de | — |
| keyword.operator.typeid | #F79EEAde | — |
| keyword.operator.wordlike | #D7B63Cde | — |
| keyword.other.operator | #A894F5de | — |
| keyword.other.package.java | #AFAFAFde | — |
| keyword.other.unit | #C79E09de | — |
| keyword.other.using | #AFAFAFde | — |
| markup.bold | #ED75DCde | — |
| markup.changed | #A2A2A2de | — |
| markup.deleted | #A2A2A2de | — |
| markup.fenced_code.block.markdown | #B7A6F8de | — |
| markup.heading | #EE76DCde | — |
| markup.inline.raw | #C79D07de | — |
| markup.inserted | #C79F09de | — |
| markup.italic | #3DBB09de | — |
| markup.raw.block.markdown | #AB97F5de | — |
| markup.strikethrough | #A2A2A2de | — |
| markup.underline | #59A9E4de | — |
| meta.block.c | #5BA9E5de | — |
| meta.block.c | #09BB63de | — |
| meta.class.java | #C79E09de | — |
| meta.definition.variable.name | #ED75DCde | — |
| meta.diff.header | #2ECB7Dde | — |
| meta.embedded | #A994F5de | — |
| meta.embedded.assembly | #54B72Dde | — |
| meta.function-call.arguments.python | #A2A2A2de | — |
| meta.function-call.python | #F289E3de | — |
| meta.member.access.python | #ED75DCde | — |
| meta.method.java | #A2A2A2de | — |
| meta.object-literal.key | #A894F4de | — |
| meta.paragraph.markdown | #A994F5de | — |
| meta.preprocessor | #C69E07de | — |
| meta.preprocessor.numeric | #60ADE7de | — |
| meta.preprocessor.string | #A894F4de | — |
| meta.scope.prerequisites.makefile | #A2A2A2de | — |
| meta.structure.dictionary.json.comments | #9999F86e | — |
| meta.structure.dictionary.key.python | #5AA9E5de | — |
| meta.structure.dictionary.value.json.comments | #9999F86e | — |
| meta.template.expression | #08D26Ede | — |
| meta.type.cast.expr | #A3A3A3de | — |
| meta.type.new.expr | #ED75DCde | — |
| parameter | #09BB63de | — |
| punctuation.character.set.begin.regexp | #A994F5de | — |
| punctuation.character.set.end.regexp | #3CD78Ade | — |
| punctuation.definition.array.begin.json | #36D585de | — |
| punctuation.definition.character-class.regexp | #A894F4de | — |
| punctuation.definition.comment | #9999F96e | — |
| punctuation.definition.comment.json.comments | #9999F86e | — |
| punctuation.definition.comment.python | #9C9CF76e | — |
| punctuation.definition.dictionary.begin.json | #EF7BDEde | — |
| punctuation.definition.dictionary.end.json | #A2A2A2de | — |
| punctuation.definition.group.assertion.regexp | #ED75DCde | — |
| punctuation.definition.group.regexp | #A994F5de | — |
| punctuation.definition.list.begin.json | #2EC378de | — |
| punctuation.definition.list.begin.markdown | #CBA92Ede | — |
| punctuation.definition.list.begin.python | #08D56Fde | — |
| punctuation.definition.list.end.json | #A994F5de | — |
| punctuation.definition.list.end.markdown | #C79F09de | — |
| punctuation.definition.list.end.python | #A3A3A3de | — |
| punctuation.definition.parameters.begin.python | #09BB63de | — |
| punctuation.definition.parameters.end.bracket.round.java | #3BBB09de | — |
| punctuation.definition.quote.begin.markdown | #5AA9E5de | — |
| punctuation.definition.tag | #A2A2A2de | — |
| punctuation.definition.template-expression.begin | #2DBA74de | — |
| punctuation.definition.template-expression.end | #5AA9E4de | — |
| punctuation.section.class.begin.bracket.curly.java | #55B92Ede | — |
| punctuation.section.embedded | #C1A12Dde | — |
| punctuation.section.embedded.begin.php | #07BB61de | — |
| punctuation.section.embedded.end.php | #EE74DCde | — |
| punctuation.terminator.java | #A994F5de | — |
| source.cmake | #3BBB0Ade | — |
| source.coffee.embedded | #A994F5de | — |
| source.cpp | #3CBD09de | — |
| source.css.less | #2ECB7Dde | — |
| source.groovy.embedded | #A995F5de | — |
| source.java | #CBA92Ede | — |
| source.java-properties | #A2A2A2de | — |
| source.json.comments | #9C9CF76e | — |
| source.makefile | #C89F09de | — |
| source.powershell | #3DBD0Ade | — |
| source.powershell.variable.other.member | #5AAAE5de | — |
| source.python | #A994F5de | — |
| storage | #58C32Ede | — |
| storage.modifier | #74B9EDde | — |
| storage.modifier.import.java | #09C467de | — |
| storage.modifier.package.java | #59A9E4de | — |
| storage.type | #EE76DDde | — |
| storage.type.annotation.groovy | #F182E1de | — |
| storage.type.annotation.java | #EE74DCde | — |
| storage.type.boolean.go | #89C5F2de | — |
| storage.type.byte.go | #39A8FBde | — |
| storage.type.cs | #D2AF30de | — |
| storage.type.error.go | #C49D08de | — |
| storage.type.generic.cs | #C69D09de | — |
| storage.type.generic.groovy | #3BBA07de | — |
| storage.type.generic.java | #07DB71de | — |
| storage.type.groovy | #A994F5de | — |
| storage.type.java | #A995F5de | — |
| storage.type.modifier.cs | #B7A6F8de | — |
| storage.type.numeric.go | #3CBB0Ade | — |
| storage.type.object.array.groovy | #A994F5de | — |
| storage.type.object.array.java | #C59D09de | — |
| storage.type.parameters.groovy | #09C467de | — |
| storage.type.primitive.array.groovy | #C79F09de | — |
| storage.type.primitive.array.java | #5AA9E4de | — |
| storage.type.primitive.groovy | #AFAFAFde | — |
| storage.type.primitive.java | #C0A02Dde | — |
| storage.type.rune.go | #B7A6F8de | — |
| storage.type.string.go | #B19EF7de | — |
| storage.type.token.java | #58A9E5de | — |
| storage.type.uintptr.go | #EE75DCde | — |
| storage.type.variable.cs | #EE74DCde | — |
| string | #C59D09de | — |
| string.quoted.docstring.multi.python | #9A9AF66e | — |
| string.regexp | #C69D09de | — |
| string.tag | #A3A3A3de | — |
| string.value | #ED75DCde | — |
| strong | #A995F5de | — |
| support.class | #3BBB0Ade | — |
| support.constant.color | #68D73Cde | — |
| support.constant.dom | #A894F5de | — |
| support.constant.font-name | #3DBC0Ade | — |
| support.constant.handlebars | #2ECB7Dde | — |
| support.constant.json | #08D56Ede | — |
| support.constant.math | #A2A2A2de | — |
| support.constant.media | #D2AF30de | — |
| support.constant.media-type | #C79F09de | — |
| support.constant.property-value | #A6A6A6de | — |
| support.function | #A3A3A3de | — |
| support.function.git-rebase | #F490E6de | — |
| support.other.parenthesis.regexp | #A3A3A3de | — |
| support.type | #A995F5de | — |
| support.type.property-name | #ED75DCde | — |
| support.type.vendored.property-name | #3DBB09de | — |
| support.variable | #A995F5de | — |
| token.debug-token | #A2A2A2de | — |
| token.error-token | #59A9E4de | — |
| token.info-token | #F79EEAde | — |
| token.warn-token | #3DBD0Ade | — |
| variable | #A995F5de | — |
| variable.css | #A894F5de | — |
| variable.language | #AAAAAAde | — |
| variable.language.wildcard.java | #3CBB0Ade | — |
| variable.other.constant | #C89F09de | — |
| variable.other.definition.java | #3DBB0Ade | — |
| variable.other.enummember | #A2A2A2de | — |
| variable.other.less | #A894F5de | — |
| variable.other.object.java | #AA95F5de | — |
| variable.other.object.property.java | #5AA9E5de | — |
| variable.parameter.c | #58A9E4de | — |
| variable.parameter.function.language.python | #A3A3A3de | — |
| variable.parameter.java | #54B82Dde | — |
| variable.scss | #ED75DCde | — |
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}!`;
}