matrix-dawn-color-theme
Publisher: DerekThemes in package: 1
Matrix feel VS Code color theme, tailored for daily TS/JS coding
Matrix feel VS Code color theme, tailored for daily TS/JS coding
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown, variable.legacy.builtin.python | — | — |
| emphasis | — | — |
| strong | — | — |
| header | — | — |
| comment | — | — |
| constant.language | — | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | — | — |
| constant.regexp | — | — |
| entity.name.tag | — | — |
| entity.name.tag.css, entity.name.tag.less | — | — |
| entity.other.attribute-name | — | — |
| entity.other.attribute-name.class.css, source.css entity.other.attribute-name.class, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.parent.less, source.css entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | — | — |
| invalid | — | — |
| markup.underline | — | — |
| markup.bold | — | — |
| markup.heading | — | — |
| markup.italic | — | — |
| markup.strikethrough | — | — |
| markup.inserted | — | — |
| markup.deleted | — | — |
| markup.changed | — | — |
| punctuation.definition.quote.begin.markdown | — | — |
| punctuation.definition.list.begin.markdown | — | — |
| markup.inline.raw | — | — |
| punctuation.definition.tag | — | — |
| meta.preprocessor, entity.name.function.preprocessor | — | — |
| meta.preprocessor.string | — | — |
| meta.preprocessor.numeric | — | — |
| meta.structure.dictionary.key.python | — | — |
| meta.diff.header | — | — |
| storage | — | — |
| storage.type | — | — |
| storage.modifier, keyword.operator.noexcept | — | — |
| string, meta.embedded.assembly | — | — |
| string.tag | — | — |
| string.value | — | — |
| string.regexp | — | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | — | — |
| meta.template.expression | — | — |
| support.type.vendored.property-name, support.type.property-name, source.css variable, source.coffee.embedded | — | — |
| keyword | — | — |
| keyword.control | — | — |
| keyword.operator | — | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | — | — |
| keyword.other.unit | — | — |
| support.function.git-rebase | — | — |
| constant.sha.git-rebase | — | — |
| variable.language | — | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | — | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class, punctuation.separator.namespace.ruby | — | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.directive.using, keyword.other.operator, entity.name.operator | — | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable, constant.other.placeholder | — | — |
| variable.other.constant, variable.other.enummember | — | — |
| variable.object.property, meta.object-literal.key | #55ff55 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | — | — |
| 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 | — | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | — | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | — | — |
| keyword.operator.quantifier.regexp | — | — |
| constant.character, constant.other.option | — | — |
| constant.character.escape | — | — |
| entity.name.label | — | — |
| variable.parameter | #BBFFBB | — |
| variable.other.readwrite, variable.other.object | #BBFFBB | — |
| variable.other.constant | #99FF88 | — |
| variable.other, string.unquoted, entity.other.attribute-name | #00CC00 | — |
| entity.name.function | #00FF00 | — |
| support.class | #88FF88 | — |
| entity.name.tag | #008800 | — |
| keyword.operator, constant.numeric | #FFFFFF | — |
| string.template, string.quoted, string.regexp | #AAAAAA | — |
| keyword.control, keyword.operator.new, keyword.operator.delete, storage.type, storage.modifier, variable.language | #008800 | bold |
| constant.language, support.variable, support.function | #008800 | — |
| meta.brace.curly, meta.brace.round, meta.brace.square, meta.function, meta.function-call, meta.embedded, meta.delimiter, punctuation.definition, punctuation.definition.tag, punctuation.terminator, punctuation.section, punctuation.section.embedded | #336633 | — |
| punctuation.separator.comma | #557755 | — |
| comment | #777777 | — |
| token.info-token | — | — |
| token.warn-token | — | — |
| token.error-token | — | — |
| token.debug-token | — | — |
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}!`;
}