Placard
Publisher: Milad FathyThemes in package: 1
A Beautiful Dark Color Theme For VSCode Insider
A Beautiful Dark Color Theme For VSCode Insider
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 |
|---|---|---|
| Global settings | #97a7c8ff | — |
| comment | #69768a | — |
| string | #37E7AC | — |
| string.unquoted.html, string.quoted.double.js, string.quoted.single.html, constant.other.symbol, entity.other.inherited-class | #B3D667 | — |
| string.quoted.single.js | #70F49C | — |
| support.variable.dom.js | #59f2f7 | — |
| variable.other.constant.js, variable.other.constant.object.js, variable.other.constant.property.js | #f0ab65 | — |
| constant.numeric | #58b4ff | — |
| constant.language | #FFE792 | — |
| constant.character, constant.other | #AC58FF | — |
| variable | #B7C6DA | — |
| keyword | #E95293 | — |
| storage | #FF5BA2 | — |
| storage.type | #be5df7 | — |
| entity.name.class | #82C600 | — |
| entity.other.inherited-class | #82C600 | italic underline |
| variable.parameter | #85AC3A | — |
| entity.name.tag | #00B2FF | — |
| entity.other.attribute-name, string.quoted.double.json | #fed404ea | — |
| , entity.other.attribute-name.class.css | #c34ef1c7 | — |
| meta.tag.other, entity.name.tag.style, entity.name.tag.script, meta.tag.block.script, source.js.embedded punctuation.definition.tag.html, source.css.embedded punctuation.definition.tag.html | #1ab2f8 | — |
| meta.tag.metadata.meta.void.html,punctuation.separator.key-value.html | #FED604 | — |
| variable.language.this.js, variable.language.this.ts, entity.name.type | #f859b1 | — |
| entity.other.attribute-name.id.html | #f64ab475 | — |
| entity.name.function.js, entity.name.function.method.js, entity.name.accessor.js, entity.name.class.js | #f39163 | — |
| support.class.builtin.js, entity.name.type.class.js | #f859b1 | — |
| variable.parameter.js, constant.other.object.key.js, variable.other.readwrite.js, punctuation.definition.parameters.begin.js, punctuation.definition.parameters.end.js, meta.object-literal.key.js, meta.array.literal.js, meta.brace.round.js, punctuation.definition.block.js, meta.objectliteral.js | #ff9e9e | — |
| constant.language.boolean.false.js, constant.language.boolean.true.js | #ea80e1 | — |
| support.variable.property.dom.js, entity.name.type.new.js | #e76572 | — |
| punctuation.definition.tag.html, punctuation.definition.tag.begin, punctuation.definition.tag.end | #0587c4 | — |
| meta.tag string -source -punctuation, text source text meta.tag string -punctuation | #37E7AC | — |
| punctuation.section.embedded -(source string source punctuation.section.embedded), meta.brace.erb.html | #D0B344 | — |
| meta.toc-list.id | #88F2AF | — |
| string.quoted.double.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html, string.quoted.double.handlebars | #37E7AC | — |
| entity.other.attribute-name.id | #fa66bca6 | — |
| support.type.property-name.css | #E26674 | — |
| entity.other.attribute-name.id.css | #ff58bfcc | — |
| keyword.other.unit | #FF9E9E | — |
| entity.name.tag.css, meta.selector.css | #fb7c4adc | — |
| keyword.control.at-rule.media.css | #ab54fd | — |
| constant.other.color.rgb-value.hex.css | #E26674 | — |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #FF9E9E | — |
| support.constant.color.current.css | #FF9E9E | — |
| constant.numeric.css | #FF9E9E | — |
| support.function | #fe9e71 | — |
| support.constant | #E76572 | — |
| support.type, support.class | #E26674 | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #d8d8d8 | — |
| none | #d8d8d8 | — |
| keyword.operator | #40f0f7 | — |
| keyword | #0088ff | — |
| variable, meta.selector.css | #E26674 | — |
| entity.name.function, meta.require, support.function.any-method | #FF9E9E | — |
| support.class, entity.name.class, entity.name.type.class | #E76572 | — |
| meta.class | #f8f8f8 | — |
| keyword.other.special-method | #7cafc2 | — |
| storage | #ba8baf | — |
| constant.numeric | #dc9656 | — |
| none | #e79c55 | — |
| none | #dc9656 | — |
| constant | #dc9656 | — |
| invalid.deprecated | #ffffff | — |
| meta.diff, meta.diff.header | #655c2d | — |
| markup.deleted | #FF5BA2 | — |
| markup.inserted | #82C600 | — |
| markup.changed | #ffff63 | — |
| punctuation.section.embedded.begin.php | #aa95f7 | — |
| punctuation.section.embedded.end.php | #aa95f7 | — |
| punctuation.definition.variable | #E26674 | — |
| entity.name.filename.find-in-files | #ffff63 | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| keyword.other.sql, keyword | #b267e6 | — |
| support.function.table.sql, source.sql | #37E7AC | — |
| keyword.operator.comparison.sql, source.sql | #f44747 | — |
| keyword.other.DML.sql | #f8ec40 | — |
| source.sql | #0C88FF | — |
| variable.scss | #CC6699 | — |
| meta.definition.variable.scs | #E26662 | — |
| source.css.scss | #CC6699 | — |
| keyword.control.at-rule.include.scss | #f53f32 | — |
| keyword.control.at-rule.mixin.scss | #f53f32 | — |
| keyword.control.at-rule.use.scss | #f53f32 | — |
| entity.name.function.scss | #f53f32 | — |
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}!`;
}