Karry Color Golang Theme
Publisher: fcunhanetoThemes in package: 1
I rewrote Karry Color Theme to be specific to Golang.
I rewrote Karry Color Theme to be specific to Golang.
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 |
|---|---|---|
| — | #435E75 | — |
| comment, punctuation.definition.comment | #AAAAAA | italic |
| comment.block.preprocessor | #AAAAAA | |
| comment.documentation, comment.block.documentation | #448C27 | — |
| invalid.illegal | #660000 | — |
| keyword.operator | #4B83CD | — |
| keyword, storage | #7A3E9D | — |
| storage.type, support.type | #7A3E9D | — |
| constant.language, support.constant, variable.language | #AB6526 | — |
| variable, support.variable | #4B83CD | — |
| entity.name.function, support.function | #AA3731 | — |
| entity.name.type, entity.other.inherited-class, support.class | #7A3E9D | — |
| entity.name.exception | #660000 | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #d39000 | — |
| string | #448C27 | — |
| constant.character.escape | #777777 | — |
| string.regexp | #4B83CD | — |
| constant.other.symbol | #AB6526 | — |
| punctuation | #435E75 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #AAAAAA | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #9a09b2 | — |
| entity.name.tag | #4B83CD | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #d06fdd | italic |
| constant.character.entity, punctuation.definition.entity | #AB6526 | — |
| entity.name.tag.css | #9a09b2 | — |
| meta.selector.css | #928EB1 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #e80018 | — |
| meta.property-name, support.type.property-name | #2165be | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #448C27 | — |
| keyword.other.important | — | bold |
| markup.changed | #000000 | — |
| markup.deleted | #000000 | — |
| markup.italic | — | italic |
| markup.error | #660000 | — |
| markup.inserted | #000000 | — |
| meta.link | #4B83CD | — |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #777777 | — |
| markup.heading | #AA3731 | — |
| markup.bold | — | bold |
| markup.traceback | #660000 | — |
| markup.underline | — | underline |
| markup.quote | #7A3E9D | — |
| markup.list | #4B83CD | — |
| markup.bold, markup.italic | #448C27 | — |
| markup.inline.raw | #AB6526 | |
| meta.diff.range, meta.diff.index, meta.separator | #434343 | — |
| meta.diff.header.from-file | #434343 | — |
| meta.diff.header.to-file | #434343 | — |
| source.go | #435E75 | — |
| keyword.function.go | #ABB5F7 | italic |
| keyword.package.go, keyword.import.go | #B80012 | — |
| entity.name.function.go | #D00014 | bold |
| support.function.go, support.function.builtin.go | #F80018 | — |
| storage.type.numeric.go, storage.type.boolean.go, storage.type.string.go, storage.type.error.go, storage.type.byte.go, keyword.var.go | #9E31C5 | italic |
| entity.name.type.go | #F80018 | — |
| keyword.type.go, keyword.struct.go | #FE6AC4 | — |
| variable.other.assignment.go | #435E75 | — |
| constant.language.go, constant.numeric.integer.go | #F97500 | — |
| string.quoted.double.go | #00A174 | — |
| keyword.operator.assignment.go, keyword.operator.arithmetic.go, keyword.operator.address.go, keyword.operator.increment.go | #0071b2 | — |
| keyword.operator.comparison.go, keyword.operator.logical.go | #8C0EB9 | — |
| keyword.control.go | #8C0EB9 | — |
| keyword.map.go | #8C0EB9 | — |
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}!`;
}