DesertEx
Publisher: casualjimThemes in package: 1
DesertEx color theme from vim
DesertEx color theme from vim
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #CCCCCC | — |
| comment | #7CCD7D | italic |
| constant | #FA8072 | — |
| entity | #87CEEB | |
| keyword | #F9EE98 | bold |
| storage | #FFA54F | |
| string | #FA8072 | |
| support | #FFA54F | |
| variable | #C0C0C0 | — |
| invalid.deprecated | #D2A8A1 | italic underline |
| invalid.illegal | #F8F8F8 | — |
| ----------------------------------- | — | — |
| text source | #87CEEB | — |
| text.html.ruby source | — | — |
| entity.other.inherited-class | #9B5C2E | italic |
| string source | #76EEC6 | |
| string constant | #DDF2A4 | — |
| string.regexp | #FA8072 | |
| string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #FFA54F | — |
| string variable | #8A9A95 | — |
| support.function | #FFA54F | |
| support.constant | #CF6A4C | italic |
| meta.preprocessor.c | #8996A8 | — |
| meta.preprocessor.c keyword | #87CEEB | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype entity, meta.tag.sgml.doctype string, meta.tag.preprocessor.xml, meta.tag.preprocessor.xml entity, meta.tag.preprocessor.xml string | #EEDC82 | — |
| declaration.tag, declaration.tag entity, meta.tag, meta.tag entity | #87CEEB | — |
| declaration.tag.inline, declaration.tag.inline entity, source entity.name.tag, source entity.other.attribute-name, meta.tag.inline, meta.tag.inline entity | #87CEEB | — |
| meta.selector.css entity.name.tag | #EEDC82 | — |
| meta.selector.css entity.other.attribute-name.tag.pseudo-class | #EE799F | — |
| meta.selector.css entity.other.attribute-name.id | #87CEEB | — |
| meta.selector.css entity.other.attribute-name.class | #87CEEB | — |
| support.type.property-name.css | #FFA54F | — |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #F9EE98 | — |
| meta.preprocessor.at-rule keyword.control.at-rule | #8693A5 | — |
| meta.property-value support.constant.named-color.css, meta.property-value constant | #FA8072 | — |
| meta.constructor.argument.css | #8F9D6A | — |
| meta.diff, meta.diff.header, meta.separator | #F8F8F8 | italic |
| markup.deleted | #F8F8F8 | — |
| markup.changed | #F8F8F8 | — |
| markup.inserted | #F8F8F8 | — |
| markup.list | #F9EE98 | — |
| markup.heading | #CF6A4C | — |
| support.function.built-in.go | #EEDC82 | — |
| entity.name.function | #87CEEB | — |
| entity.name.class | #87CEEB | italic |
| punctuation.section.embedded.begin.gotemplate | #DDF2A4 | — |
| punctuation.section.embedded.end.gotemplate | #DDF2A4 | — |
| entity.other.attribute-name.html | #EBDB65 | — |
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}!`;
}