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 | #C4C4FD6e | — |
| comment.block.html | #B9CAFD6e | — |
| comment.block.java | #BCCCFD6e | — |
| comment.block.javadoc.java | #B1C4FC6e | — |
| comment.block.powershell | #B2B2FB6e | — |
| comment.block.xml | #B7B7FB6e | — |
| comment.line.double-slash.c | #C0D0FD6e | — |
| comment.line.double-slash.cpp | #B1B1FA6e | — |
| comment.line.double-slash.java | #B9B9FB6e | — |
| comment.line.double-slash.js | #BFBFFC6e | — |
| comment.line.number-sign.makefile | #CCCCFE6e | — |
| comment.line.number-sign.python | #A9BDFB6e | — |
| comment.line.number-sign.yaml | #CFCFFD6e | — |
| comment.line.percentage.erlang | #D1D1FE6e | — |
| comment.line.powershell | #C8C8FD6e | — |
| comment.source.cmake | #B7B7FB6e | — |
| comment.source.cmakecache | #B4C6FC6e | — |
| constant.character | #FBBDF0de | — |
| constant.character.character-class.regexp | #CFC529de | — |
| constant.character.escape | #FBB7EEde | — |
| constant.character.set.regexp | #E2D508de | — |
| constant.language | #F8A39Dde | — |
| constant.numeric | #F695E4de | — |
| constant.numeric.dec.python | #F9ADA8de | — |
| constant.other.caps.python | #CFC529de | — |
| constant.other.character-class.regexp | #36F80Ade | — |
| constant.other.character-class.set.regexp | #36F80Bde | — |
| constant.other.color.rgb-value | #E0CEFDde | — |
| constant.other.placeholder | #DAC5FCde | — |
| constant.other.rgb-value | #83ED6Bde | — |
| constant.regexp | #D1C508de | — |
| constant.sha.git-rebase | #CEB3FAde | — |
| emphasis | #DDD008de | — |
| entity.name.class | #6BEDBCde | — |
| entity.name.function | #FCC5C1de | — |
| entity.name.function.preprocessor | #E4D506de | — |
| entity.name.function.python | #88BBF4de | — |
| entity.name.label | #89EF71de | — |
| entity.name.namespace | #BBD9FBde | — |
| entity.name.operator | #49E3A9de | — |
| entity.name.operator.custom-literal | #4BD62Bde | — |
| entity.name.scope-resolution | #3DDEA1de | — |
| entity.name.tag | #C8ABF9de | — |
| entity.name.tag.css | #E4DB4Dde | — |
| entity.name.type | #DBD137de | — |
| entity.name.variable | #FBBAB6de | — |
| entity.other.attribute | #72E756de | — |
| entity.other.attribute-name | #FBBBB7de | — |
| entity.other.attribute-name.class.css | #CFC529de | — |
| entity.other.attribute-name.class.mixin.css | #32F007de | — |
| entity.other.attribute-name.id | #F8A7A2de | — |
| entity.other.attribute-name.id.css | #91C1F6de | — |
| entity.other.attribute-name.parent-selector.css | #5DE9B5de | — |
| entity.other.attribute-name.pseudo-class.css | #CDB1FAde | — |
| entity.other.attribute-name.pseudo-element.css | #2DD806de | — |
| entity.other.attribute-name.scss | #DDCBFDde | — |
| entity.other.document.begin.yaml | #C1D1FE6e | — |
| entity.other.inherited-class | #2BD696de | — |
| header | #FBBBEFde | — |
| invalid | #9FC9F8de | — |
| keyword | #A5CCF9de | — |
| keyword.codetag.notation.python | #2FDD08de | — |
| keyword.control | #F9A6E9de | — |
| keyword.control.anchor.regexp | #FCC6C3de | — |
| keyword.control.import.python | #8BBDF5de | — |
| keyword.operator | #F8A6A0de | — |
| keyword.operator.alignas | #B2D4FBde | — |
| keyword.operator.alignof | #B9D8FBde | — |
| keyword.operator.cast | #31EC07de | — |
| keyword.operator.delete | #DCC9FDde | — |
| keyword.operator.documentation.powershell | #BBBBFC6e | — |
| keyword.operator.expression | #33DA9Dde | — |
| keyword.operator.instanceof | #FCC8C4de | — |
| keyword.operator.logical.python | #E0D641de | — |
| keyword.operator.minus.exponent | #29CF91de | — |
| keyword.operator.negation.regexp | #C7A8F9de | — |
| keyword.operator.new | #49E3A9de | — |
| keyword.operator.noexcept | #30E406de | — |
| keyword.operator.or.regexp | #DFCEFDde | — |
| keyword.operator.plus.exponent | #D7C2FCde | — |
| keyword.operator.quantifier.regexp | #F79DE7de | — |
| keyword.operator.sizeof | #4BD62Bde | — |
| keyword.operator.typeid | #2BD696de | — |
| keyword.operator.wordlike | #CFC529de | — |
| keyword.other.operator | #07E893de | — |
| keyword.other.package.java | #7DEB64de | — |
| keyword.other.unit | #C6BC29de | — |
| keyword.other.using | #DBD137de | — |
| markup.bold | #66E349de | — |
| markup.changed | #F695E4de | — |
| markup.deleted | #FBC0BCde | — |
| markup.fenced_code.block.markdown | #C6A7F9de | — |
| markup.heading | #D9CE31de | — |
| markup.inline.raw | #50D931de | — |
| markup.inserted | #64EBB8de | — |
| markup.italic | #F8A7A2de | — |
| markup.raw.block.markdown | #CBAFFAde | — |
| markup.strikethrough | #60E143de | — |
| markup.underline | #30E806de | — |
| meta.block.c | #AFD2FAde | — |
| meta.block.c | #C6BA07de | — |
| meta.class.java | #F9ADA8de | — |
| meta.definition.variable.name | #89EF71de | — |
| meta.diff.header | #FCBEF0de | — |
| meta.embedded | #FBBAEFde | — |
| meta.embedded.assembly | #FCC1F1de | — |
| meta.function-call.arguments.python | #D6CB2Bde | — |
| meta.function-call.python | #F9A3E9de | — |
| meta.member.access.python | #07F69Dde | — |
| meta.method.java | #FBB9B4de | — |
| meta.object-literal.key | #FBBDB9de | — |
| meta.paragraph.markdown | #E3D94Ade | — |
| meta.preprocessor | #FCC2F1de | — |
| meta.preprocessor.numeric | #D9CE31de | — |
| meta.preprocessor.string | #D3BAFBde | — |
| meta.scope.prerequisites.makefile | #B1D4FAde | — |
| meta.structure.dictionary.json.comments | #BCCCFD6e | — |
| meta.structure.dictionary.key.python | #A3CBF9de | — |
| meta.structure.dictionary.value.json.comments | #B9B9FB6e | — |
| meta.template.expression | #37DB9Ede | — |
| meta.type.cast.expr | #FCC6C2de | — |
| meta.type.new.expr | #49E3A9de | — |
| parameter | #DCD007de | — |
| punctuation.character.set.begin.regexp | #F89DE7de | — |
| punctuation.character.set.end.regexp | #2FDF07de | — |
| punctuation.definition.array.begin.json | #DAC5FCde | — |
| punctuation.definition.character-class.regexp | #5DE9B5de | — |
| punctuation.definition.comment | #CBCBFD6e | — |
| punctuation.definition.comment.json.comments | #C6D4FE6e | — |
| punctuation.definition.comment.python | #D4D4FE6e | — |
| punctuation.definition.dictionary.begin.json | #ACD0FAde | — |
| punctuation.definition.dictionary.end.json | #D3BAFBde | — |
| punctuation.definition.group.assertion.regexp | #FBBDB9de | — |
| punctuation.definition.group.regexp | #07E290de | — |
| punctuation.definition.list.begin.json | #FCC1F1de | — |
| punctuation.definition.list.begin.markdown | #2EDC06de | — |
| punctuation.definition.list.begin.python | #BAD9FBde | — |
| punctuation.definition.list.end.json | #DECCFDde | — |
| punctuation.definition.list.end.markdown | #52E6B0de | — |
| punctuation.definition.list.end.python | #F7A49Ede | — |
| punctuation.definition.parameters.begin.python | #E0CFFDde | — |
| punctuation.definition.parameters.end.bracket.round.java | #5DE9B5de | — |
| punctuation.definition.quote.begin.markdown | #F696E4de | — |
| punctuation.definition.tag | #F8A0E8de | — |
| punctuation.definition.template-expression.begin | #C9ACFAde | — |
| punctuation.definition.template-expression.end | #D6CB2Bde | — |
| punctuation.section.class.begin.bracket.curly.java | #9BC7F7de | — |
| punctuation.section.embedded | #07F69Cde | — |
| punctuation.section.embedded.begin.php | #58E8B2de | — |
| punctuation.section.embedded.end.php | #FBBBB6de | — |
| punctuation.terminator.java | #D7C0FCde | — |
| source.cmake | #C7A9F9de | — |
| source.coffee.embedded | #FCC6C2de | — |
| source.cpp | #31EA07de | — |
| source.css.less | #37DB9Ede | — |
| source.groovy.embedded | #F8A6A0de | — |
| source.java | #50E5ADde | — |
| source.java-properties | #ADD1FAde | — |
| source.json.comments | #B9CAFD6e | — |
| source.makefile | #FCC5C2de | — |
| source.powershell | #7DEB64de | — |
| source.powershell.variable.other.member | #D8CA06de | — |
| source.python | #D3C708de | — |
| storage | #4BD62Bde | — |
| storage.modifier | #D9C5FCde | — |
| storage.modifier.import.java | #E1D0FDde | — |
| storage.modifier.package.java | #2FDD08de | — |
| storage.type | #FCC7F2de | — |
| storage.type.annotation.groovy | #FBBBF0de | — |
| storage.type.annotation.java | #F9ADA8de | — |
| storage.type.boolean.go | #DBCE08de | — |
| storage.type.byte.go | #D4BCFBde | — |
| storage.type.cs | #9EC9F8de | — |
| storage.type.error.go | #2DD806de | — |
| storage.type.generic.cs | #98C5F7de | — |
| storage.type.generic.groovy | #F9A7E9de | — |
| storage.type.generic.java | #FCC2F1de | — |
| storage.type.groovy | #F8A39Dde | — |
| storage.type.java | #CCB0FAde | — |
| storage.type.modifier.cs | #C7A9F9de | — |
| storage.type.numeric.go | #D5C908de | — |
| storage.type.object.array.groovy | #61E043de | — |
| storage.type.object.array.java | #85EE6Dde | — |
| storage.type.parameters.groovy | #FAB1ADde | — |
| storage.type.primitive.array.groovy | #F9A9EAde | — |
| storage.type.primitive.array.java | #D0B5FBde | — |
| storage.type.primitive.groovy | #F9A8A3de | — |
| storage.type.primitive.java | #F7A19Cde | — |
| storage.type.rune.go | #94C2F6de | — |
| storage.type.string.go | #DCC8FCde | — |
| storage.type.token.java | #CCB0FAde | — |
| storage.type.uintptr.go | #94C2F6de | — |
| storage.type.variable.cs | #89EF71de | — |
| string | #63E246de | — |
| string.quoted.docstring.multi.python | #A7BCFA6e | — |
| string.regexp | #9AC6F7de | — |
| string.tag | #64EBB8de | — |
| string.value | #FCC3F1de | — |
| strong | #DAC6FCde | — |
| support.class | #5DE9B5de | — |
| support.constant.color | #FCC5F2de | — |
| support.constant.dom | #DFD107de | — |
| support.constant.font-name | #C7A9F9de | — |
| support.constant.handlebars | #28D494de | — |
| support.constant.json | #FBBDB9de | — |
| support.constant.math | #29CF91de | — |
| support.constant.media | #31D99Ade | — |
| support.constant.media-type | #B2D4FAde | — |
| support.constant.property-value | #CAADFAde | — |
| support.function | #C9BF29de | — |
| support.function.git-rebase | #31D99Ade | — |
| support.other.parenthesis.regexp | #A5CDF9de | — |
| support.type | #FCC5C1de | — |
| support.type.property-name | #5BDE3Dde | — |
| support.type.vendored.property-name | #F695E4de | — |
| support.variable | #A3CBF9de | — |
| token.debug-token | #C3BA28de | — |
| token.error-token | #56E7B1de | — |
| token.info-token | #CDB2FAde | — |
| token.warn-token | #E2D508de | — |
| variable | #F8A39Dde | — |
| variable.css | #D9C4FCde | — |
| variable.language | #69E44Dde | — |
| variable.language.wildcard.java | #D8C3FCde | — |
| variable.other.constant | #ACD0FAde | — |
| variable.other.definition.java | #F8A8A3de | — |
| variable.other.enummember | #4BD62Bde | — |
| variable.other.less | #D9C4FCde | — |
| variable.other.object.java | #50D931de | — |
| variable.other.object.property.java | #FCC4C1de | — |
| variable.parameter.c | #CFC529de | — |
| variable.parameter.function.language.python | #E0CEFDde | — |
| variable.parameter.java | #28CE91de | — |
| variable.scss | #90C0F6de | — |
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}!`;
}