JarvBlue
Publisher: starkkThemes in package: 1
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #FFFFFF | — |
| comment | #919294 | — |
| string | #FFFFAD | — |
| constant.numeric, constant.boolean, constant.language.boolean, constant.language.ruby, constant.language.null.js, keyword.other.unit.px.css | #CC6666 | — |
| constant.language | #C986FD | — |
| constant.character, constant.other | #66D9EF | — |
| variable | #FFFFFF | — |
| keyword | #0099FF | — |
| keyword.operator, punctuation.separator.key-value, punctuation.definition.variable.ruby, punctuation.separator.other.ruby, meta.decorator.js, punctuation.terminator.rule.css | #91CCFF | — |
| keyword.operator.logical.js, keyword.operator.logical.ruby | #CC6666 | — |
| annotation.constant, variable.other.constant | #FFCC33 | — |
| entity.other.attribute-name.class.css | #F9F900 | — |
| support.class.console.js, support.variable.dom.js | #FFCC33 | — |
| punctuation.section.embedded.begin.js, punctuation.section.embedded.end.js | #FFCC33 | — |
| variable.parameter.function-call.python | #f0c674 | — |
| storage | #91CCFF | |
| storage.type | #91CCFF | — |
| entity.name.class | #66D9EF | — |
| entity.other.inherited-class | #7DB1FF | — |
| support.class.component | #66D9EF | — |
| entity.name.function, variable.language.super.js, support.constant.property-value.css | #A0FFA0 | |
| meta.function-call.python | #A0FFA0 | |
| meta.function-call.arguments.python | #FFFFFF | |
| variable.parameter, variable.parameter.js | #FFFFFF | — |
| entity.name.tag | #61E3FC | |
| entity.other.attribute-name | #C986FD | |
| variable.object.property.js, meta.object-literal.key.js, support.type.property-name.css | #C986FD | |
| meta.jsx.js, entity.name.tag.jsx, meta.jsx.children.js, tag.open.js, tag.close.js | #66D9EF | |
| support.function | #82E0D5 | |
| storage.type.function.arrow.js | #0099FF | |
| support.constant | #FD971F | |
| support.type, support.class | #66D9EF | — |
| support.other.variable | #FFFFFF | |
| invalid | #EDF5F7 | |
| invalid.deprecated | #F8F8F0 | — |
| meta.structure.dictionary.json string.quoted.double.json | #FAFA9B | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #00A8C6 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #8FBE00A0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| variable.language.this.js, support.class.js, variable.language.special.self.python | #0099FF | — |
| variable.language.python, variable.language.js | #0099FF | — |
| string.regexp | #57B6C2 | — |
| keyword.other.special-method | #61afef | — |
| constant.other.symbol | #AE81FFcd |
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}!`;
}