dubokai
Publisher: nathdubThemes in package: 1
A VS Code color theme based on Monokai with various language-specific tweaks.
A VS Code color theme based on Monokai with various language-specific tweaks.
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 |
|---|---|---|
| — | #F8F8F2 | — |
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown, variable.legacy.builtin.python | #F8F8F2 | — |
| comment | #88846f | — |
| string | #E6DB74 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #F92672 | — |
| meta.template.expression | #F8F8F2 | — |
| constant.numeric | #AE81FF | — |
| constant.language | #AE81FF | — |
| constant.character, constant.other | #AE81FF | — |
| variable | #F8F8F2 | |
| keyword | #F92672 | — |
| storage | #F92672 | |
| storage.type | #66D9EF | italic |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution | #C9E864 | underline |
| entity.other.inherited-class, punctuation.separator.namespace.ruby | #C9E864 | italic underline |
| entity.name.function | #A6E22E | |
| variable.parameter | #FD971F | italic |
| entity.name.tag | #F92672 | |
| entity.other.attribute-name | #A6E22E | |
| support.function | #66D9EF | |
| support.constant | #66D9EF | |
| support.type, support.class | #66D9EF | italic |
| support.other.variable | — | |
| invalid | #F44747 | |
| invalid.deprecated | #F44747 | — |
| meta.structure.dictionary.json string.quoted.double.json | #CFCFC2 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #F92672 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #AE81FFA0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| markup.quote | #F92672 | — |
| markup.list | #E6DB74 | — |
| markup.bold, markup.italic | #66D9EF | — |
| markup.inline.raw | #FD971F | |
| markup.heading | #A6E22E | — |
| markup.heading.setext | #A6E22E | bold |
| markup.heading.markdown | — | bold |
| markup.quote.markdown | #75715E | italic |
| markup.bold.markdown | — | bold |
| string.other.link.title.markdown,string.other.link.description.markdown | #AE81FF | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #E6DB74 | — |
| markup.italic.markdown | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #f8f8f2 | — |
| punctuation.definition.list.begin.markdown | #A6E22E | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| variable.language | #FD971F | — |
| entity.name.function.decorator, meta.decorator entity.name.function, meta.function.decorator entity.name, meta.function.decorator support.function, meta.function.decorator support.type, storage.type.annotation, punctuation.definition.annotation | #8BB8B2 | — |
| entity.name.type.type-parameter, entity.name.type.parameter | #7ED9C4 | bold |
| string.regexp | #C89856 | — |
| entity.name.lifetime, storage.modifier.lifetime, punctuation.definition.lifetime | #FF9898 | — |
| entity.name.function.macro, support.function.macro | #78DCE8 | — |
| meta.fstring.python string, meta.fstring.python punctuation.definition.string | #EDCA5C | — |
| meta.function.begin-document.latex, meta.function.end-document.latex, meta.function.begin-document.latex support.function.be.latex, meta.function.end-document.latex support.function.be.latex, meta.function.begin-document.latex punctuation, meta.function.end-document.latex punctuation, meta.function.begin-document.latex variable.parameter, meta.function.end-document.latex variable.parameter | #C792EA | bold italic |
| meta.function.section.part.latex support.function.section.latex, meta.function.section.part.latex entity.name.section.latex | #FFD866 | bold |
| meta.function.section.chapter.latex support.function.section.latex, meta.function.section.chapter.latex entity.name.section.latex | #FFA94D | bold |
| meta.function.section.section.latex support.function.section.latex, meta.function.section.section.latex entity.name.section.latex | #FF7E6B | bold |
| meta.function.section.subsection.latex support.function.section.latex, meta.function.section.subsection.latex entity.name.section.latex | #F2658F | bold |
| meta.function.section.subsubsection.latex support.function.section.latex, meta.function.section.subsubsection.latex entity.name.section.latex | #C77DD6 | bold |
| meta.function.section.paragraph.latex support.function.section.latex, meta.function.section.paragraph.latex entity.name.section.latex | #9B8BE0 | bold |
| meta.function.section.subparagraph.latex support.function.section.latex, meta.function.section.subparagraph.latex entity.name.section.latex | #7AA0E0 | bold |
| meta.drop.sql keyword | #FF5C57 | bold |
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}!`;
}