Cobalt2 Theme
Publisher: kamranmackeyThemes in package: 1
Tweaked and refined theme based on the original cobalt.
Tweaked and refined theme based on the original cobalt.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #FFFFFF | — |
| punctuation - (punctuation.definition.string || punctuation.definition.comment) | #E1EFFF | |
| constant | #FF628C | |
| entity | #ffc600 | |
| keyword | #FF9D00 | |
| storage | #ffc600 | |
| string -string.unquoted.old-plist -string.unquoted.heredoc, string.unquoted.heredoc string | #3AD900 | |
| comment | #0088FF | italic |
| support | #80FFBB | |
| variable | #CCCCCC | |
| variable.language | #FF80E1 | |
| meta.function-call | #FFEE80 | — |
| invalid | #F8F8F8 | — |
| text source, string.unquoted.heredoc, source source | #FFFFFF | |
| entity.other.inherited-class | #80FCFF | italic |
| string.quoted source | #9EFF80 | |
| string constant | #80FF82 | — |
| string.regexp | #80FFC2 | — |
| string variable | #EDEF7D | — |
| support.function | #FFB054 | |
| support.constant | #EB939A | |
| support.type.exception | #FF1E00 | — |
| meta.preprocessor.c | #8996A8 | — |
| meta.preprocessor.c keyword | #AFC4DB | — |
| meta.sgml.html meta.doctype, meta.sgml.html meta.doctype entity, meta.sgml.html meta.doctype string, meta.xml-processing, meta.xml-processing entity, meta.xml-processing string | #73817D | — |
| meta.tag, meta.tag entity | #9EFFFF | — |
| meta.selector.css entity.name.tag | #9EFFFF | — |
| meta.selector.css entity.other.attribute-name.id | #FFB454 | — |
| meta.selector.css entity.other.attribute-name.class | #5FE461 | — |
| support.type.property-name.css | #9DF39F | — |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #F6F080 | — |
| meta.preprocessor.at-rule keyword.control.at-rule | #F6AA11 | — |
| meta.property-value support.constant.named-color.css, meta.property-value constant | #EDF080 | — |
| meta.constructor.argument.css | #EB939A | — |
| meta.diff, meta.diff.header | #F8F8F8 | — |
| markup.deleted | #F8F8F8 | — |
| markup.changed | #F8F8F8 | — |
| markup.inserted | #F8F8F8 | — |
| markup.raw | — | — |
| markup.quote | — | — |
| markup.list | — | — |
| markup.bold | #C1AFFF | bold |
| markup.italic | #B8FFD9 | italic |
| markup.heading | #C8E4FD | bold |
| sublimelinter.annotations | #FFFFFF | — |
| sublimelinter.mark.error | #DA2000 | — |
| sublimelinter.outline.illegal | #FFFFFF | — |
| sublimelinter.underline.illegal | — | — |
| sublimelinter.gutter-mark | #FFFFFF | — |
| sublimelinter.mark.warning | #EDBA00 | — |
| sublimelinter.outline.warning | #FFFFFF | — |
| sublimelinter.underline.warning | — | — |
| sublimelinter.outline.violation | #FFFFFF | — |
| sublimelinter.underline.violation | — | — |
| entity.name.type.class.php | #80FFC2 | — |
| entity.name.function.php | — | — |
| markup.deleted.git_gutter | #F92672 | — |
| markup.inserted.git_gutter | #A6E22E | — |
| markup.changed.git_gutter | #967EFB | — |
| markup.ignored.git_gutter | #565656 | — |
| markup.untracked.git_gutter | #565656 | — |
| brackethighlighter.tag | #1f4662 | — |
| brackethighlighter.curly | #ffc600 | — |
| brackethighlighter.round | #ffc600 | — |
| brackethighlighter.square | #ffc600 | — |
| brackethighlighter.angle | #FFDD00 | — |
| brackethighlighter.quote | #ffc600 | — |
| brackethighlighter.unmatched | #F92672 | — |
| storage.type.function.js | #ffa5f3 | — |
| punctuation.definition.string.begin.js, punctuation.definition.string.end.js | #2eff00 | — |
| punctuation.separator.key-value.css | #ffc600 | — |
| invalid.illegal.bad-comments-or-CDATA.html | #0088FF | — |
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}!`;
}