Crystalline Theme
Publisher: crystaltineThemes in package: 6
some themes
some themes
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 |
|---|---|---|
| token.storage, storage, keyword, keyword.control, keyword.operator, keyword.control.flow, keyword.control.conditional, control, variable.language.super, keyword.operator.expression.instanceof, keyword.operator.expression.keyof, keyword.control.import, keyword.control.export, keyword.operator.expression.void, keyword.operator.expression.delete, keyword.operator.expression.in, keyword.operator.expression.typeof, keyword.operator.expression.as, keyword.operator.expression.is, keyword.operator.expression.implements, keyword.operator.expression.await, keyword.operator.expression.throw, keyword.operator.new, keyword.operator.delete, constant.character.math.tex, constant.other.general.math.tex, punctuation.definition.constant.math.tex, variable.other.django.filter, storage.type.function.js, storage.type.function.ts, storage.type.function.jsx, storage.type.function.tsx, support.type.property.cmake | #FF6A91 | — |
| entity.name.type.class, entity.name.class, entity.name.type, support.class, support.type.primitive, support.type.builtin, variable.other.class.js, variable.other.class.ts, variable.other.class.tsx, variable.other.class.jsx, keyword.other.type, meta.other.type, meta.attribute.rust | #FFF3B5 | — |
| meta.object.member, meta.attribute.python, meta.property.object, meta.attribute, variable.other.rust, variable.other.property, variable.other.object.property, variable.other.django.attribute, constant.enum | #B2D6F7 | — |
| meta.indexed-name.python, variable.parameter, meta.function.parameters, meta.function.parameter, meta.function.parameter.no-default | #A5E9B6 | — |
| entity.name.function.member, entity.name.function.call, entity.name.function, support.function.be.latex, support.function.general.tex, support.function.textit.latex, meta.function.textbf.latex, meta.function-call.generic, support.function.special, support.function.magic, support.function.misc, support.function.gradient, support.function.constructor, support.function.destructor, support.function.cmake | #D594FE | — |
| variable.other, support.type.variable | #EAB287 | — |
| variable.language.this, variable.language.self, variable.language.self.rust, variable.parameter.function.language.special.self, variable.parameter.function.language.special.self.python | #FFF3B5 | — |
| string, string.regexp | #E497B5 | — |
| meta.template.expression, punctuation.definition.template-expression, constant.character.format.placeholder | #D594FE | — |
| constant, constant.numeric, constant.language, constant.character, constant.other, constant.regexp, constant.character.escape | #FFF3B5 | — |
| support.type.builtin.tsx, support.type.builtin.jsx, support.type.builtin.ts, support.type.builtin.js | #FFF3B5 | — |
| keyword.operator.quantifier.regexp, constant.other.character-class.regexp, punctuation.definition.group.regexp | #D594FE | — |
| constant.character.escape | #FFF3B5 | — |
| punctuation.separator.annotation.result, punctuation.accessor.optional, punctuation.accessor.optional, keyword.operator.control, keyword.operator.misc, storage.type.function.arrow, keyword.operator.arrow.fat.rust, keyword.operator.arrow.skinny.rust, keyword.operator.ternary | #FF6A91 | — |
| keyword.operator, storage.modifier.pointer, storage.modifier.reference, keyword.operator.logical, keyword.operator.increment, keyword.operator.comparison, keyword.operator.optional, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.cast, keyword.operator.assignment, keyword.operator.address | #D594FE | — |
| punctuation.comma, punctuation.separator, punctuation.terminator, punctuation.section.angle-brackets, punctuation.definition.tag, punctuation.brackets.angle, punctuation.definition.annotation, punctuation.definition.typeparameters, punctuation.semi, punctuation.accessor, keyword.operator.access.dot.rust, keyword.operator.type.annotation, keyword.operator.namespace.rust, keyword.operator.key-value.rust, punctuation.definition.block.sequence.item | #888 | — |
| support.other.namespace, entity.name.namespace, entity.name.module, entity.name.label.cs, entity.name.scope-resolution, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition | #1FCBA6 | — |
| entity.name.function.preprocessor.c, entity.name.function.preprocessor.c++, entity.name.function.preprocessor.objc, entity.name.function.preprocessor.objcpp | #20CBB1 | — |
| entity.name.lifetime.rust, storage.modifier.lifetime.rust | #A5E9B6 | — |
| entity.name.tag.html, entity.name.tag.jsx, entity.name.tag.tsx, entity.name.tag.open, entity.name.tag.close | #FF6A91 | — |
| entity.other.attribute-name.tsx, entity.other.attribute-name.jsx, entity.other.attribute-name.html, entity.other.attribute-name | #A5E9B6 | — |
| variable.other.readwrite.alias.js, variable.other.readwrite.alias.ts, variable.other.readwrite.alias.jsx, variable.other.readwrite.alias.tsx, storage.modifier.import.java | #FFF3B5 | — |
| constant.language.json | #FFF3B5 | — |
| support.type.property-name.json, variable.key.dotenv, support.type.property-name.toml, entity.name.tag.yaml | #EAB287 | — |
| support.type.property-value.json, support.type.property-value.toml, variable.value.dotenv, property.value.dotenv | #E497B5 | — |
| support.type.property-name.table.toml, support.type.property-name.array.toml | #D594FE | — |
| entity.name.tag.css, entity.name.tag.custom.css, support.constant.media.css, support.constant.media.at-rule.css, support.type.pseudo-element.css | #FFF3B5 | — |
| entity.other.attribute-name.class.css | #D594FE | — |
| entity.other.attribute-name.id | #FF6A91 | |
| variable.other.css, variable.argument.css, variable.css, meta.function.variable.css, variable.scss, variable.other.scss | #A5E9B6 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.media, meta.property-name.css, meta.property-name.scss, meta.property-name.less | #EAB287 | — |
| support.type.property-value.css, support.type.property-value.scss, support.type.property-value.less, support.constant.property-value.css, support.constant.property-value.scss, support.constant.property-value.less, meta.property-value.css, meta.property-value.scss, meta.property-value.less | #E497B5 | — |
| variable.parameter.keyframe-list | #20CBB1 | — |
| entity.other.keyframe-offset.percentage | #FFF3B5 | — |
| keyword.other.unit | #EAB287 | — |
| entity.other.django.delimiter.tag | #888 | — |
| keyword.control.django | #D594FE | — |
| entity.name.label.assembly, variable.label | #D594FE | — |
| keyword.other.pseudo-op | #20CBB1 | — |
| comment, punctuation.definition.comment | #FFF5 | — |
| comment.block.documentation, comment.line.documentation, string.quoted.docstring.multi.python | #FFF6 | — |
| invalid.deprecated, invalid.illegal, invalid.broken, invalid.unimplemented, invalid.illegal.bad-ampersand | #C66 | — |
| punctuation.definition.bold, punctuation.definition.heading, entity.name.section, markup.heading, markup.bold | #B2D6F7 | bold |
| markup.italic, punctuation.definition.italic,todo.emphasis | #A5E9B6 | italic |
| markup.strikethrough | #FF6A91 | — |
| punctuation.definition.list.begin.markdown | #FF6A91 | — |
| markup.underline.link | #D594FE | — |
| punctuation.definition.quote, punctuation.definition.link.description, punctuation.definition.metadata.markdown | #888 | — |
| markup.quote | #EAB287 | — |
| markup.inline.raw.string, punctuation.definition.raw.markdown | #EAB287 | — |
| markup.fenced_code.block | #EAB287 | — |
| fenced_code.block.language.markdown | #EAB287 | — |
| punctuation.definition.table.markdown | #888 | — |
| log.info | #BBB | — |
| log.warning | #EAB287 | — |
| log.error | #FF6A91 | — |
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}!`;
}