x4-alpha Theme
Publisher: vvatikiotisThemes in package: 1
x4-alpha theme loosely based from gerane x3-alpha
x4-alpha theme loosely based from gerane x3-alpha
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #DDDDDD | — |
| text, source | — | — |
| comment | #556552 | italic |
| string | #93E5C0 | — |
| constant.numeric | #93E5C0 | — |
| constant.language | #69A1C8 | — |
| constant.character | #617CC3 | — |
| constant.other | #DDDDDD | — |
| variable.parameter, meta.function.arguments variable.other | #DDDDDD | — |
| variable.other | #DDDDDD | normal |
| variable.other.property | #DDDDDD | — |
| variable.language | #96C2E1 | — |
| variable.language.this.js | #DDDDDD | underline |
| keyword.control | #69A1C8 | — |
| keyword.operator | #69A1C8 | — |
| storage, meta.include | #4581AB | — |
| storage.type.function.arrow.js, storage.type.function.js | #69A1C8 | bold |
| entity.name.class, entity.name.type.class, support.type, support.class | #DDDDDD | normal |
| support.class.component.js | #FFC77E | italic |
| entity.other.inherited-class | #BBBBBB | — |
| meta.function-call | #FFC77E | italic |
| entity.name.function, support.function | #FFC77E | — |
| support.constant | #DDDDDD | — |
| meta.property-name support.type.property-name | #8CB5CC | — |
| meta.property-value punctuation.separator.key-value | #A3ABBD | — |
| keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as | #8CB5CC | — |
| meta.use support.class.builtin, meta.other.inherited-class support.class.builtin | #A3ABBD | — |
| source.php.embedded punctuation.section.embedded.begin, source.php.embedded punctuation.section.embedded.end | #C92828 | — |
| source.php.embedded.line, source.php.embedded.line string | — | — |
| source.php.embedded meta.string-contents variable, source.php.embedded meta.string-contents punctuation.definition.variable | #CCCCCC | — |
| source.sql.embedded.php, keyword.other.DML, support.function.aggregate.sql | #CCCCCC | — |
| source.sql.embedded.php string.quoted punctuation, source.sql.embedded.php string.quoted variable, source.sql.embedded.php string.quoted meta | #CCCCCC | — |
| entity.name.tag | #4E99C9 | — |
| entity.other.attribute-name | #96C2E1 | italic |
| entity.other.attribute-name.class.css | #DDDDDD | — |
| source.css.embedded.html | — | — |
| source.js.embedded.html | — | — |
| entity.name.section.markdown | #DDDDDD | — |
| punctuation.definition.heading.markdown | #748aa6 | — |
| markup.raw.inline.markdown | #6ee2ff | — |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #748aa6 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #748aa6 | — |
| punctuation.definition.metadata.markdown | #748aa6 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, meta.image.inline.markdown | #267fb5 | italic |
| markup.bold.markdown, markup.italic.markdown | #267fb5 | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| markup.raw.block.markdown | #00a8c6 | — |
| sublimelinter.mark.warning | #DDB700 | — |
| sublimelinter.mark.error | #D02000 | — |
| sublimelinter.gutter-mark | #DDDDDD | — |
| invalid | #f8f8f0 | |
| invalid.deprecated | #f8f8f0 | — |
| meta.structure.dictionary.json string.quoted.double.json | #6ee2ff | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #00A8C6 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #D8D482 | — |
| constant.numeric.line-number.find-in-files - match | #88B00EA0 | — |
| entity.name.filename.find-in-files | #D8D482 | — |
| keyword.other | #58646E | — |
| meta.property-value, support.constant.property-value, constant.other.color | #80A3B4 | — |
| meta.structure.dictionary.json string.quoted.double.json | #93E5C0 | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #93E5C0 | — |
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}!`;
}