Skatedex
Publisher: SkatedexThemes in package: 2
Skatedex color themes for VS Code. Night and Day variants built on the Skatedex palette: blue, gray, white, and black.
Skatedex color themes for VS Code. Night and Day variants built on the Skatedex palette: blue, gray, white, and black.
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 |
|---|---|---|
| meta.definition entity.name.function, meta.function entity.name.function, meta.class entity.name.type.class, entity.name.type.class.declaration, meta.definition.method entity.name.function | #14232E | bold |
| comment, punctuation.definition.comment, string.comment | #8A9BAB | italic |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc, comment.block.documentation entity.name.type | #7A8B9B | italic |
| variable, variable.other.readwrite, meta.definition.variable variable.other, source | #4F6272 | — |
| variable.parameter, meta.function.parameters variable | #4F6272 | italic |
| variable.language, variable.language.this, variable.language.super | #1479C9 | italic |
| variable.other.constant, constant.other.caps, variable.other.enummember, constant.language, constant.other.color | #2F7FC4 | — |
| constant.numeric, constant.character.numeric, keyword.other.unit | #2F7FC4 | — |
| constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan | #2F7FC4 | italic |
| string, string.quoted, punctuation.definition.string, meta.attribute string | #234B6E | — |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.embedded.line | #1479C9 | — |
| constant.character.escape, constant.other.character-class.escape | #2F7FC4 | — |
| string.regexp, string.regexp constant.character.escape | #2F7FC4 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.delete, keyword.operator.logical.python | #1479C9 | — |
| storage, storage.type, storage.modifier, keyword.declaration | #1479C9 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default | #1479C9 | italic |
| keyword.operator, punctuation, punctuation.separator, punctuation.terminator, meta.brace | #6B7F91 | — |
| storage.type.function.arrow, keyword.operator.arrow | #1479C9 | — |
| entity.name.function, support.function, meta.function-call entity.name.function, variable.function, meta.method entity.name.function | #14232E | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution, entity.other.inherited-class, support.class, support.type, storage.type.primitive | #14232E | bold |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #1479C9 | italic |
| variable.other.property, meta.object-literal.key, support.type.property-name, variable.other.object.property | #14232E | — |
| source.json support.type.property-name, source.json meta.structure.dictionary.json support.type.property-name.json | #14232E | — |
| entity.name.tag, support.class.component | #1479C9 | — |
| punctuation.definition.tag | #1479C9 | — |
| entity.other.attribute-name, meta.tag entity.other.attribute-name | #14232E | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #1479C9 | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #14232E | — |
| support.constant.property-value.css, support.constant.font-name, meta.property-value.css | #234B6E | — |
| support.variable, support.constant, variable.other.global | #2F7FC4 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #1479C9 | bold |
| markup.bold | #14232E | bold |
| markup.italic | #234B6E | italic |
| markup.underline.link, string.other.link, constant.other.reference.link.markdown | #2F7FC4 | underline |
| markup.list punctuation.definition.list, beginning.punctuation.definition.list.markdown, markup.quote | #1479C9 | — |
| markup.inline.raw, markup.fenced_code.block, markup.raw.block | #234B6E | — |
| markup.inserted, meta.diff.header.to-file | #2F7FC4 | — |
| markup.deleted, meta.diff.header.from-file | #C4392C | — |
| markup.changed, meta.diff.header | #234B6E | — |
| entity.name.tag.yaml, support.type.property-name.toml, entity.name.tag.toml | #14232E | — |
| source.shell support.function, entity.name.command | #14232E | — |
| invalid, invalid.illegal | #C4392C | — |
| invalid.deprecated | #8A9BAB | strikethrough |
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}!`;
}