santojon-dark Theme
Publisher: geraneThemes in package: 1
santojon-dark Theme ported from the santojon-dark TextMate Theme
santojon-dark Theme ported from the santojon-dark TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #FFFFFF | — |
| comment | #A0A0A0 | — |
| string | #00AA00 | — |
| constant.numeric | #0000CC | — |
| constant.language | #A0A0A0 | — |
| constant.character, constant.other | #FF00FF | — |
| variable | #FFFF00 | italic |
| keyword | #FFFFFF | — |
| storage | #CC0000 | |
| storage.type | #FFB000 | italic |
| entity.name.class | #00FF00 | underline |
| entity.other.inherited-class | #00FF00 | italic underline |
| entity.name.function | #00FFFF | |
| variable.parameter | #00FF00 | italic |
| entity.name.tag | #BB00FF | |
| entity.other.attribute-name | #A0A0A0 | |
| support.function | #BB00FF | |
| support.constant | #A0A0A0 | |
| support.type, support.class | #00FF00 | italic |
| support.other.variable | — | italic |
| invalid | #FF0000 | |
| invalid.deprecated | #FFFFFF | — |
| meta.structure.dictionary.json string.quoted.double.json | #00AA00 | — |
| meta.diff, meta.diff.header | #FFFFFF | — |
| markup.deleted | #CC0000 | — |
| markup.inserted | #00FF00 | — |
| markup.changed | #FFB000 | — |
| constant.numeric.line-number.find-in-files - match | #A0A0A055 | — |
| entity.name.filename.find-in-files | #F0F0F055 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}