ThemebyDarkV1 Theme
Publisher: geraneThemes in package: 1
ThemebyDarkV1 Theme ported from the ThemebyDarkV1 TextMate Theme
ThemebyDarkV1 Theme ported from the ThemebyDarkV1 TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #CCC | — |
| comment | #333 | italic |
| variable | #cc0 | bold |
| keyword | #336699 | |
| constant.numeric |
TypeScript sample highlighted with this variant's colors and tokenColors.
| bold |
| constant | #569CD6 | bold |
| constant.language | #669CD6 | bold |
| constant.language.boolean | #569CD6 |
| string | #AAA |
| constant.character.escape, string source | #f90 |
| meta.preprocessor | #9B9B9B |
| keyword.control.import | #c00 |
| entity.name.function, keyword.other.name-of-parameter.objc | #111 | bold |
| entity.name.type | #111 | bold |
| storage.type | #336699 | bold |
| storage.modifier | #336699 | italic |
| entity.other.inherited-class | #111 | bold |
| variable.parameter | — |
| storage.type.method | #70727E |
| meta.section entity.name.section, declaration.section entity.name.section | — |
| support.function | #0b0 | italic |
| support.class, support.type | #336699 | bold |
| support.constant | #569CD6 | bold |
| support.variable | #FFFFFF |
| keyword.operator.js | #687687 | — |
| invalid | #f00 | — |
| invalid.deprecated.trailing-whitespace | — | — |
| text source, string.unquoted | #FFF | italic |
| meta.xml-processing, declaration.xml-processing | #68685B |
| meta.doctype, declaration.doctype | #808080 |
| meta.doctype.DTD, declaration.doctype.DTD | — |
| meta.tag, declaration.tag | #888 |
| entity.name.tag | #900 | bold |
| entity.other.attribute-name | #0a0 | italic bold |
| string.quoted.double.xml, string.quoted.double.html | #BBB | bold |
| markup.heading | #0C07FF |
| markup.quote | #000000 |
| markup.list | #B90690 | — |
| meta.selector.css entity.name.tag | #DB7 | — |
| meta.selector.css entity.other.attribute-name.tag.pseudo-class | #D7BA7D | — |
| meta.selector.css entity.other.attribute-name.id | #f90 | — |
| meta.selector.css entity.other.attribute-name.class | #cc0 | — |
| support.type.property-name.css | #336699 | — |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #C8C8C8 | — |
| meta.preprocessor.at-rule keyword.control.at-rule | #87CEFA | — |
| entity.other.less.mixin | #98E124 | — |
| variable.declaration.less | #FEB55A | — |
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}!`;
}
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}!`;
}