Fifty Shades of Grape
Publisher: Chen YefetThemes in package: 1
A dark theme with pink, purple and turquoise as the main colours. Designed to be pleasant on the eyes
A dark theme with pink, purple and turquoise as the main colours. Designed to be pleasant on the eyes
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 |
|---|---|---|
| punctuation.separator | #B19AFF79 | — |
| comment, string.quoted.docstring.multi.python, string.quoted.docstring.multi.python punctuation.definition.string.begin.python, string.quoted.docstring.multi.python punctuation.definition.string.end.python | #DABDFF96 | italic |
| string.quoted, string.template, punctuation.definition.string | #bab0ffcc | — |
| string.template meta.embedded.line | #b6b1b1 | — |
| variable | #AA00FFE2 | — |
| entity.name.variable | #68ff68 | — |
| variable.language | #FF8C00 | bold |
| variable.parameter | #00FFFFA2 | italic |
| storage.modifier | #710082 | — |
| storage.type | #AA00FFE2 | — |
| storage.type.format.python | #FF00DD93 | — |
| constant | #FF00DD93 | — |
| string.regexp | #eb8455 | — |
| constant.numeric | #DD00FFDB | — |
| constant.language | #FF00DD93 | — |
| constant.character.escape | #FF00DDD8 | — |
| entity.name | #B19AFF79 | — |
| entity.name.tag | #b78aff | — |
| punctuation.definition.tag | #8de4ff | — |
| entity.other.attribute-name | #ff3bef | — |
| entity.other.attribute-name.html | #77b7ff | italic |
| entity.name.type, meta.attribute.class.html | #7A17E4 | — |
| entity.other.inherited-class | #FF00DD | — |
| entity.name.function, variable.function | #FF00DDD8 | — |
| keyword.control.export.js, keyword.control.import.js | #ff3bef | — |
| constant.numeric.decimal.js | #ff607b | — |
| keyword | #7a53d4 | — |
| keyword.control | #710082 | — |
| keyword.control, source.css | #710082 | — |
| keyword.operator | #8269FC | — |
| entity.name.tag.template.html, source.vue | #50bbe6 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical | #8269FC | — |
| keyword.other.unit | #ff7b9c9f | — |
| support | #00FFFFA2 | — |
| support.function | #00FFFFA2 | — |
| support.variable | #7A17E4 | — |
| meta.object-literal.key, support.type.property-name | #ff7ff6d3 | — |
| punctuation.separator.key-value | #FF00DD | — |
| punctuation.section.embedded | #53d49e | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #FF00DD | — |
| support.type.property-name.css, support.type.property-name.json | #01b7ffe6 | — |
| switch-block.expr.js | #FF00DD | — |
| variable.other.constant.property.js, variable.other.property.js | #00FFFFA2 | — |
| constant.other.color | #ff7b9c9f | — |
| support.constant.font-name | #ff7b9c9f | — |
| entity.other.attribute-name.id | #53abd4 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #d45393 | — |
| support.function.misc.css | #d45353 | — |
| markup.heading, entity.name.section | #7A17E4 | — |
| text.html, keyword.operator.assignment | #DABDFF96 | — |
| markup.quote | #b6b1b1cc | italic |
| beginning.punctuation.definition.list | #7A17E4 | — |
| markup.underline.link | #FF00DD | — |
| string.other.link.description | #7520BFFE | — |
| meta.function-call.generic.python | #FF00DDD8 | — |
| variable.parameter.function-call.python | #8269FC | — |
| storage.type.cs | #FF00DD | — |
| entity.name.variable.local.cs | #7A17E4 | — |
| entity.name.variable.field.cs, entity.name.variable.property.cs | #7A17E4 | — |
| constant.other.placeholder.c | #FF00DD | italic |
| keyword.control.directive.include.c, keyword.control.directive.define.c | #FF00DD | — |
| storage.modifier.c | #FF00DD | — |
| source.cpp keyword.operator | #53d49e | — |
| constant.other.placeholder.cpp | #FF00DD | italic |
| keyword.control.directive.include.cpp, keyword.control.directive.define.cpp | #FF00DD | — |
| storage.modifier.specifier.const.cpp | #FF00DD | — |
| source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir | #00FFFFA2 | — |
| source.elixir entity.name.function | #FF00DD | — |
| source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir | #00FFFFA2 | — |
| source.elixir punctuation.definition.string | #FF00DD | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #FF00DD | — |
| source.elixir .punctuation.binary.elixir | #7A17E4 | italic |
| entity.global.clojure | #00FFFFA2 | bold |
| storage.control.clojure | #00FFFFA2 | italic |
| meta.metadata.simple.clojure, meta.metadata.map.clojure | #FF00DD | italic |
| meta.quoted-expression.clojure | — | italic |
| meta.symbol.clojure | #7A17E4 | — |
| source.go | #7A17E4 | — |
| source.go meta.function-call.go | #00FFFFA2 | — |
| source.go keyword.package.go, source.go keyword.import.go, source.go keyword.function.go, source.go keyword.type.go, source.go keyword.const.go, source.go keyword.var.go, source.go keyword.map.go, source.go keyword.channel.go, source.go keyword.control.go | #53d49e | — |
| source.go storage.type, source.go keyword.struct.go, source.go keyword.interface.go | #FF00DD | — |
| source.go constant.language.go, source.go constant.other.placeholder.go, source.go variable | #00FFFFA2 | — |
| markup.underline.link.markdown, markup.inline.raw.string.markdown | #FF00DD | italic |
| string.other.link.title.markdown | #AA00FF | — |
| markup.heading.markdown, entity.name.section.markdown | #7A17E4 | bold |
| markup.italic.markdown | #00FFFFA2 | italic |
| markup.bold.markdown | #00FFFFA2 | bold |
| punctuation.definition.quote.begin.markdown, markup.quote.markdown | #FF00DD | — |
| source.dart, source.python, source.scala | #B19AFF79 | — |
| string.interpolated.single.dart | #ff7b9c9f | — |
| variable.parameter.dart | #FF00DD | — |
| constant.numeric.dart | #00FFFFA2 | — |
| variable.parameter.scala | #00FFFFA2 | — |
| meta.template.expression.scala | #FF00DD | — |
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}!`;
}