Nawal theme
Publisher: Adan G. Galvan GonzalezThemes in package: 1
Nawal. A theme for the nocturnal developer.
Nawal. A theme for the nocturnal developer.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #d3d0c8 | — |
| variable.parameter.function | #d3d0c8 | — |
| comment, punctuation.definition.comment | #747369 | — |
| punctuation.definition.variable, punctuation.definition.parameters, punctuation.definition.array | #d3d0c8 | — |
| none | #d3d0c8 | — |
| keyword.operator | #8b8fc5 | — |
| keyword, keyword.control | #8b8fc5 | — |
| variable | #f2777a | — |
| entity.name.function, meta.require | #9cbe6d | — |
| meta.function-call entity.name.function | #f2777a | — |
| meta.class.identifier, support.class, entity.name.class, entity.name.type.class | #ffcc66 | — |
| keyword.other.special-method | #9cbe6d | — |
| storage | #c95a76 | — |
| storage.type | #66cccc | italic |
| support.type | #66cccc | italic |
| support.function | #66cccc | — |
| punctuation.definition.string, string, constant.other.symbol, entity.other.inherited-class | #97CCA9 | — |
| constant.numeric | #f99157 | — |
| none | #f99157 | — |
| none | #f99157 | — |
| constant | #f99157 | — |
| entity.name.tag | #f2777a | — |
| entity.other.attribute-name | #FFE96B | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #9cbe6d | — |
| meta.selector | #c95a76 | — |
| none | #f99157 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #9cbe6d | |
| keyword.other.unit | #f99157 | — |
| markup.bold, punctuation.definition.bold | #ffcc66 | bold |
| markup.italic, punctuation.definition.italic | #c95a76 | italic |
| markup.raw.inline | #99cc99 | — |
| invalid | #2a2a2a | |
| string.other.link | #f2777a | — |
| meta.link | #f99157 | — |
| markup.list | #f2777a | — |
| markup.quote | #f99157 | — |
| meta.separator | #d3d0c8 | — |
| meta.diff.header | #9cbe6d | — |
| meta.diff.range | #66cccc | — |
| markup.inserted.git_gutter | #99cc99 | — |
| markup.deleted.git_gutter | #f92672 | — |
| markup.changed.git_gutter | #8c5ed1 | — |
| markup.inserted | #99cc99 | — |
| markup.deleted | #f2777a | — |
| constant.other.color | #66cccc | — |
| string.regexp | #66cccc | — |
| constant.character.escape | #66cccc | — |
| punctuation.section.embedded, variable.interpolation | #f99157 | — |
| source.css meta.selector.css entity.other.attribute-name.class.css | #898A85 | — |
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}!`;
}