Mil Theme
Publisher: milfordThemes in package: 1
milford color theme
milford color 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 |
|---|---|---|
| — | #bbbbbb | — |
| comment | #5c6773 | italic |
| punctuation.definition.string, constant.other.symbol | #5ccfe6 | — |
| string.regexp, constant.character, constant.other | #43CC9E | — |
| constant.numeric | #ddd799 | — |
| entity.other.attribute-name.tag.pug | #e6de90 | — |
| constant.language | #d5d588 | — |
| variable | #ea8650 | — |
| variable.other.property | #895b8a | — |
| variable.member | #f28779 | — |
| variable.language | #5ccfe6 | italic |
| storage | #e67eba | — |
| keyword.control | #bca7ff | — |
| keyword.control.at-rule | #ffccc688 | — |
| keyword.other.unit | #999 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.astro, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, meta.attribute.unrecognized.loading.html entity.other.attribute-name.html, meta.attribute.unrecognized.aria-label.html entity.other.attribute-name.html, meta.attribute.unrecognized.frameborder.html entity.other.attribute-name.html, meta.attribute.unrecognized.scrolling.html entity.other.attribute-name.html | #666 | — |
| keyword.other.important.scss, keyword.other.default.scss | #5ccfe680 | — |
| keyword.operator | #eeeeee | — |
| punctuation.separator, punctuation.terminator, attribute_value | #bbbbbbb3 | — |
| punctuation.section | #bbbbbb | — |
| punctuation.accessor | #bbbbbb | — |
| source.java storage.type, source.haskell storage.type, source.c storage.type | #73d0ff | — |
| entity.other.inherited-class | #73d0ff | — |
| storage.type.function | #ad7d4c | — |
| source.java storage.type.primitive | #5ccfe6 | — |
| entity.name.function.scss | #dddddd | — |
| entity.name.function.js, entity.name.function.ts | #cc99b7 | — |
| punctuation.definition.parameters | #937a7d | — |
| variable.parameter, meta.parameter | #cc4977 | — |
| variable.function, variable.annotation, meta.function-call.generic, support.function.go | #ffd580 | — |
| support.function, support.macro | #ddd362 | — |
| entity.name.import, entity.name.package | #bae67e | — |
| entity.name | #2ec7e6dd | — |
| string.quoted.double.html, string.quoted.astro, string.quoted.tsx, string.quoted.jsx | #ac7972 | — |
| entity.name.tag | #2d9fb6 | — |
| punctuation.definition.tag.end, punctuation.definition.tag.begin, punctuation.definition.tag | #5ccfe680 | — |
| meta.attribute-selector, entity.other.attribute-name.class, entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class, meta.attribute.class.html string.quoted.double.html, meta.attribute.class.astro string.quoted.astro, meta.attribute.class.tsx string.quoted.tsx, meta.attribute.class.jsx string.quoted.jsx | #c6677a | — |
| meta.attribute.src string.quoted.double, meta.attribute.src.html string.quoted.double.html, meta.attribute.srcset string.quoted.double, meta.attribute.srcset.html string.quoted.double.html, meta.attribute.alt string.quoted.double, meta.attribute.alt.html string.quoted.double.html, meta.attribute.src string.quoted.astro, meta.attribute.src.astro string.quoted.astro, meta.attribute.srcset string.quoted.astro, meta.attribute.srcset.astro string.quoted.astro, meta.attribute.alt string.quoted.astro, meta.attribute.alt.astro string.quoted.astro, meta.attribute.src string.quoted.tsx, meta.attribute.src.tsx string.quoted.tsx, meta.attribute.srcset string.quoted.tsx, meta.attribute.srcset.tsx string.quoted.tsx, meta.attribute.alt string.quoted.tsx, meta.attribute.alt.tsx string.quoted.tsx, meta.attribute.src string.quoted.jsx, meta.attribute.src.jsx string.quoted.jsx, meta.attribute.srcset string.quoted.jsx, meta.attribute.srcset.jsx string.quoted.jsx, meta.attribute.alt string.quoted.jsx, meta.attribute.alt.jsx string.quoted.jsx, meta.attribute.data-x.data-bg-sp string.quoted.double, meta.attribute.data-x.data-bg-sp.html string.quoted.double.html, meta.attribute.data-x.data-bg string.quoted.double, meta.attribute.data-x.data-bg.html string.quoted.double.html, meta.attribute.data-x.data-src.html string.quoted.double.html | #ddd362cc | — |
| meta.attribute.href.html string.quoted.double.html, meta.attribute.href.astro string.quoted.astro, meta.attribute.href.tsx string.quoted.tsx, meta.attribute.href.jsx string.quoted.jsx | #eb9b6fee | — |
| meta.attribute.unrecognized entity.other.attribute-name.html | #dd3954 | — |
| entity.other.attribute-name.id, meta.attribute.id.html string.quoted.double.html, meta.attribute.id.astro string.quoted.astro, meta.attribute.id.tsx string.quoted.tsx, meta.attribute.id.jsx string.quoted.jsx | #6592f9 | — |
| support.constant | #ddd362 | normal |
| support.type, support.class, source.go storage.type | #d0d0d0 | — |
| meta.decorator variable.other, meta.decorator punctuation.decorator, storage.type.annotation | #ffe6b3 | — |
| invalid | #ff3333 | — |
| meta.diff, meta.diff.header | #c594c5 | — |
| source.ruby variable.other.readwrite | #ff8a9a | — |
| 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, support.class.component.astro, support.class.component.tsx, support.class.component.jsx | #5ccfe6 | — |
| source.css support.type, source.sass support.type, source.scss support.type, source.less support.type, source.stylus support.type | #5c6773 | — |
| support.type.property-name.css | #DDDDDD | normal |
| support.type.property-name.json | #DDDDDD | — |
| meta.structure.dictionary.value.json punctuation.definition.dictionary.begin.json, meta.structure.dictionary.value.json punctuation.definition.dictionary.end.json, meta.structure.dictionary.value.json punctuation.definition.array.begin.json.comments, meta.structure.dictionary.value.json punctuation.definition.array.end.json.comments | #BBBBBB | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #AC7972 | — |
| support.type.property-name.json punctuation.support.type.property-name.begin.json, support.type.property-name.json punctuation.support.type.property-name.end.json | #5CCFE6 | — |
| constant.numeric.line-number.find-in-files - match | #5c6773 | — |
| constant.numeric.line-number.match | #ffa759 | — |
| entity.name.filename.find-in-files | #bae67e | — |
| message.error | #ff3333 | — |
| markup.heading, markup.heading entity.name | #bae67e | bold |
| markup.underline.link, string.other.link | #5ccfe6 | — |
| markup.italic | #f28779 | italic |
| markup.bold | #f28779 | bold |
| markup.italic markup.bold, markup.bold markup.italic | — | bold italic |
| markup.raw | — | — |
| markup.raw.inline | — | — |
| meta.separator | #5c6773 | bold |
| markup.quote | #95e6cb | italic |
| markup.list punctuation.definition.list.begin | #ffd580 | — |
| markup.inserted | #a6cc70 | — |
| markup.changed | #7592c9 | — |
| markup.deleted | #f27983 | — |
| markup.strike | #ffe6b3 | — |
| markup.table | #5ccfe6 | — |
| text.html.markdown markup.inline.raw | #f29e74 | — |
| text.html.markdown meta.dummy.line-break | #5c6773 | — |
| punctuation.definition.markdown | #5c6773 | — |
| meta.attribute.style.html source.css, entity.other.attribute-name.placeholder | #72CC82 | — |
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}!`;
}