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 |
|---|---|---|
| — | #0F0F0F | — |
| comment | #963676A3 | italic |
| string | #6AA040 | — |
| constant.numeric | #3B8E99 | — |
| string.embedded.begin, string.embedded.end | #c678dd | — |
| string.embedded | #487D22 | — |
| constant.language | #2B9CAB | — |
| constant.character, constant.other | #2B9CAB | — |
| variable.language | #F088A4 | — |
| variable.readwrite | #56B6C2 | — |
| keyword, keyword.operator.logical, keyword.operator.constructor | #E3587D | — |
| keyword.operator | #2F5280 | — |
| storage | #e06c75 | |
| storage.type.function | #2B9CAB | — |
| entity.name.class, entity.name.module | #325087 | — |
| entity.other.inherited-class | #689E3F | — |
| entity.name.function | #964821 | |
| variable.parameter | #2A5FD1 | italic |
| entity.name.function-call | #3B8E99 | |
| function.support.builtin, function.support.core | #528BFF | |
| entity.name.tag | #BD244A | |
| entity.other.attribute-name | #0E519E | |
| support.function | #754B1C | |
| support.constant | #325087 | |
| support.type, support.class | #2A5FD1 | — |
| support.dictionary.json | #3B8E99 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #333333 | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass | #3B8E99 | — |
| variable.css, variable.scss, variable.less, variable.sass | #325087 | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #FFE792 | — |
| unit.css, unit.scss, unit.less, unit.sass | #ABB2BF | — |
| 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 | #2A5FD1 | — |
| 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}!`;
}