ICE CUBE 🧊
Publisher: ncfrakThemes in package: 2
VS Code them for my frozen community 🧊
VS Code them for my frozen community 🧊
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 |
|---|---|---|
| — | #5C6166 | — |
| comment | #787b8099 | italic |
| string.regexp, constant.character, constant.other, text.html.markdown markup.inline.raw, punctuation.accessor | #C46E6E | — |
| support.constant, markup.quote | #C46E6E | italic |
| constant.numeric | #E32643 | — |
| constant.language | #03B591 | — |
| variable.language | #03B591 | italic |
| variable, variable.parameter.function-call, punctuation.section, punctuation.separator, punctuation.terminator, meta.embedded | #5C6166 | — |
| variable.member | #f07171 | — |
| keyword, storage, support.class.component, variable.parameter, meta.parameter | #470FF4 | — |
| source.java storage.type, source.haskell storage.type, source.c storage.type, storage.type.js | #3208AF | — |
| entity.name.type.class | #3208AF | bold |
| meta.decorator.js, entity.name.section.markdown, markup.heading.markdown | #3208AFaa | — |
| variable.other.constant.object.js, variable.other.object.js, keyword.operator | #050066 | — |
| entity.name.function | #0ea1d6 | — |
| support.function, support.macro | #f07171 | — |
| invalid | #e65050 | — |
| source.ruby variable.other.readwrite, variable.function, variable.annotation, meta.function-call.generic, support.function.go, markup.list punctuation.definition.list.begin | #14CCBD | — |
| source.css entity.name.tag, source.sass entity.name.tag, source.scss entity.name.tag, source.less entity.name.tag, source.stylus entity.name.tag, meta.decorator variable.other, meta.decorator punctuation.decorator, storage.type.annotation, entity.name, entity.name.import, entity.name.package, string, constant.other.symbol, markup.inline.raw.string.markdown, markup.fenced_code.block.markdown, entity.name.filename.find-in-files, meta.diff, meta.diff.header | #B77B9F | — |
| markup.heading, markup.heading entity.name | #B77B9F | bold |
| source.css support.type, source.sass support.type, source.scss support.type, source.less support.type, source.stylus support.type, constant.numeric.line-number.find-in-files - match | #787b8099 | — |
| support.type.property-name, constant.numeric.line-number.match, markup.underline.link, string.other.link, markup.bold.markdown, markup.table, punctuation.definition.template-expression, support.type, support.class, source.go storage.type, entity.other.attribute-name, entity.name.tag, meta.tag.sgml, storage.type.function, source.java storage.type.primitive, entity.other.inherited-class, punctuation.section.embedded, variable.other.property.js, punctuation.definition.tag.end, punctuation.definition.tag.begin, punctuation.definition.tag | #0B81AD | — |
| message.error | #e65050 | — |
| markup.italic | #f07171 | italic |
| markup.bold | #f07171 | bold |
| markup.italic markup.bold, markup.bold markup.italic | — | bold italic |
| meta.separator | #787b8099 | bold |
| markup.inserted | #6cbf43 | — |
| markup.changed | #478acc | — |
| markup.deleted | #ff7383 | — |
| markup.strike | #e6ba7e | — |
| text.html.markdown meta.dummy.line-break | #787b8099 | — |
| punctuation.definition.markdown | #787b8099 | — |
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}!`;
}