night blossom
Publisher: RustedTurnipThemes in package: 1
Bring the brightness of spring to your editor!
Bring the brightness of spring to your editor!
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 |
|---|---|---|
| keyword, storage.type.struct, storage.modifier, storage.type.modifier.access, storage.type.class, constant.language | #eb73bf | — |
| string | #ffbab8 | — |
| storage.type, entity.name.type, punctuation.definition, support.type | #ffb3ff | — |
| variable, meta.block, meta.function.definition.parameters, meta.body.function.definition, entity.name.variable | #6ADCEA | — |
| entity.name.function | #A99CFF | — |
| keyword.operator, punctuation.separator.scope-resolution, punctuation | #ff99ff | — |
| comment, punctuation.definition.comment | #bfa6b6 | — |
| entity.name.scope-resolution, storage.modifier.import, storage.modifier.package, entity.name.namespace | #ffd5bd | — |
| entity.name.import | #b8aa98 | — |
| constant.numeric | #ffa14a | — |
| variable.language.this | #47a3ff | — |
| entity.name.tag, punctuation.definition.tag | #eb73bf | — |
| meta.tag, meta.property-value.css | #ffbab8 | — |
| meta.attribute | #6ADCEA | — |
| source.go constant | #6ADCEA | — |
| support.type.property-name.json | #6ADCEA | — |
| meta.structure.dictionary.value.json string.quoted.double | #ffbab8 | — |
| meta.structure.dictionary.value constant.numeric.json | #ffa14a | — |
| meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #eb73bf | — |
| constant.language.python, meta.function.python, storage.type.function.python, storage.type.class.python | #eb73bf | — |
| meta.class.python, support.type.exception.python, meta.function.parameters.python, support.type.python | #ffb3ff | — |
| variable.parameter.function.language.python, variable.language.special.self.python, meta.attribute.python, variable.parameter.function-call.python | #6ADCEA | — |
| meta.function-call.python, meta.function-call.generic.python, entity.name.type.class.python, entity.name.function.python, meta.function.python, support.function.builtin.python | #A99CFF | — |
| entity.name.function.decorator.python, meta.function.decorator.python | #ffd5bdDD | — |
| meta.tag.cs | #eb73bf | — |
| meta.method.body.java, constant.other.enum.java | #6ADCEA | — |
| entity.other.inherited-class | #ffb3ff | — |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc, punctuation.decorator.js, variable.other.readwrite.js | #eb73bf | — |
| storage.type.js | #A99CFF | — |
| storage.type.type.ts | #eb73bf | — |
| storage.type.function.arrow.ts | #ff99ff | — |
| support.type.builtin.ts | #47a3ff | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, punctuation.definition.entity.css | #6ADCEA | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, punctuation.definition.keyword.css | #eb73bf | — |
| entity.name.class.proto, entity.name.class.message.proto, support.other.proto | #ffb3ff | — |
| entity.name.tag.yaml | #6ADCEA | — |
| meta.function.call.rust | #6ADCEA | — |
| meta.function.method.with-arguments.ruby | #6ADCEA | — |
| support.class.ruby | #ffb3ff | — |
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}!`;
}