Dynamic Theme
Publisher: rodydavisThemes in package: 6
Generate a dynamic theme based on the new material design color space for the current theme.
Generate a dynamic theme based on the new material design color space for the current theme.
Full workbench mockup using this variant's colors and tokenColors.
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, punctuation.definition.comment | #006684 | italic |
| comment.block.preprocessor | #006684 | |
| comment.documentation, comment.block.documentation | #006d36 | — |
| invalid.illegal | #a6364b | — |
| keyword.operator | #006874 | — |
| keyword, storage | #4359ab | — |
| storage.type, support.type | #7447ac | — |
| constant.language, support.constant, variable.language | #99461c | — |
| variable, support.variable | #7447ac | — |
| entity.name.function, support.function | #a8334f | bold |
| entity.name.type, entity.other.inherited-class, support.class | #7447ac | bold |
| entity.name.exception | #a6364b | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #99461c | — |
| string | #006d36 | — |
| constant.character.escape | #006874 | — |
| string.regexp | #4359ab | — |
| constant.other.symbol | #99461c | — |
| punctuation | #006874 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #006684 | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #3b5ba9 | — |
| entity.name.tag | #4359ab | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #3b5ba9 | italic |
| constant.character.entity, punctuation.definition.entity | #99461c | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #7447ac | — |
| meta.property-name, support.type.property-name | #99461c | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #006d36 | — |
| keyword.other.important | — | bold |
| markup.changed | #984061 | — |
| markup.deleted | #984061 | — |
| markup.italic | — | italic |
| markup.error | #a6364b | — |
| markup.inserted | #984061 | — |
| meta.link | #4359ab | — |
| markup.output, markup.raw | #006874 | — |
| markup.prompt | #006874 | — |
| markup.heading | #a8334f | — |
| markup.bold | — | bold |
| markup.traceback | #a6364b | — |
| markup.underline | — | underline |
| markup.quote | #7447ac | — |
| markup.list | #4359ab | — |
| markup.bold, markup.italic | #006d36 | — |
| markup.inline.raw | #99461c | |
| meta.diff.range, meta.diff.index, meta.separator | #006874 | — |
| meta.diff.header.from-file | #006874 | — |
| meta.diff.header.to-file | #006874 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
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}!`;
}