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 | #4F4F2C6e | — |
| comment.block.html | #4F4F2C6e | — |
| comment.block.java | #4F4F2C6e | — |
| comment.block.javadoc.java | #4F4F2C6e | — |
| comment.block.powershell | #4F4F2C6e | — |
| comment.block.xml | #4F4F2C6e | — |
| comment.line.double-slash.c | #4E4E2A6e | — |
| comment.line.double-slash.cpp | #4F4F2C6e | — |
| comment.line.double-slash.java | #4E4E2A6e | — |
| comment.line.double-slash.js | #4F4F2C6e | — |
| comment.line.number-sign.makefile | #4E4E2A6e | — |
| comment.line.number-sign.python | #4F4F2C6e | — |
| comment.line.number-sign.yaml | #4E4E2A6e | — |
| comment.line.percentage.erlang | #4E4E2A6e | — |
| comment.line.powershell | #4E4E2A6e | — |
| comment.source.cmake | #4E4E2A6e | — |
| comment.source.cmakecache | #4F4F2C6e | — |
| constant.character | #5D407Ede | — |
| constant.character.character-class.regexp | #4D4D4Dde | — |
| constant.character.escape | #114E8Cde | — |
| constant.character.set.regexp | #335710de | — |
| constant.language | #980F54de | — |
| constant.numeric | #504336de | — |
| constant.numeric.dec.python | #4E4E4Ede | — |
| constant.other.caps.python | #6A3D54de | — |
| constant.other.character-class.regexp | #4A3F34de | — |
| constant.other.character-class.set.regexp | #33570Ede | — |
| constant.other.color.rgb-value | #105835de | — |
| constant.other.placeholder | #504336de | — |
| constant.other.rgb-value | #4E4E4Ede | — |
| constant.regexp | #4E4E4Ede | — |
| constant.sha.git-rebase | #4E4E4Ede | — |
| emphasis | #365344de | — |
| entity.name.class | #345710de | — |
| entity.name.function | #5D407Ede | — |
| entity.name.function.preprocessor | #74410Ede | — |
| entity.name.function.python | #703E55de | — |
| entity.name.label | #75410Dde | — |
| entity.name.namespace | #583F71de | — |
| entity.name.operator | #4E4E4Ede | — |
| entity.name.operator.custom-literal | #365043de | — |
| entity.name.scope-resolution | #3F3F3Fde | — |
| entity.name.tag | #76410Cde | — |
| entity.name.tag.css | #4D4D4Dde | — |
| entity.name.type | #4B3A5Dde | bold |
| entity.name.variable | #105935de | — |
| entity.other.attribute | #74420Fde | — |
| entity.other.attribute-name | #4E4E4Ede | — |
| entity.other.attribute-name.class.css | #4A3F34de | — |
| entity.other.attribute-name.class.mixin.css | #4E4E4Ede | — |
| entity.other.attribute-name.id | #503643de | — |
| entity.other.attribute-name.id.css | #76410Cde | — |
| entity.other.attribute-name.parent-selector.css | #703E55de | — |
| entity.other.attribute-name.pseudo-class.css | #734211de | — |
| entity.other.attribute-name.pseudo-element.css | #4D4D4Dde | — |
| entity.other.attribute-name.scss | #970E53de | — |
| entity.other.document.begin.yaml | #4E4E2A6e | — |
| entity.other.inherited-class | #3E372Fde | bold |
| header | #6A05CFde | — |
| invalid | #5D4B3Ade | — |
| keyword | #980F53de | bold |
| keyword.codetag.notation.python | #345810de | bold |
| keyword.control | #6A09CDde | bold |
| keyword.control.anchor.regexp | #4E4E4Ede | bold |
| keyword.control.import.python | #703E57de | bold |
| keyword.operator | #543D6Ade | bold |
| keyword.operator.alignas | #345810de | bold |
| keyword.operator.alignof | #0F5A34de | bold |
| keyword.operator.cast | #473856de | bold |
| keyword.operator.delete | #4E4E4Ede | bold |
| keyword.operator.documentation.powershell | #4F4F2C6e | bold |
| keyword.operator.expression | #435336de | bold |
| keyword.operator.instanceof | #4D4D4Dde | bold |
| keyword.operator.logical.python | #5D4B3Ade | bold |
| keyword.operator.minus.exponent | #583F71de | bold |
| keyword.operator.negation.regexp | #435336de | bold |
| keyword.operator.new | #774109de | bold |
| keyword.operator.noexcept | #343F4Ade | bold |
| keyword.operator.or.regexp | #981054de | bold |
| keyword.operator.plus.exponent | #104B2Dde | bold |
| keyword.operator.quantifier.regexp | #4E4E4Ede | bold |
| keyword.operator.sizeof | #970E53de | bold |
| keyword.operator.typeid | #4D4D4Dde | bold |
| keyword.operator.wordlike | #633C50de | bold |
| keyword.other.operator | #774109de | bold |
| keyword.other.package.java | #114C87de | bold |
| keyword.other.unit | #734211de | bold |
| keyword.other.using | #33570Dde | bold |
| markup.bold | #4E4E4Ede | — |
| markup.changed | #0F5A34de | — |
| markup.deleted | #4E4E4Ede | — |
| markup.fenced_code.block.markdown | #4E4E4Ede | — |
| markup.heading | #3F4A34de | — |
| markup.inline.raw | #384756de | — |
| markup.inserted | #4E4E4Ede | — |
| markup.italic | #6200C5de | — |
| markup.raw.block.markdown | #4E4E4Ede | — |
| markup.strikethrough | #0E3A66de | — |
| markup.underline | #5E417Fde | — |
| meta.block.c | #3F344Ade | — |
| meta.block.c | #345810de | — |
| meta.class.java | #114172de | — |
| meta.definition.variable.name | #373E2Fde | — |
| meta.diff.header | #724211de | — |
| meta.embedded | #103963de | — |
| meta.embedded.assembly | #105935de | — |
| meta.function-call.arguments.python | #345811de | — |
| meta.function-call.python | #384756de | — |
| meta.member.access.python | #744211de | — |
| meta.method.java | #105835de | — |
| meta.object-literal.key | #961053de | — |
| meta.paragraph.markdown | #345810de | — |
| meta.preprocessor | #0F4E2Fde | — |
| meta.preprocessor.numeric | #3F4A34de | — |
| meta.preprocessor.string | #980C53de | — |
| meta.scope.prerequisites.makefile | #583F71de | — |
| meta.structure.dictionary.json.comments | #4F4F2C6e | — |
| meta.structure.dictionary.key.python | #33570Dde | — |
| meta.structure.dictionary.value.json.comments | #4F4F2C6e | — |
| meta.template.expression | #5D4B3Ade | — |
| meta.type.cast.expr | #703E57de | — |
| meta.type.new.expr | #0F3C69de | — |
| parameter | #105A35de | — |
| punctuation.character.set.begin.regexp | #6200C5de | — |
| punctuation.character.set.end.regexp | #105A35de | — |
| punctuation.definition.array.begin.json | #6A09CDde | — |
| punctuation.definition.character-class.regexp | #3C4F64de | — |
| punctuation.definition.comment | #4E4E2A6e | — |
| punctuation.definition.comment.json.comments | #4E4E2A6e | — |
| punctuation.definition.comment.python | #4E4E2A6e | — |
| punctuation.definition.dictionary.begin.json | #75410Ade | — |
| punctuation.definition.dictionary.end.json | #6A05CFde | — |
| punctuation.definition.group.assertion.regexp | #105934de | — |
| punctuation.definition.group.regexp | #31570Bde | — |
| punctuation.definition.list.begin.json | #114D89de | — |
| punctuation.definition.list.begin.markdown | #445336de | — |
| punctuation.definition.list.begin.python | #744211de | — |
| punctuation.definition.list.end.json | #105934de | — |
| punctuation.definition.list.end.markdown | #105A35de | — |
| punctuation.definition.list.end.python | #105935de | — |
| punctuation.definition.parameters.begin.python | #5D407Ede | — |
| punctuation.definition.parameters.end.bracket.round.java | #744211de | — |
| punctuation.definition.quote.begin.markdown | #335710de | — |
| punctuation.definition.tag | #345710de | — |
| punctuation.definition.template-expression.begin | #4D4D4Dde | — |
| punctuation.definition.template-expression.end | #104B2Dde | — |
| punctuation.section.class.begin.bracket.curly.java | #503643de | — |
| punctuation.section.embedded | #115A35de | — |
| punctuation.section.embedded.begin.php | #6C0DCAde | — |
| punctuation.section.embedded.end.php | #0F5A34de | — |
| punctuation.terminator.java | #105A35de | — |
| source.cmake | #724211de | — |
| source.coffee.embedded | #345710de | — |
| source.cpp | #74410Ede | — |
| source.css.less | #343F4Ade | — |
| source.groovy.embedded | #4E4E4Ede | — |
| source.java | #0E5432de | — |
| source.java-properties | #335710de | — |
| source.json.comments | #4F4F2C6e | — |
| source.makefile | #9B0550de | — |
| source.powershell | #105934de | — |
| source.powershell.variable.other.member | #3C4F63de | — |
| source.python | #744211de | — |
| storage | #633C50de | — |
| storage.modifier | #713E59de | — |
| storage.modifier.import.java | #0D4C2Cde | — |
| storage.modifier.package.java | #543D6Ade | — |
| storage.type | #4E4E4Ede | bold |
| storage.type.annotation.groovy | #3A4B5Dde | bold |
| storage.type.annotation.java | #980F53de | bold |
| storage.type.boolean.go | #444444de | bold |
| storage.type.byte.go | #10467Bde | bold |
| storage.type.cs | #105935de | bold |
| storage.type.error.go | #4F3C63de | bold |
| storage.type.generic.cs | #3E372Fde | bold |
| storage.type.generic.groovy | #105835de | bold |
| storage.type.generic.java | #33580Fde | bold |
| storage.type.groovy | #4E4E4Ede | bold |
| storage.type.java | #0E5432de | bold |
| storage.type.modifier.cs | #114376de | bold |
| storage.type.numeric.go | #31570Bde | bold |
| storage.type.object.array.groovy | #6E3E58de | bold |
| storage.type.object.array.java | #345810de | bold |
| storage.type.parameters.groovy | #33570Fde | bold |
| storage.type.primitive.array.groovy | #4E4E4Ede | bold |
| storage.type.primitive.array.java | #4E4E4Ede | bold |
| storage.type.primitive.groovy | #5F00BDde | bold |
| storage.type.primitive.java | #6200C5de | bold |
| storage.type.rune.go | #114F8Ede | bold |
| storage.type.string.go | #6A08CBde | bold |
| storage.type.token.java | #33580Fde | bold |
| storage.type.uintptr.go | #345810de | bold |
| storage.type.variable.cs | #105A35de | bold |
| string | #744211de | — |
| string.quoted.docstring.multi.python | #4F4F2C6e | — |
| string.regexp | #345811de | — |
| string.tag | #3C4F66de | — |
| string.value | #0F3C69de | — |
| strong | #4E4E4Ede | — |
| support.class | #5F407Bde | — |
| support.constant.color | #75410Ade | — |
| support.constant.dom | #104B2Dde | — |
| support.constant.font-name | #744210de | — |
| support.constant.handlebars | #31580Cde | — |
| support.constant.json | #0F3963de | — |
| support.constant.math | #484848de | — |
| support.constant.media | #105935de | — |
| support.constant.media-type | #105834de | — |
| support.constant.property-value | #4E4E4Ede | — |
| support.function | #4D4D4Dde | — |
| support.function.git-rebase | #114172de | — |
| support.other.parenthesis.regexp | #435036de | — |
| support.type | #0F3C69de | bold |
| support.type.property-name | #75410Ade | bold |
| support.type.vendored.property-name | #365343de | bold |
| support.variable | #105835de | — |
| token.debug-token | #4D4D4Dde | — |
| token.error-token | #344A3Fde | — |
| token.info-token | #345710de | — |
| token.warn-token | #433650de | — |
| variable | #3C4F66de | — |
| variable.css | #503643de | — |
| variable.language | #114E8Cde | — |
| variable.language.wildcard.java | #4D4D4Dde | — |
| variable.other.constant | #724211de | — |
| variable.other.definition.java | #3B4431de | — |
| variable.other.enummember | #105935de | — |
| variable.other.less | #443B31de | — |
| variable.other.object.java | #5C4B39de | — |
| variable.other.object.property.java | #564738de | — |
| variable.parameter.c | #114C87de | — |
| variable.parameter.function.language.python | #5E407Bde | — |
| variable.parameter.java | #4D4D4Dde | — |
| variable.scss | #75410Ede | — |
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}!`;
}