Shopify Theme
Publisher: ecmasxThemes in package: 4
A collection of Shopify-inspired dark themes including Dark, Midnight, and Purple variants. Features unified syntax highlighting with unique UI color schemes for each theme.
A collection of Shopify-inspired dark themes including Dark, Midnight, and Purple variants. Features unified syntax highlighting with unique UI color schemes for each theme.
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 |
|---|---|---|
| support.type.property-name.json, meta.structure.dictionary.key.json, string.quoted.double.json support.type.property-name.json | #A4DFFD | — |
| entity.name.tag.html, entity.name.tag.jsx, entity.name.tag.tsx | #D8F6D6 | — |
| punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.jsx, punctuation.definition.tag.tsx, punctuation.definition.block, punctuation.definition.parameters, punctuation.section.embedded | #A4DFFD | — |
| text.html, source.js, source.jsx, source.tsx, source.css, text.xml | #A4DFFD | — |
| entity.other.attribute-name.class.html, entity.other.attribute-name.class.css, entity.other.attribute-name.class | #F3F972 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, entity.other.attribute-name.class.html, entity.other.attribute-name.id.html | #9DB8F7 | — |
| string.quoted.double, string.quoted.single, string.template, string.interpolated | #FE9F9B | — |
| variable.other, variable.parameter, variable.language, variable.other.liquid, punctuation.definition.variable.liquid | #08F4B9 | — |
| keyword.control, keyword.control.conditional, keyword.control.loop, keyword.liquid, keyword.function, storage.type.function, keyword.other, storage.type | #9DB8F7 | — |
| entity.name.function, support.function, meta.function-call, entity.name.function.js, entity.name.function.liquid | #A4DFFD | — |
| variable.parameter.function, meta.function.parameters variable, meta.function-call.arguments variable | #08F4B9 | — |
| punctuation.definition.liquid, entity.name.tag.liquid, meta.tag.liquid | #A4DFFD | — |
| support.function.liquid, entity.name.function.liquid | #F3F972 | — |
| variable.other.liquid, punctuation.definition.variable.liquid, support.variable.liquid | #08F4B9 | — |
| keyword.control.liquid, keyword.control.conditional.liquid, keyword.control.loop.liquid | #9DB8F7 | — |
| variable.other.property, support.variable.property, meta.property-name | #A4DFFD | — |
| constant.numeric.liquid, constant.numeric | #62F44C | — |
| comment, punctuation.definition.comment, comment.line.double-slash, comment.block | #95A7D5 | italic |
| comment.block.liquid, punctuation.definition.comment.liquid | #D7D7DB | italic |
| entity.name.class, entity.name.type, support.type | #9DB8F7 | — |
| constant.language, constant.character, variable.language.this | #9DB8F7 | — |
| support.type.property-name.css, support.type.vendored.property-name.css, variable.other.property.css, variable.css, variable.scss, variable.other.less | #DDE2F1 | — |
| punctuation.definition.parameters.begin, punctuation.definition.parameters.end, punctuation.definition.block.js, punctuation.definition.block.jsx, punctuation.definition.block.tsx, meta.brace.round, meta.brace.square, meta.brace.curly | #EFF1F1 | — |
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}!`;
}