Fjord Theme
Publisher: jshuntleyThemes in package: 1
A Nordic color theme — dusk-blue base, leaf-green accents, crisp blue/cyan separation.
A Nordic color theme — dusk-blue base, leaf-green accents, crisp blue/cyan separation.
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.comment | #6C7A86 | — |
| string, string.quoted, meta.template.expression string | #9DD99A | — |
| constant.character.escape | #B8E7E9 | — |
| constant.numeric | #7BB8FF | — |
| constant, variable.other.constant | #7BB8FF | — |
| keyword | #5DA6EA | — |
| storage, storage.type, storage.modifier | #9DD99A | — |
| keyword.directive, keyword.control.directive, meta.preprocessor, keyword.preprocessor, keyword.preprocessor.c, meta.preprocessor.directive.include, meta.preprocessor.directive.pragma, punctuation.definition.preprocessor | #7BB8FF | — |
| keyword.control, keyword.control.conditional, keyword.control.loop, keyword.control.return, keyword.control.flow | #7BB8FF | — |
| keyword.control.directive, keyword.directive.c, keyword.control.directive.c | #7BB8FF | |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical, punctuation.separator.key-value | #7BB8FF | — |
| entity.name.function, support.function, meta.function-call, meta.function, variable.function | #B8E7E9 | — |
| entity.name.type.instance, entity.other.inherited-class | #5DA6EA | — |
| entity.name.type, support.type, support.class, entity.other.attribute-name.class | #5DA6EA | — |
| support.type.builtin, storage.type.builtin | #7BB8FF | — |
| variable, meta.definition.variable | #E8F0F3 | — |
| variable.other.property, variable.other.member | #B8E7E9 | — |
| variable.parameter | #E8F0F3 | — |
| variable.language.this, variable.language.this.js, variable.language.self | #B8E7E9 | — |
| keyword.operator.assignment, keyword.operator.logical, keyword.operator.arithmetic, punctuation.separator.key-value | #7BB8FF | — |
| punctuation, punctuation.definition.parameters, punctuation.section, punctuation.separator, meta.brace, meta.bracket | #E8F0F3 | — |
| entity.name.tag, support.class.component | #5DA6EA | — |
| entity.other.attribute-name, entity.other.attribute-name.id, meta.tag entity.other.attribute-name | #B8E7E9 | — |
| meta.decorator, storage.type.annotation, punctuation.decorator | #D4C6F7 | — |
| punctuation.special | #B8E7E9 | — |
| variable.builtin, variable.language | #B8E7E9 | — |
| function.special | #B8E7E9 | — |
| function.macro | #D4C6F7 | — |
| keyword.function | #5DA6EA | — |
| string.special, string.special.path | #5DA6EA | — |
| string.special.symbol | #F37C7C | — |
| entity.name.namespace | #5DA6EA | — |
| string.regexp | #B8E7E9 | — |
| invalid, invalid.illegal | #1B2C32 | — |
| invalid.deprecated | #1B2C32 | — |
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}!`;
}