Pyjamas
Publisher: tbutterwithThemes in package: 3
A dark colour theme for VSCode
A dark colour theme for VSCode
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #adcadd | — |
| comment, punctuation.definition.comment | #5a7690 | — |
| string | #ffdb89 | — |
| constant.numeric | #b094de | — |
| constant.language | #b094de | — |
| constant.character, constant.other | #b094de | — |
| variable | — | |
| keyword | #ea6442 | — |
| storage | #ea6442 | — |
| keyword.control.import, keyword.control.from | #ea6442 | italic |
| string.quoted.docstring.multi.python punctuation.definition.string.begin.python, string.quoted.docstring.multi.python punctuation.definition.string.end.python, string.quoted.docstring.multi.python | #5a7690 | — |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #ea6442 | italic |
| variable.language.special.self.python, variable.language.special.cls.python | #ea6442 | — |
| punctuation.definition.decorator.python, meta.function.decorator.python, support.type.python | #1abc9c | — |
| storage.type | #e74c3c | italic |
| entity.name.class | #1abc9c | — |
| entity.other.inherited-class, keyword.control.flow.js | #1abc9c | — |
| entity.name.function, meta.function-call.generic, meta.function-call.js | #1abc9c | |
| variable.parameter | #fd971f | — |
| variable.parameter.function | #fd971f | — |
| entity.name.tag, support.type.property-name.json, keyword.control.flow.js | #ea6442 | |
| entity.other.attribute-name, variable.language.this.js | #1abc9c | |
| support.function | #1abc9c | |
| support.constant | #1abc9c | |
| support.type, support.class | #ea6442 | — |
| support.other.variable | #2980b9 | |
| invalid | #8cc8ec | |
| invalid.deprecated | #8cc8ec | — |
| meta.structure.dictionary.json string.quoted.double.json | #ffdb89 | — |
| meta.property-name.dictionary.json | #e74c3c | — |
| meta.diff, meta.diff.header | #75715e | — |
| markup.deleted | #ea6442 | — |
| markup.inserted | #1abc9c | — |
| markup.changed | #ffdb89 | — |
| constant.numeric.line-number.find-in-files - match | #b094de | — |
| entity.name.filename.find-in-files | #e6db74 | — |
| tag.decorator.js tag.decorator.js punctuation.definition.tag.js | #e6db74 | — |
| punctuation.definition.array, punctuation.definition.structure | — | bold |
| punctuation.definition.string | #ffdb89 | — |
| source.js constant.other.object.key.js string.unquoted.label.js | #e74c3c | — |
| meta.template.expression variable, meta.template.expression meta.brace.round, meta.template.expression punctuation.accessor | #adcadd | |
| meta.template.expression punctuation.definition.template-expression | #1abc9c | |
| entity.name.selector | #e74c3c | — |
| variable.less, variable.ref.sass, variable.decl.sass | #ffdb89 | — |
| annotation.parameters.ts | #1abc9c | |
| annotation.function.name.ts, annotation.function.primitive.support.ts, annotation.entity.parameters.ts | #ea6442 | |
| meta.object-literal.key, meta.object-literal.key entity.name.function | #ea6442 | — |
| markup.quote, markup.bold.markdown | #1abc9c | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #adcadd | — |
| string.other.link.description.markdown, string.other.link.title.markdown | #ea6442 | — |
| markup.list | #ffdb89 | — |
| fenced_code.block.language, punctuation.definition.markdown | #fd971f | — |
| markup.bold, markup.italic | #66d9ef | — |
| markup.inline.raw | #fd971f | |
| markup.heading.setext | #e74c3c | |
| markup.underline.link.image.markdown, markup.underline.link.markdown | #e74c3c | |
| markup.heading | #e74c3c | |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b094de | — |
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}!`;
}