Capitán
Publisher: DannyMendiolaThemes in package: 1
Really cool theme I made when I had other things I should've been doing instead
Really cool theme I made when I had other things I should've been doing instead
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, markup.quote.markdown, meta.diff, meta.diff.header | #696969 | — |
| beginning.punctuation.definition.list.markdown, constant.character.entity.html, constant.other.caps.python, entity.name.tag.yaml, entity.other.attribute-name.pseudo-element.css, markup.heading, support.type.python, support.variable, source.css entity.name.tag.reference, source.css entity.other.attribute-name.parent-selector, variable.language.this.js, variable.language.special.self.python | #c27cd8 | — |
| constant, constant.numeric, constant.other.php, constant.other.class.php, constant.numeric.css, entity.other.attribute-name.id, entity.other.attribute-name, entity.name.tag, fenced_code.block.language, keyword.operator, markup.deleted, markup.bold, meta.group.regexp, meta.structure.dictionary.json support.type.property-name, punctuation.definition.interpolation, punctuation.section.embedded.end.php, punctuation.section.embedded.end.ruby, punctuation.section.embedded.begin.php, punctuation.section.embedded.begin.ruby, punctuation.definition.template-expression, source.css support.function, source.php support.function, source.css keyword.other.unit, support.class, support.constant, support.function.magic.python, support.constant.ext.php, support.constant.core.php, support.type.exception.python, support.type.primitive.ts, support.type.builtin.ts, storage.type.primitive.java, storage.type.primitive.array.java, storage.type.java, storage.type.object.array.java, text.html.markdown string, variable.other.object.property.js.jsx | #3f88c5 | — |
| entity.name.type, entity.name.function, entity.other.inherited-class, entity.other.keyframe-offset.css, entity.other.attribute-name.class.jade, entity.other.attribute-name, markup.list, meta.function-call.generic.python, meta.at-rule.extend support.constant, meta.at-rule.extend, source.css entity.other.attribute-name, support.function, text.xml string, text.html.markdown string.quoted, text.xml punctuation.definition.string | #ffca43 | — |
| entity.other.attribute-name.id.css, keyword, markup.italic, meta.link, meta.image, punctuation.section.embedded.begin.js.jsx, punctuation.section.embedded.end.js.jsx, storage, source.js support.type | #d35551 | — |
| support.type.property-name.css, variable.parameter, variable.other.object.js.jsx | #e49246 | — |
| markup.inline.raw, markup.inserted, punctuation.definition.string, punctuation.definition.markdown, string, text.html.php string, text.html meta.embedded source.js string, text.html.php punctuation.definition.string, text.html meta.embedded source.js punctuation.definition.string, text.html punctuation.definition.string, text.html string | #68ca68 | — |
| constant.language.python, constant.numeric, variable.scss | #28dae0 | — |
| meta.template.expression.js, meta.embedded.line.js, meta.brace.square.js.jsx, punctuation.separator.key-value.js.jsx, variable.other.readwrite.js | #eee2c7 | — |
| entity.other.inherited-class | — | underline |
| comment, entity.other.attribute-name, invalid, keyword, variable.other.object.js.jsx, variable.scss, variable.object.property.ts | — | italic |
| constant, entity.name.tag.css, meta.structure.dictionary.json support.type.property-name, meta.import.js.jsx, punctuation.section.embedded.begin.js.jsx, punctuation.section.embedded.end.js.jsx, storage, support.type.property-name.css, variable.language.special.self.python, variable.language.this.js | — | bold |
| keyword.operator | — |
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}!`;
}