Pixeler theme kit
Publisher: Mahdi KhodadadiThemes in package: 3
A theme for designers code lover.
A theme for designers code lover.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #C5CEE0 | — |
| comment | #5c6370 | italic |
| string | #B4D388 | — |
| constant.numeric | #61AFEF | — |
| string.embedded.begin, string.embedded.end | #c678dd | — |
| string.embedded | #98c379 | — |
| constant.language | #52C5FF | — |
| constant.character, constant.other | #52C5FF | — |
| variable.language | #F088A4 | — |
| variable.readwrite | #61afef | — |
| keyword, keyword.operator.logical, keyword.operator.constructor | #F088A4 | — |
| keyword.operator | #abb2bf | — |
| storage | #e06c75 | |
| storage.type.function | #56b6c2 | — |
| entity.name.class, entity.name.module | #56b6c2 | — |
| entity.other.inherited-class | #98c379 | — |
| entity.name.function | #98c379 | |
| variable.parameter | #d19a66 | italic |
| entity.name.function-call | #abb2bf | |
| function.support.builtin, function.support.core | #56b6c2 | |
| entity.name.tag | #F088A4 | |
| entity.other.attribute-name | #EDE480 | |
| support.function | #abb2bf | |
| support.constant | #56b6c2 | |
| support.type, support.class | #56b6c2 | — |
| support.dictionary.json | #56b6c2 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #B5C9C8 | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass | #DBE072 | — |
| variable.css, variable.scss, variable.less, variable.sass | #56b6c2 | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #FFE792 | — |
| unit.css, unit.scss, unit.less, unit.sass | #325087 | — |
| function.css, function.scss, function.less, function.sass | #56b6c2 | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| structure.dictionary.property-name.json | #56b6c2 | — |
| string.detected-link | #61afef | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #c678dd | — |
| markup.inserted | #e5c07b | — |
| markup.changed | #e5c07b | — |
| constant.numeric.line-number.find-in-files - match | #56b6c2A0 | — |
| entity.name.filename.find-in-files | #e5c07b | — |
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}!`;
}