Sublette
Publisher: minmul117Themes in package: 1
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| comment, meta.documentation, string.docstring, punctuation.definition.comment | #58f | italic |
| string | #e57 | — |
| string.regexp | #e57 | — |
| constant.character.escape | #e57 | — |
| constant.language, meta.preprocessor | #4ee | — |
| constant.character, constant.other | #f7c | — |
| punctuation.section, punctuation.separator | #ccced0ff | — |
| constant.numeric | #e57 | — |
| invalid | #e65 | — |
| string.quoted.double, string.quoted.single | #e57 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #ccced0 | — |
| meta.brace.square | #fd8 | — |
| meta.brace.round, punctuation.definition.parameters.begin, punctuation.definition.parameters.end | #ff7 | — |
| meta.brace.curly | #ff7 | — |
| variable, punctuation.definition.variable | #ccced0 | — |
| variable.function | #ccced0 | — |
| keyword | #fd8 | — |
| meta.import.keyword, keyword.import, keyword.package, keyword.module, keyword.control.import, keyword.control.import.from, keyword.other.import, keyword.control.at-rule.include, keyword.control.at-rule.import, keyword.control.using | #f7c | — |
| storage | #fd8 | — |
| keyword.operator | #ccced0ff | — |
| variable.parameter | #ccced0ff | — |
| keyword.control, keyword.operator.logical, keyword.other.operator | #fd8 | — |
| entity.name.function | #4ee | — |
| keyword.control.class, meta.class, entity.name.class, entity.name.type.class | #4ee | — |
| support.type, support.class | #5e7 | — |
| entity.name.function.preprocessor.c, meta.preprocessor.c.include, meta.preprocessor.macro.c | #f7c | — |
| meta.preprocessor.c.include string, meta.preprocessor.c.include punctuation.definition.string.begin, meta.preprocessor.c.include punctuation.definition.string.end | #e57 | — |
| support.constant.color, invalid.deprecated.color.w3c-non-standard-color-name.scss | #f5f5da | — |
| source.css support.type | #ff7 | — |
| meta.selector.css | #ff7 | — |
| entity.name.tag.css, entity.name.tag.scss, source.less keyword.control.html.elements, source.sass keyword.control.untitled | #4ee | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.sass, source.css entity.other.attribute-name.id, source.less entity.other.attribute-name.id, source.scss entity.other.attribute-name.id, source.sass entity.other.attribute-name.id | #4ee | — |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.tag.pseudo-class | #fd8 | — |
| source.go entity.name.function | #ccced0 | — |
| source.go support.function | #ccced0 | — |
| text.html.derivative entity.name.tag.html | #fd8 | — |
| text.html.derivative punctuation.definition.tag.html, text.html.derivative punctuation.definition.tag.begin, text.html.derivative punctuation.definition.tag.end | #ccced0 | — |
| text.html.derivative entity.other.attribute-name | #5e7 | — |
| meta.tag.metadata.doctype.html | #58f | — |
| text.html.basic meta.tag.other.html, text.html.basic meta.tag.any.html, text.html.basic meta.tag.block.any, text.html.basic meta.tag.inline.any, text.html.basic meta.tag.structure.any.html, text.html.basic source.js.embedded.html, punctuation.separator.key-value.html | #ff7 | — |
| text.html.basic entity.other.attribute-name.html, meta.tag.xml entity.other.attribute-name | #4ee | — |
| storage.modifier.import.java | #f7c | — |
| meta.class punctuation | #ccced0 | — |
| entity.name.tag.yaml, support.type.property-name.json, keyword.key.toml | #4ee | — |
| meta.tag.table.toml | #fd8 | — |
| markup.heading, punctuation.definition.heading.markdown | #4ee | — |
| markup.quote | #fd8 | — |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.underline.link.markdown, meta.link.reference constant.other.reference.link.markdown | #e57 | — |
| constant.other.reference.link.markdown | #e57 | — |
| support.function.perl | #fd8 | — |
| meta.array support.function.construct.php | #4ee | — |
| storage.type.class.python, storage.type.function.python, storage.modifier.global.python | #fd8 | — |
| support.type.python, support.function.builtin.python | #4ee | — |
| punctuation.definition.parameters.begin.python, punctuation.definition.parameters.end.python | #ccced0ff | — |
| keyword.other.special-method.ruby | #fd8 | — |
| variable.other.constant.ruby | #4ee | — |
| constant.other.symbol.ruby | #e57 | — |
| keyword.other.special-method.ruby | #f7c | — |
| meta.scope.case-block.shell, meta.scope.case-body.shell | #58f | — |
| punctuation.definition.logical-expression.shell | #e57 | — |
| punctuation.section.group.tex, punctuation.definition.arguments.begin.latex, punctuation.definition.arguments.end.latex, punctuation.definition.arguments.latex | #e57 | — |
| meta.group.braces.tex | #4ee | — |
| string.other.math.tex | #4ee | — |
| variable.parameter.function.latex | #f7c | — |
| punctuation.definition.constant.math.tex | #e57 | — |
| text.tex.latex constant.other.math.tex, constant.other.general.math.tex, constant.other.general.math.tex, constant.character.math.tex | #e57 | — |
| string.other.math.tex | #4ee | — |
| punctuation.definition.string.begin.tex, punctuation.definition.string.end.tex | #e57 | — |
| keyword.control.label.latex, text.tex.latex constant.other.general.math.tex | #e57 | — |
| variable.parameter.definition.label.latex | #e57 | — |
| support.function.be.latex | #fd8 | — |
| support.function.section.latex | #f7c | — |
| support.function.general.tex | #e57 | — |
| keyword.control.ref.latex | #e57 | — |
| meta.scope.for-in-loop.shell, variable.other.loop.shell | #58f | — |
| meta.diff, meta.diff.header | #58f | — |
| meta.diff.range | #fd8 | — |
| markup.deleted | #e57 | — |
| markup.changed | #e57 | — |
| markup.inserted | #fd8 | — |
| sublimelinter.notes | #58f | — |
| sublimelinter.outline.illegal | #58f | — |
| sublimelinter.outline.warning | #f5f5da | — |
| sublimelinter.outline.violation | #ff7 | — |
| sublimelinter.mark.warning | #4ee | — |
| sublimelinter.mark.error | #e57 | — |
| sublimelinter.gutter-mark | #ff7 | — |
| brackethighlighter.all | #58f | — |
| entity.name.filename.find-in-files | #e57 | — |
| constant.numeric.line-number.find-in-files | #58f | — |
| markup.deleted.git_gutter | #e57 | — |
| markup.inserted.git_gutter | #fd8 | — |
| markup.changed.git_gutter | #4ee | — |
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}!`;
}