Contrast Theme
Publisher: John DuganThemes in package: 1
Blissful editing for VS Code
Blissful editing for VS Code
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 |
|---|---|---|
| comment | #6D6D6D | — |
| string.quoted | #FBDFB5 | — |
| constant.numeric | #D0D0D0 | — |
| constant.language | #D77676 | — |
| keyword.operator | #FF5E5E | — |
| punctuation.definition.binding-pattern, meta.import punctuation.definition.block | #FF5E5E | — |
| keyword.control | #FF5E5E | — |
| storage.type | #FBDFB5 | italic |
| storage.modifier | #FBDFB5 | italic |
| variable.language | #E9FDAC | — |
| support.function | #C9E9E0 | — |
| punctuation.separator, punctuation.terminator | #D0D0D0 | — |
| string.regexp, string.regexp keyword.control, string.regexp keyword.operator | #FBDFB5 | — |
| string.regexp punctuation.definition.string | #A9B9B0 | — |
| string.regexp keyword.other | #FF5E5E | — |
| entity.name.function | #8CDAFF | — |
| punctuation.definition.parameters, punctuation.definition.arguments | #C9E9E0 | normal |
| meta.parameters | — | italic |
| variable.parameter | #D0D0D0 | — |
| variable.function, meta.function-call entity.name.function, meta.method-call entity.name.function | #C9E9E0 | — |
| entity.name.type.class, entity.other.inherited-class, support.class | #B8FCB1 | — |
| meta.tag.sgml, meta.tag.sgml variable.language, meta.tag.sgml punctuation.definition.tag | #FFCC32 | — |
| meta.tag.preprocessor, meta.tag.preprocessor entity.name.tag, meta.tag.preprocessor punctuation.definition.tag | #FFCC32 | — |
| entity.name.tag | #FF5E5E | — |
| punctuation.definition.tag | #D0D0D0 | — |
| entity.other.attribute-name | #8CDAFF | — |
| meta.tag.metadata.script entity.name.tag, meta.tag.metadata.script punctuation.definition.tag | #B8FCB1 | — |
| #B8FCB1 | — | |
| support.type.property-name | #F8F8F2 | — |
| meta.property-value | #FBDFB5 | — |
| punctuation.section | #D0D0D0 | — |
| variable.css, variable.scss | #FFE082 | — |
| punctuation.definition.entity, punctuation.definition.attribute-selector | #8CDAFF | — |
| meta.attribute-selector | #FBDFB5 | — |
| keyword.control.at-rule, keyword.control.at-rule punctuation | #FBDFB5 | italic |
| meta.at-rule support.function | #8CDAFF | — |
| meta.at-rule.mixin variable.scss, meta.at-rule.function variable.scss | #D0D0D0 | italic |
| meta.at-rule.mixin support.constant, meta.at-rule.mixin variable.parameter, meta.at-rule.function support.constant, meta.at-rule.function variable.parameter | #FBDFB5 | italic |
| meta.at-rule.mixin constant.numeric, meta.at-rule.function constant.numeric | — | italic |
| keyword.control.at-rule.include, keyword.control.at-rule.include punctuation | #FF5E5E | normal |
| meta.at-rule.function punctuation.section | #C9E9E0 | — |
| meta.at-rule.return | #D0D0D0 | — |
| meta.at-rule.return punctuation.definition.begin.bracket, meta.at-rule.return punctuation.definition.end.bracket | #D0D0D0 | — |
| meta.at-rule.include entity.name.function, meta.at-rule.include punctuation, meta.property-value punctuation.section.function | #C9E9E0 | — |
| punctuation.definition.interpolation | #D77676 | — |
| punctuation.definition.map | #D77676 | — |
| comment storage.type, comment punctuation.definition.block | #6D6D6D | normal |
| punctuation.definition.block, punctuation.definition.dictionary | #A9B9B0 | — |
| meta.brace.square, punctuation.definition.array | #D77676 | — |
| meta.brace.round | #C9E9E0 | — |
| punctuation.accessor | #FF5E5E | — |
| support.variable.dom, support.class.console, support.type.object | #FFE082 | — |
| support.variable.property.js | #E9FDAC | — |
| support.class.js, support.class.builtin.js | #8CDAFF | — |
| meta.function-call support.class.builtin.js, new.expr entity.name.type.js | #C9E9E0 | — |
| support.class.js | #F8F8F2 | — |
| string.template.js, punctuation.definition.string.template | #FBDFB5 | — |
| meta.template.expression | #F8F8F2 | — |
| punctuation.definition.template-expression | #D77676 | — |
| punctuation.support.type.property-name | #B2B2B1 | — |
| punctuation.section.embedded | #A9B9B0 | — |
| punctuation.definition.begin.bracket.round, punctuation.definition.end.bracket.round | #C9E9E0 | — |
| variable.other.php | #F8F8F2 | — |
| meta.function.parameter | #D0D0D0 | italic |
| punctuation.section.array | #D77676 | — |
| keyword.other.new | #FF5E5E | — |
| keyword.other.sql, keyword.other.DML.sql, keyword.other.alias.sql | #FF5E5E | — |
| keyword.other.DDL.create.II.sql | #D77676 | — |
| entity.name.section, punctuation.definition.heading | #FFE082 | — |
| punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown | #C9E9E0 | — |
| markup punctuation | #FF5E5E | — |
| markup.fenced_code.block.markdown | #C9E9E0 | — |
| string.other.link | #8CDAFF | — |
| markup.underline.link | #6D6D6D | — |
| string.other.link.description.title | #D0D0D0 | — |
| meta.link punctuation | #B2B2B1 | — |
| meta.image punctuation | #B2B2B1 | — |
| keyword.other.special-method.dockerfile | #FF5E5E | — |
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}!`;
}