na2co3 Light Theme
Publisher: na2co3Themes in package: 1
Light color theme inspired by Chrome DevTools and others
Light color theme inspired by Chrome DevTools and others
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 | #229900 | — |
| keyword.control, storage | #8800ff | |
| keyword, support, variable.language | #006666 | — |
| constant.numeric | #0000cc | — |
| constant.language | #0066cc | — |
| string | #cc0000 | |
| keyword.operator | #886600 | — |
| storage.type.annotation, punctuation.definition.annotation, punctuation.definition.decorator, punctuation.decorator, entity.name.function.decorator, support.other.attribute, storage.modifier.attribute | #808000 | — |
| constant.character, string punctuation.definition.template-expression, string punctuation.definition.interpolation, punctuation.section.embedded | — | bold |
| invalid | #ff0000 | — |
| string.quoted.double.php variable.other.php, string.unquoted.heredoc.php variable.other.php | #0066ff | |
| string.regexp, constant.regexp | #cc5500 | — |
| variable.language.llvm | #222222 | — |
| meta.embedded, meta.interpolation, source.groovy.embedded, string meta.image.inline.markdown | #222222 | — |
| text.html meta.tag, text.xml meta.tag, entity.name.tag, punctuation.definition.tag | #bb0099 | — |
| entity.other.attribute-name | #aa6600 | — |
| entity.other.attribute-name.id.css, source.css.less entity.other.attribute-name.id | #aa6600 | bold |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #ee5500 | — |
| support.type.property-name.css, support.type.property-name.media.css, support.type.vendored.property-name.css | #990000 | — |
| constant.other.color.rgb-value, constant.other.rgb-value | #0000cc | — |
| keyword.other.important.css, keyword.other.important.scss | #006666 | bold |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #bb0099 | |
| source.cs keyword.other, keyword.declaration.dart, keyword.local.lua, keyword.other.rust, keyword.other.fn.rust | #8800ff | — |
| source.cs keyword.other, keyword.declaration.dart, keyword.local.lua, keyword.other.rust, keyword.other.fn.rust, source.sql keyword.other, source.swift keyword.other | #8800ff | — |
| storage.modifier.import.java, storage.modifier.package.java | #222222 | — |
| source.java storage.type | #006666 | — |
| markup.bold, markup.bold string.other.link.title.markdown | #0000aa | bold |
| markup.italic, markup.italic string.other.link.title.markdown | #0000aa | italic |
| markup.strikethrough, markup.strikethrough string.other.link.title.markdown | — | strikethrough |
| markup.heading, markup.heading string.other.link.title.markdown | #ff0088 | bold |
| punctuation.definition.list.begin.markdown | #0066cc | — |
| markup.quote, markup.quote string.other.link.title.markdown | #000088 | — |
| markup.inline.raw, markup.fenced_code | #cc0000 | — |
| markup.raw.block | #006000 | — |
| meta.link.inline.markdown, meta.link.reference.markdown, meta.link.reference.def.markdown, markup.underline.link, meta.image.inline.markdown | #0000ff | — |
| string.other.link.title.markdown | #222222 | — |
| markup.underline | — | underline |
| meta.separator | #000044 | bold |
| meta.diff.header | #8800ff | — |
| meta.diff.range | #886600 | — |
| markup.deleted | #dd0000 | — |
| markup.inserted | #009900 | — |
| markup.changed | #0000cc | — |
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}!`;
}