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 | #4D4D4D6e | — |
| comment.block.html | #4D4D4D6e | — |
| comment.block.java | #4E4E4E6e | — |
| comment.block.javadoc.java | #4C4C4C6e | — |
| comment.block.powershell | #4D4D4D6e | — |
| comment.block.xml | #4E4E4E6e | — |
| comment.line.double-slash.c | #4D4D4D6e | — |
| comment.line.double-slash.cpp | #4D4D4D6e | — |
| comment.line.double-slash.java | #4E4E4E6e | — |
| comment.line.double-slash.js | #4E4E4E6e | — |
| comment.line.number-sign.makefile | #4E4E4E6e | — |
| comment.line.number-sign.python | #4C4C4C6e | — |
| comment.line.number-sign.yaml | #4D4D4D6e | — |
| comment.line.percentage.erlang | #4E4E4E6e | — |
| comment.line.powershell | #4E4E4E6e | — |
| comment.source.cmake | #4E4E4E6e | — |
| comment.source.cmakecache | #4D4D4D6e | — |
| constant.character | #1C451Ede | — |
| constant.character.character-class.regexp | #074D4Dde | — |
| constant.character.escape | #095858de | — |
| constant.character.set.regexp | #734326de | — |
| constant.language | #84380Ade | — |
| constant.numeric | #42521Fde | — |
| constant.numeric.dec.python | #0B5858de | — |
| constant.other.caps.python | #2D3EC0de | — |
| constant.other.character-class.regexp | #0A5858de | — |
| constant.other.character-class.set.regexp | #0B5858de | — |
| constant.other.color.rgb-value | #0A5B0Fde | — |
| constant.other.placeholder | #0B5858de | — |
| constant.other.rgb-value | #3D550Ade | — |
| constant.regexp | #0B5C0Fde | — |
| constant.sha.git-rebase | #60233Ede | — |
| emphasis | #3D5507de | — |
| entity.name.class | #2D3DC0de | — |
| entity.name.function | #0A5757de | — |
| entity.name.function.preprocessor | #0A5858de | — |
| entity.name.function.python | #852951de | — |
| entity.name.label | #091EB4de | — |
| entity.name.namespace | #724226de | — |
| entity.name.operator | #205656de | — |
| entity.name.operator.custom-literal | #205656de | — |
| entity.name.scope-resolution | #84380Bde | — |
| entity.name.tag | #3E5606de | — |
| entity.name.tag.css | #6E2A8Dde | — |
| entity.name.type | #2D3EBFde | bold |
| entity.name.variable | #84380Ade | — |
| entity.other.attribute | #9E0447de | — |
| entity.other.attribute-name | #205656de | — |
| entity.other.attribute-name.class.css | #084B4Bde | — |
| entity.other.attribute-name.class.mixin.css | #0A5858de | — |
| entity.other.attribute-name.id | #435220de | — |
| entity.other.attribute-name.id.css | #0A5B0Fde | — |
| entity.other.attribute-name.parent-selector.css | #0A5B0Fde | — |
| entity.other.attribute-name.pseudo-class.css | #742A95de | — |
| entity.other.attribute-name.pseudo-element.css | #8A2A55de | — |
| entity.other.attribute-name.scss | #0A1EACde | — |
| entity.other.document.begin.yaml | #4C4C4C6e | — |
| entity.other.inherited-class | #091EBBde | bold |
| header | #83380Bde | — |
| invalid | #2C3FBAde | — |
| keyword | #744226de | bold |
| keyword.codetag.notation.python | #215923de | bold |
| keyword.control | #603A23de | bold |
| keyword.control.anchor.regexp | #08540Cde | bold |
| keyword.control.import.python | #7C03B4de | bold |
| keyword.operator | #7D05B2de | bold |
| keyword.operator.alignas | #0A5757de | bold |
| keyword.operator.alignof | #2A368Dde | bold |
| keyword.operator.cast | #0A5B0Fde | bold |
| keyword.operator.delete | #734326de | bold |
| keyword.operator.documentation.powershell | #4C4C4C6e | bold |
| keyword.operator.expression | #3D4C1Ede | bold |
| keyword.operator.instanceof | #0A5757de | bold |
| keyword.operator.logical.python | #7D07B3de | bold |
| keyword.operator.minus.exponent | #0A590Ede | bold |
| keyword.operator.negation.regexp | #3E5606de | bold |
| keyword.operator.new | #0A590Ede | bold |
| keyword.operator.noexcept | #9D0749de | bold |
| keyword.operator.or.regexp | #215824de | bold |
| keyword.operator.plus.exponent | #704125de | bold |
| keyword.operator.quantifier.regexp | #3E560Bde | bold |
| keyword.operator.sizeof | #2C3FBAde | bold |
| keyword.operator.typeid | #0B5858de | bold |
| keyword.operator.wordlike | #2D3FBDde | bold |
| keyword.other.operator | #3E5608de | bold |
| keyword.other.package.java | #843709de | bold |
| keyword.other.unit | #762749de | bold |
| keyword.other.using | #1F5223de | bold |
| markup.bold | #6F4125de | — |
| markup.changed | #215925de | — |
| markup.deleted | #085454de | — |
| markup.fenced_code.block.markdown | #0A5B0Fde | — |
| markup.heading | #7C06B2de | — |
| markup.inline.raw | #2D3EC0de | — |
| markup.inserted | #873505de | — |
| markup.italic | #0A5757de | — |
| markup.raw.block.markdown | #84380Ade | — |
| markup.strikethrough | #2D3FBDde | — |
| markup.underline | #762A99de | — |
| meta.block.c | #2C3FBAde | — |
| meta.block.c | #0B5B10de | — |
| meta.class.java | #0A5757de | — |
| meta.definition.variable.name | #0A5C0Fde | — |
| meta.diff.header | #0A5B0Fde | — |
| meta.embedded | #0A5656de | — |
| meta.embedded.assembly | #9C0949de | — |
| meta.function-call.arguments.python | #0B5B10de | — |
| meta.function-call.python | #1E4C20de | — |
| meta.member.access.python | #724226de | — |
| meta.method.java | #42521Fde | — |
| meta.object-literal.key | #2D3EC0de | — |
| meta.paragraph.markdown | #1C451Ede | — |
| meta.preprocessor | #0A5B0Fde | — |
| meta.preprocessor.numeric | #0A5B0Fde | — |
| meta.preprocessor.string | #7D04B5de | — |
| meta.scope.prerequisites.makefile | #2A368Dde | — |
| meta.structure.dictionary.json.comments | #4D4D4D6e | — |
| meta.structure.dictionary.key.python | #084B0Bde | — |
| meta.structure.dictionary.value.json.comments | #4E4E4E6e | — |
| meta.template.expression | #2D3DC0de | — |
| meta.type.cast.expr | #2D3EBCde | — |
| meta.type.new.expr | #2C3BA5de | — |
| parameter | #0A5B10de | — |
| punctuation.character.set.begin.regexp | #6E2A8Dde | — |
| punctuation.character.set.end.regexp | #084B0Bde | — |
| punctuation.definition.array.begin.json | #762A99de | — |
| punctuation.definition.character-class.regexp | #744226de | — |
| punctuation.definition.comment | #4E4E4E6e | — |
| punctuation.definition.comment.json.comments | #4D4D4D6e | — |
| punctuation.definition.comment.python | #4D4D4D6e | — |
| punctuation.definition.dictionary.begin.json | #853708de | — |
| punctuation.definition.dictionary.end.json | #091EBBde | — |
| punctuation.definition.group.assertion.regexp | #28327Ede | — |
| punctuation.definition.group.regexp | #2A368Dde | — |
| punctuation.definition.list.begin.json | #0A5757de | — |
| punctuation.definition.list.begin.markdown | #2A3895de | — |
| punctuation.definition.list.begin.python | #762A99de | — |
| punctuation.definition.list.end.json | #0A5757de | — |
| punctuation.definition.list.end.markdown | #892953de | — |
| punctuation.definition.list.end.python | #1F5252de | — |
| punctuation.definition.parameters.begin.python | #8B2955de | — |
| punctuation.definition.parameters.end.bracket.round.java | #58256Fde | — |
| punctuation.definition.quote.begin.markdown | #0A590Ede | — |
| punctuation.definition.tag | #7D09B2de | — |
| punctuation.definition.template-expression.begin | #0B5B10de | — |
| punctuation.definition.template-expression.end | #3D550Ade | — |
| punctuation.section.class.begin.bracket.curly.java | #7D07B3de | — |
| punctuation.section.embedded | #63287Ede | — |
| punctuation.section.embedded.begin.php | #215824de | — |
| punctuation.section.embedded.end.php | #593621de | — |
| punctuation.terminator.java | #8A2A55de | — |
| source.cmake | #3E560Ade | — |
| source.coffee.embedded | #205656de | — |
| source.cpp | #843709de | — |
| source.css.less | #0A5A0Fde | — |
| source.groovy.embedded | #09590Ede | — |
| source.java | #84380Bde | — |
| source.java-properties | #0A5858de | — |
| source.json.comments | #4E4E4E6e | — |
| source.makefile | #333E1Ade | — |
| source.powershell | #84380Ade | — |
| source.powershell.variable.other.member | #0A5757de | — |
| source.python | #0A5B0Fde | — |
| storage | #603A23de | — |
| storage.modifier | #2A368Dde | — |
| storage.modifier.import.java | #094C4Cde | — |
| storage.modifier.package.java | #853608de | — |
| storage.type | #28327Ede | bold |
| storage.type.annotation.groovy | #0A5B0Fde | bold |
| storage.type.annotation.java | #84380Ade | bold |
| storage.type.boolean.go | #682442de | bold |
| storage.type.byte.go | #843709de | bold |
| storage.type.cs | #0A4848de | bold |
| storage.type.error.go | #0A5B0Fde | bold |
| storage.type.generic.cs | #852951de | bold |
| storage.type.generic.groovy | #0A4848de | bold |
| storage.type.generic.java | #205656de | bold |
| storage.type.groovy | #3D550Ade | bold |
| storage.type.java | #9B0A49de | bold |
| storage.type.modifier.cs | #873505de | bold |
| storage.type.numeric.go | #091EB4de | bold |
| storage.type.object.array.groovy | #2A3895de | bold |
| storage.type.object.array.java | #732A95de | bold |
| storage.type.parameters.groovy | #1F5223de | bold |
| storage.type.primitive.array.groovy | #7D04B5de | bold |
| storage.type.primitive.array.java | #3E5609de | bold |
| storage.type.primitive.groovy | #0A5B0Fde | bold |
| storage.type.primitive.java | #215925de | bold |
| storage.type.rune.go | #0A5858de | bold |
| storage.type.string.go | #333E1Ade | bold |
| storage.type.token.java | #2D3EBCde | bold |
| storage.type.uintptr.go | #8C2954de | bold |
| storage.type.variable.cs | #2D3EBCde | bold |
| string | #2C3FBAde | — |
| string.quoted.docstring.multi.python | #4C4C4C6e | — |
| string.regexp | #52321Fde | — |
| string.tag | #52321Fde | — |
| string.value | #7C08B1de | — |
| strong | #085454de | — |
| support.class | #744226de | — |
| support.constant.color | #7D07B3de | — |
| support.constant.dom | #2A3895de | — |
| support.constant.font-name | #2D3FBDde | — |
| support.constant.handlebars | #09590Ede | — |
| support.constant.json | #9B0A49de | — |
| support.constant.math | #682985de | — |
| support.constant.media | #732B94de | — |
| support.constant.media-type | #333E1Ade | — |
| support.constant.property-value | #2D3DC0de | — |
| support.function | #9B0A4Ade | — |
| support.function.git-rebase | #7D04B5de | — |
| support.other.parenthesis.regexp | #0B5858de | — |
| support.type | #2D3DC0de | bold |
| support.type.property-name | #752A96de | bold |
| support.type.vendored.property-name | #0A5B0Fde | bold |
| support.variable | #83380Bde | — |
| token.debug-token | #9B0A4Ade | — |
| token.error-token | #7E284Dde | — |
| token.info-token | #752A96de | — |
| token.warn-token | #0B5B10de | — |
| variable | #0A5757de | — |
| variable.css | #7D09B2de | — |
| variable.language | #0A5858de | — |
| variable.language.wildcard.java | #63287Ede | — |
| variable.other.constant | #091EB4de | — |
| variable.other.definition.java | #8B2955de | — |
| variable.other.enummember | #0A5C0Fde | — |
| variable.other.less | #3D540Ade | — |
| variable.other.object.java | #83380Ade | — |
| variable.other.object.property.java | #091EBBde | — |
| variable.parameter.c | #7E284Dde | — |
| variable.parameter.function.language.python | #215824de | — |
| variable.parameter.java | #1A3E3Ede | — |
| variable.scss | #0A5A0Fde | — |
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}!`;
}