Darkiota Theme
Publisher: SamzyreThemes in package: 3
Some dark theme for vscode
Some dark theme for vscode
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 |
|---|---|---|
| source.groovy.embedded | #CCCCCC | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #AABBCC | — |
| comment, punctuation.definition.comment | #AABBBB88 | — |
| string.quoted.docstring, string.quoted.docstring punctuation.definition.string | #CCBBAA88 | — |
| string, punctuation.definition.string, punctuation.definition.char | #BB8877 | — |
| constant.numeric | #99BB88 | — |
| constant.language | #CC88AA | — |
| punctuation.definition.constant, constant.character, constant.other, support.constant | #AA88CC | — |
| variable | — | |
| keyword, keyword.control, keyword.other | #EE8811 | — |
| keyword.preprocessor, keyword.other.documentation | #DD5588 | — |
| storage, entity.name.function.decorator | #77BBBB | |
| storage.type, keyword.other.var, keyword.other.unit, entity.name.tag | #DDAA11 | |
| storage.modifier, entity.name.type.lifetime, punctuation.definition.lifetime | #CC5544 | — |
| entity.name.class, entity.other.attribute-name, entity.other.inherited-class | #AA88CC | |
| entity.name.function, support.function, meta.function-call.generic | #6699CC | — |
| variable.parameter | #CCCCCC | |
| support.type, support.class, punctuation.support | #BBCCDD | |
| support.other.variable | — | |
| invalid | #CC2211 | |
| invalid.deprecated | #CC2211 | — |
| meta.structure.dictionary.json string.quoted.double.json | #BB8877 | — |
| meta.diff, meta.diff.header | #445566 | — |
| markup.deleted | #EE118888 | — |
| markup.inserted | #88EE1188 | — |
| markup.changed | #EE881188 | — |
| constant.numeric.line-number.find-in-files - match | #88EE1188 | — |
| entity.name.filename.find-in-files | #DDAA1188 | — |
| meta.property-value, support.constant.property-value, constant.other.color | #CCCC88 | — |
| meta.structure.dictionary.json string.quoted.double.json | #9999AA | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #BB8877 | — |
| meta.property-name support.type.property-name | — | |
| meta.property-value punctuation.separator.key-value | #AABBBB | — |
| meta.use support.class.builtin, meta.other.inherited-class support.class.builtin | #EE8811 | |
| variable.other | #AABBCC | |
| variable.parameter.function.coffee | #BBBB88 | |
| entity.name.section.markdown | #CCCCCC | — |
| punctuation.definition.heading.markdown | #EE8811 | — |
| markup.raw.inline.markdown | #CCCC88 | — |
| punctuation.definition.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #DDAA11 | — |
| punctuation.definition.metadata.markdown | #CC5544 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, meta.image.inline.markdown | #6699CC | |
| markup.bold.markdown, markup.italic.markdown | #AA88AA | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| markup.raw.block.markdown | #CC5544 | — |
| markup.deleted.git_gutter | #EE118888 | — |
| markup.inserted.git_gutter | #88EE1188 | — |
| markup.changed.git_gutter | #EE881188 | — |
| meta.template.expression | #AABBCC | — |
| token.info-token | #6699CC | — |
| token.warn-token | #CC9966 | — |
| token.error-token | #EE5555 | — |
| token.debug-token | #9966CC | — |
| punctuation, meta.brace | #BBBBBB | — |
| punctuation.definition.bracket, punctuation.definition.begin, punctuation.definition.end, punctuation.other, punctuation.terminator, keyword.operator | #CCCCCC | — |
| entity.name.type, entity.name.package | #DDDDDD | — |
| constant.regexp | #8888CC | — |
| markup.underline | — | underline |
| markup.bold | #6699CC | bold |
| markup.heading | #AABBCC | bold |
| markup.italic | — | italic |
| beginning.punctuation.definition.quote.markdown | #99CC66 | — |
| beginning.punctuation.definition.list.markdown | #6699CC | — |
| markup.inline.raw | #CC9966 | — |
| punctuation.definition.tag | #888888 | — |
| meta.preprocessor, meta.selector, meta.attribute | #99889F | — |
| meta.paragraph, meta.embedded | #999FA0 | — |
| support.variable | #88AA99 | — |
| meta.preprocessor.string | #998877 | — |
| meta.preprocessor.numeric | #889977 | — |
| string.tag, string.value | #CC9966 | — |
| string.regexp | #AA88AA | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #6699CC | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.instanceof, keyword.operator.logical.python | #CC5544 | — |
| support.function.git-rebase | #AABBCC | — |
| constant.sha.git-rebase | #BBCCAA | — |
| variable.language, variable.parameter.function.language.special, keyword.other.this | #AA9977 | — |
| support.constant.handlebars | #BBAA88 | — |
| meta.object-literal.key, meta.definition.variable.name, entity.name.variable | #CCCCCC | — |
| support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #CC9966 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp, keyword.operator.or.regexp, keyword.operator.quantifier.regexp, keyword.control.anchor.regexp | #CCBB88 | — |
| text, meta | #AAAAAA | — |
| log | #888888 | — |
| log.string | #BB8877 | — |
| log.date | #778899 | — |
| log.constant | #CC88AA | — |
| log.verbose | #AA88CC | — |
| log.debug | #6699CC | — |
| log.info | #99BB88 | — |
| log.warning | #CCBB44 | — |
| log.error | #CC5544 | — |
| log.exceptiontype | #CC6622 | — |
| log.exception | #CC9922 | — |
| *, comment, markup.quote, variable.language, variable.parameter, storage.type.function | — |
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}!`;
}