Juno Theme
Publisher: Jeff LamThemes in package: 2
A cosy light and vibey dark code theme inspired by the light yellow tint from Anthropic and dark neon glow of cyberpunk cities.
A cosy light and vibey dark code theme inspired by the light yellow tint from Anthropic and dark neon glow of cyberpunk cities.
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 |
|---|---|---|
| — | #f8f8f2 | — |
| comment, punctuation.definition.comment, unused.comment, wildcard.comment | #6272a4 | italic |
| string.quoted.docstring.multi, string.quoted.docstring.multi.python punctuation.definition.string.begin, string.quoted.docstring.multi.python punctuation.definition.string.end, string.quoted.docstring.multi.python constant.character.escape | #6272a4 | — |
| string | #e85154 | — |
| constant.numeric | #ac80ff | — |
| constant.language | #ac80ff | — |
| constant.character, constant.other | #ac80ff | — |
| variable | — | |
| variable.other.readwrite.instance | #F9EAE1 | |
| constant.character.escaped, constant.character.escape, string source, string source.ruby | #f92472 | |
| source.ruby string.regexp.classic.ruby, source.ruby string.regexp.mod-r.ruby | #FF695A | |
| keyword | #f92472 | — |
| storage | #f92472 | |
| storage.type | #feb32b | — |
| storage.type.namespace | #feb32b | italic |
| storage.type.class | #f92472 | italic |
| entity.name.class | #feb32b | underline |
| meta.path | #50FA7B | underline |
| entity.other.inherited-class | #feb32b | italic underline |
| entity.name.function, meta.function-call.generic, meta.function-call.object, meta.function-call.php, meta.function-call.static, meta.method-call.java meta.method, meta.method.groovy, support.function.any-method.lua, keyword.operator.function.infix | #6be5fd | |
| variable.parameter | #F9EAE1 | italic |
| entity.name.tag | #f92472 | |
| entity.other.attribute-name | #6be5fd | |
| support.function | #feb32b | |
| support.constant | #6be5fd | |
| support.type, support.class | #50FA7B | italic |
| support.other.variable | — | |
| support.other.namespace | #50FA7B | italic |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| meta.structure.dictionary.json string.quoted.double.json | #CFCFC2 | — |
| meta.diff, meta.diff.header | #6272a4 | — |
| markup.deleted | #f92472 | — |
| markup.inserted | #6be5fd | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #ac80ff | — |
| entity.name.filename | #E6DB74 | — |
| message.error | #F83333 | — |
| punctuation.definition.string.begin.json - meta.structure.dictionary.value.json, punctuation.definition.string.end.json - meta.structure.dictionary.value.json | #EEEEEE | — |
| meta.structure.dictionary.json string.quoted.double.json | #feb32b | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #e85154 | — |
| meta meta meta meta meta meta meta.structure.dictionary.value string | #6be5fd | — |
| meta meta meta meta meta meta.structure.dictionary.value string | #F9EAE1 | — |
| meta meta meta meta meta.structure.dictionary.value string | #f92472 | — |
| meta meta meta meta.structure.dictionary.value string | #ac80ff | — |
| meta meta meta.structure.dictionary.value string | #6be5fd | — |
| meta meta.structure.dictionary.value string | #F9EAE1 | — |
| markup.strike | #feb32b | italic |
| markup.bold | #feb32b | bold |
| markup.italic | #feb32b | italic |
| markup.heading | #8BE9FD | — |
| punctuation.definition.list_item.markdown | #F9EAE1 | — |
| markup.quote | #6272A4 | italic |
| punctuation.definition.blockquote.markdown | #6272A4 | italic |
| meta.separator | #6272A4 | — |
| text.html.markdown markup.raw.inline | #50FA7B | — |
| markup.underline | #e85154 | underline |
| markup.raw.block | #CFCFC2 | — |
| markup.raw.block.fenced.markdown source | #F8F8F2 | — |
| punctuation.definition.fenced.markdown, variable.language.fenced.markdown | #6272A4 | italic |
| variable.language.fenced.markdown | #6272A4 | italic |
| punctuation.accessor | #F9EAE1 | — |
| meta.function.return-type | #F9EAE1 | — |
| punctuation.section.block.begin | #ffffff | — |
| punctuation.section.block.end | #ffffff | — |
| punctuation.section.embedded.begin | #f92472 | — |
| punctuation.section.embedded.end | #f92472 | — |
| punctuation.separator.namespace | #f92472 | — |
| variable.function | #6be5fd | — |
| variable.other | #ffffff | — |
| variable.language | #ac80ff | — |
| entity.name.module.ruby | #feb32b | — |
| entity.name.constant.ruby | #ac80ff | — |
| support.function.builtin.ruby | #ffffff | — |
| storage.type.namespace.cs | #f92472 | — |
| entity.name.namespace.cs | #feb32b | — |
| entity.name.type, keyword.primitive-datatypes.swift, keyword.type.cs, meta.protocol-list.objc, meta.return-type.objc, source.go storage.type, source.groovy storage.type, source.java storage.type, source.powershell entity.other.attribute-name, storage.class.std.rust, storage.type.attribute.swift, storage.type.c, storage.type.core.rust, storage.type.cs, storage.type.groovy, storage.type.objc, storage.type.php, storage.type.haskell, storage.type.ocaml | #8BE9FD | italic |
| constant.other.symbol.hashkey.ruby, keyword.operator.dereference.java, keyword.operator.navigation.groovy, meta.scope.for-loop.shell punctuation.definition.string.begin, meta.scope.for-loop.shell punctuation.definition.string.end, meta.scope.for-loop.shell string, storage.modifier.import, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx, punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx, punctuation.separator.list.comma.css, constant.language.empty-list.haskell | #F8F8F2 | — |
| source.shell variable.other | #feb32b | — |
| support.constant | #feb32b | normal |
| meta.scope.prerequisites.makefile | #50FA7B | — |
| meta.attribute-selector.scss | #50FA7B | — |
| punctuation.definition.attribute-selector.end.bracket.square.scss, punctuation.definition.attribute-selector.begin.bracket.square.scss | #F8F8F2 | — |
| meta.preprocessor.haskell | #6272A4 | — |
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}!`;
}