Angular-io-Code
Publisher: Ivo StratevThemes in package: 1
Angular.io inspired Color Theme.
Angular.io inspired Color Theme.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #5C707A | — |
| comment | #969896 | italic |
| string | #647F11 | — |
| regexp-operator | #D43669 | — |
| string.regexp.characterclass punctuation.definition.string.begin, string.regexp.characterclass punctuation.definition.string.end | #D43669 | — |
| constant.numeric | #647F11 | — |
| constant.language | #D43669 | — |
| constant.character, constant.other, variable.other.constant | #D43669 | — |
| variable | #D43669 | — |
| keyword | #D43669 | — |
| bitwise-operator | #D43669 | — |
| storage | #D43669 | — |
| storage.type | #D43669 | — |
| entity.name.class | #D43669 | — |
| entity.other.inherited-class | #D43669 | — |
| entity.name.function | #D43669 | — |
| variable.parameter | #5C707A | — |
| entity.name.tag | #D43669 | — |
| entity.other.attribute-name | #647F11 | — |
| support.function | #D43669 | — |
| support.constant | #D43669 | — |
| support.type, support.class | #D43669 | — |
| support.other.variable | #D43669 | — |
| invalid, invalid.illegal, invalid.deprecated | #D43669 | — |
| entity.name.filename.find-in-files | #5C707A | — |
| constant.numeric.line-number.find-in-files, constant.numeric.line-number.match.find-in-files | #969896 | — |
| meta.diff.header | #969896 | italic |
| meta.diff.header punctuation.definition.from-file.diff | #D43669 | italic |
| meta.diff.header punctuation.definition.to-file.diff | #647F11 | italic |
| meta.diff.range | #969896 | italic |
| markup.deleted | — | — |
| markup.deleted punctuation.definition.inserted | #D43669 | — |
| markup.inserted | — | — |
| markup.inserted punctuation.definition.inserted | #647F11 | — |
| markup.deleted.git_gutter | #D43669 | — |
| markup.inserted.git_gutter | #647F11 | — |
| markup.changed.git_gutter | #969896 | — |
| markup.ignored.git_gutter | #b3b3b3 | — |
| markup.untracked.git_gutter | #b3b3b3 | — |
| source.css punctuation.definition.entity | #5C707A | — |
| source.css entity.other.attribute-name.pseudo-class, source.css entity.other.attribute-name.pseudo-element | #D43669 | — |
| source.css meta.value, source.css support.constant, source.css support.function | #647F11 | — |
| source.css constant.other.color | #647F11 | — |
| source.scss punctuation.definition.entity | #5C707A | — |
| source.scss entity.other.attribute-name.pseudo-class, source.scss entity.other.attribute-name.pseudo-element | #D43669 | — |
| source.scss support.constant.property-value, source.scss support.function | #647F11 | — |
| source.scss variable | #D43669 | — |
| variable.language.this.js | #D43669 | — |
| source.js entity.name.function | #D43669 | regular |
| source.js meta.function entity.name.function, source.js entity.name.function meta.function | #D43669 | — |
| entity.name.type.new.js | #D43669 | — |
| variable.language.prototype.js | #D43669 | — |
| source.js support.function | #647F11 | — |
| support.type.object.console.js | #D43669 | — |
| meta.structure.dictionary.json string.quoted.double.json | #5C707A | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json | #647F11 | regular |
| source.python keyword | #D43669 | — |
| source.python storage | #D43669 | — |
| source.python storage.type | #D43669 | — |
| source.python entity.name.function | #D43669 | — |
| source.php entity.name.type.class | #D43669 | — |
| variable.language.ruby | #D43669 | — |
| entity.name.type.module.ruby | #D43669 | — |
| entity.name.type.class.ruby | #D43669 | — |
| entity.other.inherited-class.ruby | #D43669 | — |
| punctuation.definition.heading.markdown, punctuation.definition.italic.markdown, punctuation.definition.bold.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown, punctuation.definition.link.markdown, punctuation.definition.blockquote.markdown, punctuation.definition.raw.markdown | #D43669 | — |
| text.html.markdown meta.separator | #5C707A | — |
| text.html.markdown markup.heading | — | — |
| text.html.markdown markup.raw.block | #5C707A | — |
| text.html.markdown markup.raw.inline | #5C707A | — |
| text.html.markdown meta.link, text.html.markdown meta.image | #647F11 | — |
| text.html.markdown markup.underline.link, text.html.markdown constant.other.reference | #647F11 | italic |
| text.html.markdown markup.list | #D43669 | — |
| text.html.markdown markup.bold | — | bold |
| text.html.markdown markup.italic | — | italic |
| text.html.markdown markup.bold markup.italic | — | italic bold |
| text.html.markdown markup.italic markup.bold | — | italic bold |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, tag.decorator.ts entity.name.tag.ts, tag.decorator.ts punctuation.definition.tag.ts | #647F11 | — |
| meta.return.type, meta.return-type, meta.cast, meta.type.annotation, support.type, entity.name.class, entity.name.type, storage.type.cs, storage.type.java | #D43669 | — |
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}!`;
}