Cold Snack
Publisher: Evan RoweThemes in package: 1
The crispest, most refreshing theme for your editor.
The crispest, most refreshing theme for your editor.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #e9e9eb | — |
| comment | #00e9ffaa | italic |
| string | #00b7e9 | — |
| constant.numeric | #CF6cC9 | — |
| constant.language | #CF6cC9 | — |
| constant.character, constant.other | #f6d528 | — |
| variable | #ff8c31 | |
| keyword | #f6e548 | — |
| storage | #CF6cC9 | |
| storage.type | #CF6cC9 | — |
| storage.type.function.arrow | #f6e548 | — |
| entity.name.class | #CF6cC9 | italic |
| entity.other.inherited-class | #CF6cC9 | underline |
| entity.name.function | #00e9ff | |
| variable.parameter | #ffBc71 | italic |
| entity.name.tag | #ef7c11 | |
| entity.other.attribute-name | #CF6cC9 | |
| support.function | #00e9ff | |
| support.constant | #CF6cC9 | |
| support.type, support.class | #CF6cC9 | — |
| support.other.variable | #f6e548 | |
| invalid | #cacaca | — |
| invalid.deprecated | #cacaca | italic underline |
| , constant.other.symbol.ruby, , entity.other.attribute-name.jsx, | — | italic |
| source meta.property-list meta.property-name support.type.property-name | #d1d5d4 | — |
| source meta.property-list meta.property-value keyword.other.unit | #CF6cC9 | — |
| source keyword.operator | #f6e548 | — |
| source.js entity.name.type.object.js.firebug | #CF6cC9 | — |
| source meta.class.instance.constructor keyword.operator.new | #f6d528 | italic |
| source.js meta.class.instance.constructor entity.name.type.instance.js | #CF6cC9 | — |
| source meta.at-rule.media | #ef7c11 | — |
| source meta.at-rule.import variable.parameter.url | #ef7c11 | — |
| source.sass variable.parameter.sass | #ff8c31 | — |
| source meta.property-value.css constant.other | #CF6cC9 | — |
| source .property-value.css parameter constant.numeric.css keyword.other.unit.css | #CF6cC9 | — |
| meta.source.handlebars entity.name.tag | #CF6cC9 | — |
| punctuation.definition.expression, punctuation.definition.subexpression, punctuation.definition.block.unescaped, punctuation.definition.tag | #ef7c11 | italic |
| entity.name.function.expression | #00b7e9 | — |
| entity.unescaped.expression | #CF6cC9 | — |
| entity.expression variable.parameter.name | #ff9c51 | — |
| entity.expression variable.parameter.value | #CF6cC9 | — |
| entity.expression support.function.builtin | #f6e548 | — |
| entity.name.tag.html | #ef7c11 | — |
| entity.other.attribute-name.handlebars | #ff9c51 | — |
| meta.paragraph.markdown | — | normal |
| markup.inline.raw | #ff8c31 | — |
| punctuation.definition.heading | #00b7e9 | — |
| beginning.punctuation.definition.list | #CF6cC9 | — |
| markup.fenced_code.block.markdown | #909090 | — |
| markup.fenced_code.block.markdown fenced_code.block.language | #cacaca | — |
| comment.block.documentation | — | normal |
| comment.block markup.inline.raw | #00b7e9 | — |
| comment.block fenced_code.block.language | #cacaca | — |
| entity.name.type.instance.jsdoc punctuation.definition | #ff8c31 | italic |
| entity.name.type.instance.jsdoc | #cacaca | italic |
| comment.block storage, comment.block storage.type | #CF6cC9 | — |
| comment.block variable | #ff9c51 | — |
| comment.block storage.custom | #00b7e9 | — |
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}!`;
}