Tokyo Night Bright
Publisher: danarnoldThemes in package: 1
A VS Code color theme inspired by tokyonight.nvim and tokyonight-vscode, using the brighter palette of tokyonight.nvim to create a higher contrast theme.
A VS Code color theme inspired by tokyonight.nvim and tokyonight-vscode, using the brighter palette of tokyonight.nvim to create a higher contrast theme.
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 | #565f89 | italic |
| string, constant.other.symbol | #9ece6a | — |
| constant.numeric, constant.language.boolean | #ff9e64 | — |
| variable, variable.other | #c0caf5 | — |
| keyword, storage.type, storage.modifier | #bb9af7 | — |
| entity.name.function, support.function | #7aa2f7 | — |
| entity.name.class, entity.name.type.class | #c0caf5 | — |
| entity.name.tag, support.class.component | #f7768e | — |
| constant.language, support.constant | #ff9e64 | — |
| support.type.property-name, variable.other.property | #7dcfff | — |
| punctuation, meta.brace, meta.delimiter | #89ddff | — |
| invalid | #ff9e64 | — |
| invalid.illegal | #f7768e | — |
| markup.heading, markup.heading.markdown | #7aa2f7 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| markup.quote | #e0af68 | — |
| markup.raw, markup.inline.raw | #b4f9f8 | — |
| markup.inserted | #9ece6a | — |
| markup.deleted | #f7768e | — |
| markup.changed | #e0af68 | — |
| markup.list | #ff9e64 | — |
| meta.object-literal.key, support.type.property-name.json | #7dcfff | — |
| variable.parameter | #e0af68 | — |
| variable.language | #bb9af7 | — |
| constant.character.escape | #bb9af7 | — |
| entity.other.attribute-name | #7dcfff | — |
| entity.other.attribute-name.class | #c0caf5 | — |
| entity.other.attribute-name.id | #7aa2f7 | — |
| entity.other.attribute-name.pseudo-class | #bb9af7 | — |
| entity.other.attribute-name.pseudo-element | #bb9af7 | — |
| entity.other.attribute-name.namespace | #7dcfff | — |
| storage | #bb9af7 | — |
| storage.type | #bb9af7 | — |
| storage.modifier | #bb9af7 | — |
| support.class | #c0caf5 | — |
| support.constant | #ff9e64 | — |
| support.variable | #c0caf5 | — |
| support.function | #7aa2f7 | — |
| support.type | #2ac3de | — |
| support.type.property-name | #7dcfff | — |
| punctuation.definition.string | #9ece6a | — |
| punctuation.definition.variable | #c0caf5 | — |
| punctuation.section.embedded | #7aa2f7 | — |
| punctuation.section.class.begin | #bb9af7 | — |
| punctuation.section.class.end | #bb9af7 | — |
| punctuation.section.block.begin | #89ddff | — |
| punctuation.section.block.end | #89ddff | — |
| punctuation.terminator | #89ddff | — |
| punctuation.separator | #89ddff | — |
| punctuation.accessor | #89ddff | — |
| keyword.operator | #89ddff | — |
| keyword.control | #bb9af7 | — |
| keyword.other | #bb9af7 | — |
| constant.other.color | #7aa2f7 | — |
| markup.inserted.diff | #9ece6a | — |
| markup.deleted.diff | #f7768e | — |
| markup.changed.diff | #e0af68 | — |
| meta.diff.header | #7aa2f7 | — |
| meta.diff.range | #7aa2f7 | — |
| meta.diff.index | #bb9af7 | — |
| meta.diff.header.from-file | #7aa2f7 | — |
| meta.diff.header.to-file | #7aa2f7 | — |
| meta.diff.header.git | #7aa2f7 | — |
| meta.diff.header.git.commit | #bb9af7 | — |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
| markup.inline.raw.markdown | #b4f9f8 | — |
| markup.quote.markdown | #e0af68 | — |
| markup.heading.setext.1.markdown | #7aa2f7 | bold |
| markup.heading.setext.2.markdown | #e0af68 | bold |
| markup.heading.markdown punctuation.definition.heading.markdown | #7aa2f7 | — |
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}!`;
}