sublime_xoria Theme
Publisher: geraneThemes in package: 1
sublime_xoria Theme ported from the sublimexoria TextMate Theme
sublime_xoria Theme ported from the sublimexoria TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #e6e2da | — |
| comment | #6e6e6e | — |
| string | #FFFFAF | — |
| constant.numeric | #DFAF87 | — |
| constant.language | #DFAFDF | — |
| constant.character, constant.other | #DFAF87 | — |
| variable | #87AFDF | |
| keyword | #AFDF87 | — |
| storage | #87AFDF | |
| storage.type | #66D9EF | italic |
| entity.name.class | #DFAFDF | underline |
| entity.other.inherited-class | #DFAFDF | italic underline |
| entity.name.function | #DFAFDF | |
| variable.parameter | #D0D0D0 | italic |
| entity.name.tag | #87AFDF | |
| entity.other.attribute-name | #DFAFDF | |
| support.function | #DFAFDF | |
| support.constant | #FF6666 | |
| support.type, support.class | #DFAFDF | italic |
| support.other.variable | — | |
| invalid | #FF0000 | |
| invalid.deprecated | #F8F8F0 | — |
| meta.structure.dictionary.json string.quoted.double.json | #CFCFC2 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #ff6814 | — |
| markup.inserted | #e1861c | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #fdc51aA0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
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}!`;
}