Rockstar, by OneBitCode
Publisher: OneBitCodeThemes 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 |
|---|---|---|
| comment, punctuation.definition.comment | #898989 | italic |
| keyword, storage.modifier, punctuation.definition | #f65358 | — |
| keyword.control, keyword.other.template, keyword.other.substitution | #f65358 | — |
| keyword.operator, storage.type, variable.language.this | #f65358 | — |
| variable, string constant.other.placeholder, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, punctuation, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded | #88c4e8 | |
| constant.other.color | #88c4e8 | italic |
| invalid, invalid.illegal | #d478ff | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #f65358 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, constant.rgb-value | #f3ff84 | — |
| string, punctuation.definition.string.begin, punctuation.definition.string.end, constant.other.symbol, constant.other.key, constant.other.color, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #ffd99f | — |
| entity.name.function, entity.name.method, meta.function-call, variable.function, support.function, keyword.other.special-method | #f3c767 | — |
| entity.name, entity.name.class, entity.name.type, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #f3c767 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #f65358 | — |
| source.css punctuation, source.sass punctuation, source.scss punctuation, source.less punctuation, source.stylus punctuation, source.postcss punctuation, source.css punctuation.definition, source.sass punctuation.definition, source.scss punctuation.definition, source.less punctuation.definition, source.stylus punctuation.definition, source.postcss punctuation.definition, source.css keyword, source.sass keyword, source.scss keyword, source.less keyword, source.stylus keyword, source.postcss keyword, source.css keyword.control, source.sass keyword.control, source.scss keyword.control, source.less keyword.control, source.stylus keyword.control, source.postcss keyword.control | #88c4e8 | — |
| entity.other.attribute-name, text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #88c4e8 | italic |
| constant.character.escape | #89DDFF | — |
| keyword.operator.new, source.json punctuation, support.type.property-name.json | #f65358 | — |
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}!`;
}