Predawn Theme Kit
Publisher: MicrosoftThemes in package: 3
Predawn themes for VS Code. Based on the TextMate themes.
Predawn themes for VS Code. Based on the TextMate themes.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #dddddd | — |
| text.html.markdown | #dddddd | — |
| markup.heading, punctuation.definition.heading.markdown | #F18260 | bold |
| markup.bold, markup.bold.markdown | #f1f1f1 | bold |
| markup.italic, markup.italic.markdown | #f1f1f1 | italic |
| , markup.italic markup.bold, , markup.bold markup.italic, , markup.italic.markdown markup.bold.markdown, , markup.bold.markdown markup.italic.markdown, , markup.bold.markdown markup.italic, , markup.italic markup.bold.markdown, , markup.bold markup.italic.markdown, | #f1f1f1 | bold italic |
| , text.html.markdown markup.quote.markdown entity.name.tag, , text.html.markdown markup.quote.markdown meta.tag, , text.html.markdown markup.quote.markdown meta.tag punctuation.definition.tag, , text.html.markdown markup.quote.markdown meta.tag string.quoted meta.string-contents, , text.html.markdown markup.quote.markdown meta.tag string.quoted punctuation.definition.string, , text.html.markdown markup.quote.markdown meta.tag entity.other.attribute-name, , text.html.markdown markup.quote.markdown markup.kbd.content.markdown, , text.html.markdown markup.quote.markdown meta.link.inline.markdown, | #4c4c4c | — |
| , markup.quote.markdown, , text.html.markdown markup.quote.markdown markup.bold, , text.html.markdown markup.quote.markdown markup.bold.markdown, , text.html.markdown markup.quote.markdown markup.italic, , text.html.markdown markup.quote.markdown markup.italic.markdown, , text.html.markdown markup.quote.markdown text.html.markdown, , text.html.markdown markup.quote.markdown text.markdown, , text.html.markdown markup.quote.markdown string.other.link.title.markdown, | #777777 | — |
| punctuation.definition.blockquote.markdown | #4c4c4c | — |
| meta.link.inline.markdown | #4c4c4c | — |
| string.other.link.title.markdown | #bddcdc | — |
| meta.image.inline.markdown | #ecec89 | bold |
| constant.character, string, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, | #92bfbf | normal |
| meta.header.multimarkdown, keyword.other.multimarkdown, string.unquoted.multimarkdown, punctuation.separator.key-value.multimarkdown | #444444 | — |
| , source.smarty.embedded.html, , text.html.markdown meta.disable-markdown entity.name.tag, , text.html.markdown meta.disable-markdown meta.tag, , text.html.markdown meta.disable-markdown meta.tag punctuation.definition.tag, , text.html.markdown meta.disable-markdown meta.tag string.quoted meta.string-contents, , text.html.markdown meta.disable-markdown meta.tag string.quoted punctuation.definition.string, , text.html.markdown meta.disable-markdown meta.tag entity.other.attribute-name, , text.html.markdown meta.paragraph.markdown entity.name.tag, , text.html.markdown meta.paragraph.markdown meta.tag, , text.html.markdown meta.paragraph.markdown meta.tag punctuation.definition.tag, , text.html.markdown meta.paragraph.markdown meta.tag string.quoted meta.string-contents, , text.html.markdown meta.paragraph.markdown meta.tag string.quoted punctuation.definition.string, , text.html.markdown meta.paragraph.markdown meta.tag entity.other.attribute-name, , text.html.markdown markup.list entity.name.tag, , text.html.markdown markup.list meta.tag, , text.html.markdown markup.list meta.tag punctuation.definition.tag, , text.html.markdown markup.list meta.tag string.quoted meta.string-contents, , text.html.markdown markup.list meta.tag string.quoted punctuation.definition.string, , text.html.markdown markup.list meta.tag entity.other.attribute-name, , markup.underline, , markup.underline.link.markdown, , constant.other.reference.link.markdown, , meta.image.reference.markdown, | #4c4c4c | — |
| markup.kbd.content.markdown | #151515 | — |
| punctuation.definition.metadata.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.constant.markdown, punctuation.separator.key-value.markdown, punctuation.definition.constant.begin.markdown, punctuation.definition.constant.end.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.strikethrough.markdown, | #4c4c4c | — |
| , constant, | #4c4c4c | — |
| #f49d62 | — | |
| markup.raw.block.markdown | #999999 | — |
| markup.raw.inline.markdown | #999999 | — |
| keyword.operator | #f49d62 | |
| keyword, storage | #f49d62 | |
| storage.type, support.type | #ecec89 | — |
| entity.name.function, support.function | #92bfbf | — |
| entity.name.type, entity.other.inherited-class, support.class | #ecec89 | |
| entity.name.exception | #cf5340 | — |
| constant.numeric, markup.raw.block.markdown constant | #ecec89 | — |
| punctuation | #f1f1f1 | |
| markup.raw.block.markdown entity | #b4d388 | — |
| punctuation.definition.tag | #92bfbf | — |
| constant.character.entity | #f49d62 | — |
| entity.other.attribute-name, text.html.markdown meta.disable-markdown meta.tag.block.any.html string.quoted.double.html, text.html.markdown meta.disable-markdown meta.tag.block.any.html string.quoted.double.html punctuation.definition | #ecec89 | |
| meta.tag string.quoted, meta.tag string.quoted constant.character.entity | #bddcdc | — |
| meta.tag string punctuation, punctuation.definition.entity.html | #bddcdc | — |
| markup.deleted.git_gutter | #CF5340 | — |
| markup.changed.git_gutter | #92BFBF | — |
| markup.inserted.git_gutter | #B4D388 | — |
| markup.ignored.git_gutter | #777777 | — |
| markup.untracked.git_gutter | #777777 | — |
| wordhighlight | #f49d62 | — |
| brackethighlighter.default | #f49d62 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}