Saturn Theme
Publisher: Jessica CaoThemes in package: 1
A dark blue theme for VS Code, inspired by Halcyon.
A dark blue theme for VS Code, inspired by Halcyon.
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, punctuation.definition.commment | #beaa9a | italic |
| variable, string constant.other.placeholder, source | #C2C4C4 | — |
| storage.type, variable.other.constant, entity.name.constant | #E15A60 | — |
| variable.parameter | #C2C4C4 | — |
| storage.modifier, entity.name.type | #99B2DD | italic |
| variable.other, variable.other.readwrite, punctuation.definition.variable | #7DBCE0 | — |
| variable.annotation, punctuation.definition.annotation | #C2C4C4 | — |
| entity.name.function, meta.function-call | #C2C4C4 | — |
| variable.function, entity.name.function.constructor, entity.name.function.destructor | #875e8d | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.complex, constant.numeric.complex.real, constant.numeric.complex.imaginary, constant.language, constant.character, constant.character.escape, constant.other | #FAC863 | — |
| keyword.control, keyword.control.conditional, keyword.control.import, punctuation.definition.constant, punctuation.definition.keyword, keyword.other, meta.function.inline.other, punctuation.separator.property, punctuation.definition.entity, keyword.declaration | #B8B8FF | — |
| punctuation.definition.keyword, keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.bitwise, keyword.operator.word, meta.function.block.start.handlebars, support.constant.mathematical-symbols, meta.function.inline.other | #FAC863 | — |
| punctuation.section.embedded, keyword.other.template, keyword.other.substitution, meta.brace, meta.preprocessor, meta.jsx, meta.embedded.expression, meta.template.expression | #FAC863 | — |
| punctuation.separator.continuation, punctuation.accessor | #FF0000 | — |
| string.quoted, punctuation.definition.string | #99C794 | — |
| entity.name.namespace | #685044 | — |
| invalid.illegal | #E60000 | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #6ddaac | — |
| entity.name.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html | #FFAE57 | — |
| markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, entity.name.section.markdown, meta.attribute-selector | #99C794 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name, support.type.property-name, support.variable.object.node, support.variable.object.process | #137a7a | — |
| *url, *link, *uri* | — | underline |
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}!`;
}