tokyo-candy-night
Publisher: Hugo OlvThemes in package: 1
VS Code Theme Extension, which is a merge between "Tokyo Night Frameless - enkia" for the app colors and "Material Candy - Pierre-Antoine Urvoy" for syntax highlighting
VS Code Theme Extension, which is a merge between "Tokyo Night Frameless - enkia" for the app colors and "Material Candy - Pierre-Antoine Urvoy" for syntax highlighting
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded | #BBBBBB | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #6A9955 | — |
| constant.language | #5f95c7 | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #B5CE89 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #5f95c7 | — |
| entity.name.tag.css | #d3c277 | — |
| entity.other.attribute-name | #71c5df | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.attribute.scss, entity.other.attribute-name.scss | #d3c277 | — |
| invalid | #f44747 | — |
| markup.underline | — | underline |
| markup.bold | #5f95c7 | bold |
| markup.heading | #5f95c7 | bold |
| markup.italic | — | italic |
| markup.inserted | #B5CE89 | — |
| markup.deleted | #df795f | — |
| markup.changed | #5f95c7 | — |
| punctuation.definition.quote.begin.markdown | #6A9955 | — |
| punctuation.definition.list.begin.markdown | #6796e6 | — |
| markup.inline.raw | #df795f | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor, entity.name.function.preprocessor | #5f95c7 | — |
| meta.preprocessor.string | #df795f | — |
| meta.preprocessor.numeric | #B5CE89 | — |
| meta.structure.dictionary.key.python | #71c5df | — |
| meta.diff.header | #5f95c7 | — |
| storage | #5f95c7 | — |
| storage.type | #df5f75 | — |
| storage.modifier, keyword.operator.noexcept | #5f95c7 | — |
| string, meta.embedded.assembly | #df795f | — |
| string.tag | #df795f | — |
| string.value | #df795f | — |
| string.regexp | #d16969 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #df5f75 | — |
| meta.template.expression | #BBBBBB | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #71c5df | — |
| keyword | #5f95c7 | — |
| keyword.control | #5f95c7 | — |
| keyword.operator | #BBBBBB | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #5f95c7 | — |
| keyword.other.unit | #B5CE89 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #5f95c7 | — |
| support.function.git-rebase | #71c5df | — |
| constant.sha.git-rebase | #B5CE89 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #BBBBBB | — |
| variable.language | #5f95c7 | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #d3c277 | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #5ec39d | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #5ec39d | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator | #df5f75 | bold |
| variable, meta.definition.variable.name, support.variable, entity.name.variable | #71c5df | — |
| variable.other.constant, variable.other.enummember | #71c5df | — |
| meta.object-literal.key | #71c5df | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #df795f | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #df795f | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #d16969 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #d3c277 | — |
| keyword.operator.quantifier.regexp | #d3c277 | — |
| constant.character | #5f95c7 | — |
| constant.character.escape | #d3c277 | — |
| entity.name.label | #C8C8C8 | — |
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}!`;
}