Alien Camo Theme
Publisher: NuufThemes in package: 1
A theme with a dark background and a warm alienistic foreground
A theme with a dark background and a warm alienistic foreground
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #11FF00 | — |
| comment | #7D7D69 | — |
| string | #C7D156 | — |
| string.regexp | #804073 | — |
| constant.numeric | #37D6CB | — |
| variable.language, variable.other | #1BDE3B | — |
| keyword | #54814eff | — |
| storage | #66354A | bold |
| entity.name.class, entity.name.type.class | #2AD4A7 | — |
| entity.name.function | #337275 | — |
| punctuation.definition.variable | #54814eff | — |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #54814eff | — |
| constant.language, meta.preprocessor | #07A85D | — |
| support.function.construct, keyword.other.new | #54814eff | — |
| constant.character, constant.other | #31B042 | — |
| entity.other.inherited-class | #945391 | — |
| variable.parameter | #C2809F | — |
| entity.name.tag | #7A3A58 | — |
| punctuation.definition.tag.begin, punctuation.definition.tag.end | #337275 | — |
| entity.other.attribute-name | #74F246 | — |
| support.function | #519449ff | — |
| punctuation.separator.continuation | #54814eff | — |
| support.constant | #967687 | — |
| support.type, support.class | #54814eff | — |
| support.type.exception | #4f8949ff | — |
| support.other.variable | #46B08B | — |
| invalid | #CC7E7E | — |
| markup.quote | #68AD1F | — |
| markup.list | #439C7D | — |
| markup.bold, markup.italic | #519b49ff | — |
| markup.inline.raw | #54814eff | |
| markup.heading | #7A3A58 | — |
| markup.heading.setext | #519449ff | |
| variable.language.this.js | #2AD4A7 | — |
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}!`;
}