wkaa-railgun
Publisher: wkaaThemes in package: 1
Custom theme to my liking, adapted from railgun.
Custom theme to my liking, adapted from railgun.
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.comment | #5F5F5F | — |
| keyword.operator | #FF8F2E | — |
| punctuation, delimiter, bracket, brace, paren, delimiter.tag, punctuation.tag, tag.html, tag.xml, meta.property-value punctuation.separator.key-value,punctuation.definition.metadata.md, string.link.md, meta.brace | #7F7B66 | — |
| string, meta.property-value.string, support.constant.property-value.string, meta.structure.dictionary.value.json string.quoted.double.json, meta.structure.dictionary.json string.quoted.double.json, meta.preprocessor string | #CC7F66 | — |
| constant.numeric, meta.property-value.numeric, support.constant.property-value.numeric, meta.property-value.color, support.constant.property-value.color,constant.language | #DB9833 | — |
| constant.character, constant.other,entity.name.function, entity.name.class, entity.other.inherited-class, entity.other.attribute-name, entity.name, entity.other.attribute-name, entity.other.attribute-name.html, support.type.property-name, entity.name.tag.table, meta.structure.dictionary.json string.quoted.double.json | #798283 | — |
| keyword, meta.property-value.keyword, support.constant.property-value.keyword, meta.preprocessor.keyword,keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as | #EA603E | — |
| storage, storage.type, storage.type.ts, storage.type.var.ts, storage.type.js, storage.type.var.js, storage.type.const.ts, storage.type.let.ts, storage.type.let.js, storage.type.const.js, entity.name.tag | #FFC62F | — |
| meta.ptr, meta.pointer, meta.address, meta.array.cxx | #EBA96C | — |
| meta.preprocessor | #798283 | |
| support.type, support.class, support.function, support.constant | #FF8F2E | — |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #F85931 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| punctuation.definition.heading.md, entity.name.type.md, beginning.punctuation | #798283 | — |
| markup.heading, entity.name.section | #FFC62F | bold |
| markup.raw, markup.inline.raw, markup.fenced, markup.fenced_code | #CC7F66 | — |
| markup.link, string.other.link.title, string.other.link.description, meta.link.inline, meta.image.inline | #798283 | — |
| variable.language.makefile, variable.other.makefile | #798283 | — |
| markup.italic | — | italic |
| markup.bold | — | bold |
| entity.other.attribute-name.class.css | #FF8F2E | — |
| entity.name.tag.css | #FFC62F | |
| meta.property-name.css | #798283 | italic |
| string, meta.property-value.string, support.constant.property-value.string, meta.structure.dictionary.value.json string.quoted.double.json, meta.structure.dictionary.json string.quoted.double.json, meta.preprocessor string | #8A9E78 | — |
| constant.numeric, meta.property-value.numeric, support.constant.property-value.numeric, meta.property-value.color, support.constant.property-value.color,constant.language | #CF7F8F | — |
| string | #739C4F | — |
| meta.embedded.assembly | #739C4F | — |
| entity.name.type | #4EC9B0 | — |
| entity.name.class | #4EC9B0 | — |
| support.type | #4EC9B0 | — |
| support.class | #4EC9B0 | — |
| comment, entity.other.attribute-name, keyword, markup.underline.link, storage.modifier, storage.type, string.url, variable.language.super, variable.language.this | — | italic |
| keyword.operator, keyword.other.type, storage.modifier.import, storage.modifier.package, storage.type.built-in, storage.type.function.arrow, storage.type.generic, storage.type.java, storage.type.primitive | — | |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}