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 | #09207C6e | — |
| comment.block.html | #071F7E6e | — |
| comment.block.java | #09207C6e | — |
| comment.block.javadoc.java | #0F28666e | — |
| comment.block.powershell | #071F7E6e | — |
| comment.block.xml | #0F28666e | — |
| comment.line.double-slash.c | #09207C6e | — |
| comment.line.double-slash.cpp | #081F7F6e | — |
| comment.line.double-slash.java | #081F7F6e | — |
| comment.line.double-slash.js | #071F7E6e | — |
| comment.line.number-sign.makefile | #071F7E6e | — |
| comment.line.number-sign.python | #081F7F6e | — |
| comment.line.number-sign.yaml | #0F28666e | — |
| comment.line.percentage.erlang | #0F28666e | — |
| comment.line.powershell | #09207C6e | — |
| comment.source.cmake | #071F7E6e | — |
| comment.source.cmakecache | #09207C6e | — |
| constant.character | #1A2665de | — |
| constant.character.character-class.regexp | #722F04de | — |
| constant.character.escape | #0D4F13de | — |
| constant.character.set.regexp | #461559de | — |
| constant.language | #192569de | — |
| constant.numeric | #46145Dde | — |
| constant.numeric.dec.python | #5E1B36de | — |
| constant.other.caps.python | #123333de | — |
| constant.other.character-class.regexp | #192569de | — |
| constant.other.character-class.set.regexp | #142372de | — |
| constant.other.color.rgb-value | #0D4F13de | — |
| constant.other.placeholder | #703208de | — |
| constant.other.rgb-value | #4A026Ade | — |
| constant.regexp | #123333de | — |
| constant.sha.git-rebase | #5A1F74de | — |
| emphasis | #0E4F14de | — |
| entity.name.class | #142372de | — |
| entity.name.function | #590C2Bde | — |
| entity.name.function.preprocessor | #0E3232de | — |
| entity.name.function.python | #4A026Ade | — |
| entity.name.label | #5A1F74de | — |
| entity.name.namespace | #482A17de | — |
| entity.name.operator | #023608de | — |
| entity.name.operator.custom-literal | #03178Cde | — |
| entity.name.scope-resolution | #4A1B5Ede | — |
| entity.name.tag | #0D4F13de | — |
| entity.name.tag.css | #422613de | — |
| entity.name.type | #1C2765de | bold |
| entity.name.variable | #490B63de | — |
| entity.other.attribute | #0F3232de | — |
| entity.other.attribute-name | #0E3412de | — |
| entity.other.attribute-name.class.css | #123315de | — |
| entity.other.attribute-name.class.mixin.css | #713106de | — |
| entity.other.attribute-name.id | #25300Cde | — |
| entity.other.attribute-name.id.css | #293312de | — |
| entity.other.attribute-name.parent-selector.css | #590C27de | — |
| entity.other.attribute-name.pseudo-class.css | #374A0Bde | — |
| entity.other.attribute-name.pseudo-element.css | #03178Cde | — |
| entity.other.attribute-name.scss | #580E29de | — |
| entity.other.document.begin.yaml | #09207C6e | — |
| entity.other.inherited-class | #1C2765de | — |
| header | #133A3Ade | — |
| invalid | #0C1C83de | — |
| keyword | #03178Cde | bold |
| keyword.codetag.notation.python | #5E1B36de | bold |
| keyword.control | #6C1E3Dde | bold |
| keyword.control.anchor.regexp | #53142Dde | bold |
| keyword.control.import.python | #064F0Ede | bold |
| keyword.operator | #154141de | bold |
| keyword.operator.alignas | #293312de | bold |
| keyword.operator.alignof | #192569de | bold |
| keyword.operator.cast | #1B2664de | bold |
| keyword.operator.delete | #1F2C74de | bold |
| keyword.operator.documentation.powershell | #071F7E6e | bold |
| keyword.operator.expression | #174848de | bold |
| keyword.operator.instanceof | #580E29de | bold |
| keyword.operator.logical.python | #38490Fde | bold |
| keyword.operator.minus.exponent | #461559de | bold |
| keyword.operator.negation.regexp | #46240Fde | bold |
| keyword.operator.new | #123333de | bold |
| keyword.operator.noexcept | #580E29de | bold |
| keyword.operator.or.regexp | #374A0Bde | bold |
| keyword.operator.plus.exponent | #0A4B4Bde | bold |
| keyword.operator.quantifier.regexp | #064F0Ede | bold |
| keyword.operator.sizeof | #0B4B4Bde | bold |
| keyword.operator.typeid | #590C27de | bold |
| keyword.operator.wordlike | #17256Cde | bold |
| keyword.other.operator | #4A1B5Ede | bold |
| keyword.other.package.java | #490C61de | bold |
| keyword.other.unit | #6C1E3Dde | bold |
| keyword.other.using | #1A2665de | bold |
| markup.bold | #064F0Ede | — |
| markup.changed | #133A17de | — |
| markup.deleted | #1B2664de | — |
| markup.fenced_code.block.markdown | #46145Dde | — |
| markup.heading | #46240Fde | — |
| markup.inline.raw | #094B4Bde | — |
| markup.inserted | #021491de | — |
| markup.italic | #0B4B4Bde | — |
| markup.raw.block.markdown | #741F41de | — |
| markup.strikethrough | #441A56de | — |
| markup.underline | #703208de | — |
| meta.block.c | #394817de | — |
| meta.block.c | #432613de | — |
| meta.class.java | #441857de | — |
| meta.definition.variable.name | #0F3232de | — |
| meta.diff.header | #56112Bde | — |
| meta.embedded | #142372de | — |
| meta.embedded.assembly | #53142Dde | — |
| meta.function-call.arguments.python | #0B4F12de | — |
| meta.function-call.python | #451758de | — |
| meta.member.access.python | #56321Ade | — |
| meta.method.java | #0A4F11de | — |
| meta.object-literal.key | #094B4Bde | — |
| meta.paragraph.markdown | #0D4F13de | — |
| meta.preprocessor | #1B2664de | — |
| meta.preprocessor.numeric | #03178Cde | — |
| meta.preprocessor.string | #590C2Bde | — |
| meta.scope.prerequisites.makefile | #133A17de | — |
| meta.structure.dictionary.json.comments | #081F7F6e | — |
| meta.structure.dictionary.key.python | #4F1C65de | — |
| meta.structure.dictionary.value.json.comments | #0F28666e | — |
| meta.template.expression | #4D2002de | — |
| meta.type.cast.expr | #133A17de | bold |
| meta.type.new.expr | #4A1B5Ede | bold |
| parameter | #56321Ade | — |
| punctuation.character.set.begin.regexp | #580E29de | — |
| punctuation.character.set.end.regexp | #123315de | — |
| punctuation.definition.array.begin.json | #0D4F13de | — |
| punctuation.definition.character-class.regexp | #45240Ede | — |
| punctuation.definition.comment | #09207C6e | — |
| punctuation.definition.comment.json.comments | #09207C6e | — |
| punctuation.definition.comment.python | #09207C6e | — |
| punctuation.definition.dictionary.begin.json | #0F3412de | — |
| punctuation.definition.dictionary.end.json | #442511de | — |
| punctuation.definition.group.assertion.regexp | #4F2E18de | — |
| punctuation.definition.group.regexp | #590C2Bde | — |
| punctuation.definition.list.begin.json | #344115de | — |
| punctuation.definition.list.begin.markdown | #0F3232de | — |
| punctuation.definition.list.begin.python | #2F3A13de | — |
| punctuation.definition.list.end.json | #6C1E3Dde | — |
| punctuation.definition.list.end.markdown | #722F04de | — |
| punctuation.definition.list.end.python | #46145Dde | — |
| punctuation.definition.parameters.begin.python | #741F41de | — |
| punctuation.definition.parameters.end.bracket.round.java | #344115de | — |
| punctuation.definition.quote.begin.markdown | #713106de | — |
| punctuation.definition.tag | #38490Dde | — |
| punctuation.definition.template-expression.begin | #580E29de | — |
| punctuation.definition.template-expression.end | #442511de | — |
| punctuation.section.class.begin.bracket.curly.java | #1C2765de | — |
| punctuation.section.embedded | #0B4F12de | — |
| punctuation.section.embedded.begin.php | #37490Ede | — |
| punctuation.section.embedded.end.php | #45240Ede | — |
| punctuation.terminator.java | #53142Dde | — |
| source.cmake | #56102Cde | — |
| source.coffee.embedded | #1B2664de | — |
| source.cpp | #0D4B4Bde | — |
| source.css.less | #064F0Ede | — |
| source.groovy.embedded | #46145Dde | — |
| source.java | #561A32de | — |
| source.java-properties | #441857de | — |
| source.json.comments | #0F28666e | — |
| source.makefile | #5A1F74de | — |
| source.powershell | #1A2665de | — |
| source.powershell.variable.other.member | #0D4B4Bde | — |
| source.python | #53152Ede | — |
| storage | #482A17de | — |
| storage.modifier | #293312de | — |
| storage.modifier.import.java | #0A3232de | — |
| storage.modifier.package.java | #441A56de | — |
| storage.type | #741F41de | bold |
| storage.type.annotation.groovy | #56321Ade | bold |
| storage.type.annotation.java | #133A17de | bold |
| storage.type.boolean.go | #422613de | bold |
| storage.type.byte.go | #590C27de | bold |
| storage.type.cs | #713106de | bold |
| storage.type.error.go | #123315de | bold |
| storage.type.generic.cs | #38490Dde | bold |
| storage.type.generic.groovy | #1E296Cde | bold |
| storage.type.generic.java | #561A32de | bold |
| storage.type.groovy | #154141de | bold |
| storage.type.java | #6F320Ade | bold |
| storage.type.modifier.cs | #133A3Ade | bold |
| storage.type.numeric.go | #202E7Bde | bold |
| storage.type.object.array.groovy | #0E3232de | bold |
| storage.type.object.array.java | #60207Bde | bold |
| storage.type.parameters.groovy | #38490Fde | bold |
| storage.type.primitive.array.groovy | #0A4F11de | bold |
| storage.type.primitive.array.java | #344115de | bold |
| storage.type.primitive.groovy | #53152Ede | bold |
| storage.type.primitive.java | #0A4B4Bde | bold |
| storage.type.rune.go | #441856de | bold |
| storage.type.string.go | #451758de | bold |
| storage.type.token.java | #1A2665de | bold |
| storage.type.uintptr.go | #023608de | bold |
| storage.type.variable.cs | #021491de | bold |
| string | #2F3A13de | — |
| string.quoted.docstring.multi.python | #071F7E6e | — |
| string.regexp | #53142Dde | — |
| string.tag | #56112Bde | — |
| string.value | #1B2664de | — |
| strong | #0E4F14de | — |
| support.class | #441856de | — |
| support.constant.color | #03178Cde | — |
| support.constant.dom | #651C39de | — |
| support.constant.font-name | #0B4B4Bde | — |
| support.constant.handlebars | #590C2Bde | — |
| support.constant.json | #52162Fde | — |
| support.constant.math | #233101de | — |
| support.constant.media | #37490Ede | — |
| support.constant.media-type | #38490Dde | bold |
| support.constant.property-value | #5A1F74de | — |
| support.function | #0E4B4Bde | — |
| support.function.git-rebase | #46145Dde | — |
| support.other.parenthesis.regexp | #56321Ade | — |
| support.type | #0F3412de | bold |
| support.type.property-name | #023608de | bold |
| support.type.vendored.property-name | #1B2664de | bold |
| support.variable | #17481Cde | — |
| token.debug-token | #0B4F12de | — |
| token.error-token | #56321Ade | — |
| token.info-token | #17256Cde | — |
| token.warn-token | #064F0Ede | — |
| variable | #0E3232de | — |
| variable.css | #482A17de | — |
| variable.language | #50182Dde | — |
| variable.language.wildcard.java | #074C4Cde | — |
| variable.other.constant | #5E0226de | — |
| variable.other.definition.java | #442511de | — |
| variable.other.enummember | #17256Cde | — |
| variable.other.less | #722F04de | — |
| variable.other.object.java | #4A1B5Ede | — |
| variable.other.object.property.java | #52162Fde | — |
| variable.parameter.c | #432613de | — |
| variable.parameter.function.language.python | #0B4F12de | — |
| variable.parameter.java | #1A2665de | — |
| variable.scss | #0E3232de | — |
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}!`;
}