DualScheme
Publisher: mattwehhThemes in package: 1
Inspired by DualShock!
Inspired by DualShock!
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, punctuation.definition.comment | #c0ff8e | italic |
| comment.block.preprocessor | #c0ff8e | |
| comment.documentation, comment.block.documentation | #d6d6d6 | — |
| invalid.illegal | #ff98f8 | — |
| keyword.operator | #00ead8 | — |
| keyword, storage | #00A1ED | — |
| storage.type, support.type | #ce87f6 | — |
| constant.language, support.constant, variable.language | #f6b800 | — |
| variable, support.variable | #d6d6d6 | — |
| meta.definition.variable variable.other.constant, meta.definition.variable variable.other.readwrite, variable.declaration.hcl variable.other.readwrite.hcl, meta.mapping.key.hcl variable.other.readwrite.hcl, variable.other.declaration | #f6b800 | — |
| support.class, support.type, variable.other.readwrite.alias, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, support.type.sys-types, support.variable.dom, support.constant.math, support.type.object.module, support.constant.json, entity.name.namespace, meta.import.qualifier, variable.other.constant.object | #f6b800 | — |
| variable.other.property, support.variable.property, support.variable.property.dom, meta.function-call variable.other.object.property | #94ff75 | — |
| string, constant.other.symbol, constant.other.key, meta.attribute-selector | #e4e4e4 | |
| variable.other.object.property | #94ff75 | — |
| meta.var.expr storage.type, storage.modifier | #ce87f6 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default, meta.import keyword.other | #ce87f6 | — |
| keyword, keyword.control, keyword.other.important | #d6d6d6 | — |
| entity.name.function, support.function | #f66d5c | bold |
| entity.name.type, entity.other.inherited-class, support.class | #ce87f6 | bold |
| entity.name.exception | #ff98f8 | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #f6b800 | — |
| string | #d6d6d6 | — |
| constant.character.escape | #00ead8 | — |
| string.regexp | #00A1ED | — |
| constant.other.symbol | #f6b800 | — |
| punctuation | #00ead8 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #c0ff8e | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #F3C300 | — |
| entity.name.tag | #00A1ED | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #F3C300 | italic |
| constant.character.entity, punctuation.definition.entity | #f6b800 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #ce87f6 | — |
| meta.property-name, support.type.property-name | #f6b800 | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #d6d6d6 | — |
| keyword.other.important | — | bold |
| markup.changed | #000000 | — |
| markup.deleted | #000000 | — |
| markup.italic | — | italic |
| markup.error | #ff98f8 | — |
| markup.inserted | #000000 | — |
| meta.link | #00A1ED | — |
| markup.output, markup.raw | #00ead8 | — |
| markup.prompt | #00ead8 | — |
| markup.heading | #f66d5c | — |
| markup.bold | — | bold |
| markup.traceback | #ff98f8 | — |
| markup.underline | — | underline |
| markup.quote | #ce87f6 | — |
| markup.list | #00A1ED | — |
| markup.bold, markup.italic | #d6d6d6 | — |
| markup.inline.raw | #f6b800 | |
| meta.diff.range, meta.diff.index, meta.separator | #434343 | — |
| meta.diff.header.from-file | #434343 | — |
| meta.diff.header.to-file | #434343 | — |
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}!`;
}