Section Plate
Publisher: dang-wThemes in package: 2
A warm technical-plate theme in two variants — engineering drawing grammar for your editor.
A warm technical-plate theme in two variants — engineering drawing grammar 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 |
|---|---|---|
| comment, punctuation.definition.comment | #8a8279 | italic |
| punctuation.definition.parameters, punctuation.definition.array, punctuation.separator, punctuation.terminator, punctuation.accessor, meta.brace, punctuation.section, punctuation.definition.decorator, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.definition.attribute.rust | #a89f92 | — |
| keyword.operator | #a89f92 | — |
| variable, variable.other, variable.parameter, meta.object-literal.key, variable.other.property, support.variable, entity.name.variable, entity.name.other.anchor, variable.other.alias | #ede4d3 | — |
| entity.name.function, support.function, meta.function-call.generic, variable.function, entity.name.method | #7fa8c4 | — |
| entity.name.type, entity.name.class, entity.name.namespace, support.type, support.class, entity.other.inherited-class | #8fc4ae | — |
| constant.language, constant.other, variable.other.constant, support.constant, entity.name.constant | #7fa8c4 | — |
| constant.numeric, keyword.other.unit | #7fa8c4 | — |
| keyword, keyword.control, storage, storage.type, storage.modifier, keyword.operator.new, keyword.operator.expression, variable.language.this, variable.language.super | #ff4f00 | — |
| string, string.quoted, string.template, punctuation.definition.string, constant.character.escape | #f0a300 | — |
| invalid, invalid.illegal, invalid.deprecated | #e8503f | — |
| entity.name.tag, punctuation.definition.tag | #ff4f00 | — |
| entity.other.attribute-name | #a89f92 | — |
| markup.heading, entity.name.section | #ff4f00 | bold |
| markup.italic | #ede4d3 | italic |
| markup.bold | #ede4d3 | bold |
| markup.underline.link, string.other.link | #f0a300 | — |
| markup.inline.raw, markup.fenced_code | #f0a300 | — |
| markup.quote | #8a8279 | — |
| markup.inserted | #f0a300 | — |
| markup.deleted | #e8503f | — |
| markup.changed | #ff4f00 | — |
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 |
|---|---|---|
| comment, punctuation.definition.comment | #7a7165 | italic |
| punctuation.definition.parameters, punctuation.definition.array, punctuation.separator, punctuation.terminator, punctuation.accessor, meta.brace, punctuation.section, punctuation.definition.decorator, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.definition.attribute.rust | #555555 | — |
| keyword.operator | #555555 | — |
| variable, variable.other, variable.parameter, meta.object-literal.key, variable.other.property, support.variable, entity.name.variable, entity.name.other.anchor, variable.other.alias | #2a2a2a | — |
| entity.name.function, support.function, meta.function-call.generic, variable.function, entity.name.method | #3f6a86 | — |
| entity.name.type, entity.name.class, entity.name.namespace, support.type, support.class, entity.other.inherited-class | #43705f | — |
| constant.language, constant.other, variable.other.constant, support.constant, entity.name.constant | #3f6a86 | — |
| constant.numeric, keyword.other.unit | #3f6a86 | — |
| keyword, keyword.control, storage, storage.type, storage.modifier, keyword.operator.new, keyword.operator.expression, variable.language.this, variable.language.super | #c43c00 | — |
| string, string.quoted, string.template, punctuation.definition.string, constant.character.escape | #8f5f00 | — |
| invalid, invalid.illegal, invalid.deprecated | #c42818 | — |
| entity.name.tag, punctuation.definition.tag | #c43c00 | — |
| entity.other.attribute-name | #555555 | — |
| markup.heading, entity.name.section | #c43c00 | bold |
| markup.italic | #2a2a2a | italic |
| markup.bold | #2a2a2a | bold |
| markup.underline.link, string.other.link | #8f5f00 | — |
| markup.inline.raw, markup.fenced_code | #8f5f00 | — |
| markup.quote | #7a7165 | — |
| markup.inserted | #8f5f00 | — |
| markup.deleted | #c42818 | — |
| markup.changed | #c43c00 | — |
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}!`;
}