Clowk
Publisher: thadeuThemes in package: 1
A cosmic dark theme inspired by nebulae and galaxies for Visual Studio Code and Cursor.
A cosmic dark theme inspired by nebulae and galaxies for Visual Studio Code and Cursor.
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, comment.block, comment.line, comment.block.documentation, punctuation.definition.comment | #4a4680 | italic |
| string, string.quoted, string.template, string.quoted.single, string.quoted.double, string.quoted.triple | #6ec89e | — |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.template.expression | #c2a6e2 | — |
| string.regexp, constant.other.character-class.regexp, punctuation.definition.character-class.regexp | #e0a5c5 | — |
| constant.numeric, constant.numeric.decimal, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary | #fbbf24 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #e0a5c5 | — |
| constant.other, constant.character | #e0a5c5 | — |
| keyword, keyword.control, keyword.control.conditional, keyword.control.loop, keyword.control.flow, keyword.control.trycatch, keyword.other | #c2a6e2 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default | #c2a6e2 | italic |
| keyword.control.return, keyword.control.yield, keyword.control.await | #c2a6e2 | — |
| storage.type | #c2a6e2 | italic |
| storage.modifier | #7aafe0 | italic |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.assignment, keyword.operator.ternary, keyword.operator.spread, keyword.operator.rest | #22d3ee | — |
| keyword.operator.arrow, storage.type.function.arrow | #c2a6e2 | — |
| entity.name.function, meta.function-call entity.name.function | #a78bfa | — |
| support.function, meta.function-call | #a78bfa | — |
| meta.method-call entity.name.function, entity.name.function.member | #a78bfa | — |
| variable.parameter, meta.function variable.parameter | #e0def4 | italic |
| variable, variable.other, variable.other.readwrite | #e0def4 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #e0def4 | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #e0a5c5 | italic |
| entity.name.type.class, entity.name.class, support.class | #fbbf24 | — |
| entity.other.inherited-class | #fbbf24 | italic |
| entity.name.type, entity.name.type.interface, entity.name.type.alias, entity.name.type.enum, support.type | #22d3ee | — |
| entity.name.type.parameter | #22d3ee | italic |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator | #fbbf24 | italic |
| entity.name.tag, support.class.component | #f87171 | — |
| entity.other.attribute-name | #fbbf24 | italic |
| string.quoted.double.html, string.quoted.single.html | #6ec89e | — |
| support.type.property-name.css, support.type.property-name.scss, meta.property-name | #7aafe0 | — |
| support.constant.property-value.css, constant.numeric.css, keyword.other.unit.css | #6ec89e | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css | #fbbf24 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #22d3ee | — |
| variable.scss, variable.sass | #a78bfa | — |
| constant.character.escape | #22d3ee | — |
| punctuation, meta.brace, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.array, punctuation.separator, punctuation.terminator | #6e6a86 | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #6e6a86 | — |
| support.type.property-name.json | #a78bfa | — |
| string.quoted.double.json | #6ec89e | — |
| heading.1.markdown entity.name, heading.2.markdown entity.name, heading.3.markdown entity.name, heading.4.markdown entity.name, heading.5.markdown entity.name, heading.6.markdown entity.name, markup.heading | #c2a6e2 | bold |
| markup.bold | #fbbf24 | bold |
| markup.italic | #e0a5c5 | italic |
| markup.inline.raw, markup.fenced_code | #22d3ee | — |
| markup.underline.link, string.other.link | #7aafe0 | — |
| punctuation.definition.list.begin.markdown | #fbbf24 | — |
| entity.name.tag.yaml | #a78bfa | — |
| keyword.key.toml, support.type.property-name.toml | #a78bfa | — |
| entity.other.attribute-name.table.toml, support.type.property-name.table.toml | #fbbf24 | — |
| variable.other.normal.shell, variable.other.special.shell, variable.other.positional.shell | #22d3ee | — |
| entity.name.function.target.makefile | #fbbf24 | — |
| keyword.other.special-method.dockerfile | #c2a6e2 | — |
| constant.language.symbol.ruby, constant.other.symbol.ruby | #22d3ee | — |
| support.function.magic.python | #a78bfa | italic |
| variable.parameter.function.language.special.self.python | #e0a5c5 | italic |
| entity.name.package.go | #fbbf24 | — |
| entity.name.type.lifetime.rust, punctuation.definition.lifetime.rust | #22d3ee | italic |
| entity.name.function.macro.rust | #e0a5c5 | — |
| invalid, invalid.deprecated | #f87171 | strikethrough |
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}!`;
}