Dandelion Theme
Publisher: AdoooneThemes in package: 1
Watercolor inspired theme.
Watercolor inspired 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 |
|---|---|---|
| comment, punctuation.definition.comment | #616060 | — |
| constant | #FDAD00 | — |
| entity | #00AEFF | — |
| keyword.control.import, keyword.control.export | #FDAD00 | — |
| keyword.control.default, keyword.control.from | #F27405 | italic |
| storage.type | #5FD7EC | italic |
| entity.name.type, entity.other.inherited-class | #22D7AA | — |
| variable.language.this, storage.type.class | #00FFBF | italic |
| entity.name.type.module | #21A795 | — |
| support.type.primitive | #21A795 | italic |
| storage.modifier.async, keyword.operator.new, variable.language.self.rust | #626BFF | italic |
| storage.modifier | #626BFF | italic bold |
| constant.language.null | #656565 | italic |
| Constant, storage.type.function, keyword.control.flow, keyword.control.conditional, keyword.other.rust, keyword.other.fn.rust, keyword.control.rust | #EB3C6C | italic bold |
| keyword.operator.comparison, storage.type.function.arrow, keyword.operator.ternary | #EB3C6C | bold |
| keyword.operator.arithmetic, keyword.operator.relational | #7aeA3C | bold |
| constant.language.boolean.true | #7FDA3C | italic bold |
| constant.language.boolean.false | #FF1D57 | italic bold |
| punctuation | #616060 | — |
| punctuation.definition.parameters, keyword.operator.type.annotation, keyword.operator.assignment | #616060 | — |
| entity.name.variable.parameter, meta.at-rule.function variable, meta.at-rule.mixin variable, meta.function.arguments, meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql, constant.numeric | #F27405 | italic bold |
| keyword.operator.logical, keyword.operator.type, variable.language.self.rust | #FDAD00 | italic bold |
| punctuation.definition.template-expression, variable.other.constant | #FDAD00 | — |
| storage | #8df | — |
| variable.parameter | #EB3C6C | italic bold |
| variable.other.object | #00D8FF | — |
| variable.other.object.property, variable.other.property | #fff | — |
| source.rust | #cbcbcb | — |
| variable.other.rust | #f2f2f2 | — |
| string, punctuation.definition.string | #42C251 | — |
| string.template, punctuation.definition.string.template | #42C251 | — |
| string.quoted.double.tsx | #42C251 | — |
| support | #00AEFF | — |
| support.function | #00AEFF | — |
| support.class.component.js | #00AEFF | — |
| variable | #fff | — |
| source.css, source.stylus, source.scss, entity.other.attribute-name.class.css | #EB3C6C | — |
| punctuation.definition.constant.css | #435AE0 | — |
| support.type.property-name.css | #fff | — |
| source.css punctuation.definition.keyword, source.css keyword.control, meta.property-list.css.sass.prop | #616060 | — |
| keyword.other.important.scss | #616060 | — |
| punctuation.definition.entity.css | #00AEFF | — |
| entity.other.attribute-name.pseudo-element.css | #435AE0 | — |
| support.function.misc.scss | #435AE0 | — |
| entity.other.attribute-name.id.css | #8df | — |
| entity.name.tag.css | #42C251 | — |
| source.css support, source.stylus support, source.css support.constant | #fff | — |
| source.stylus constant, source.css constant | #a8f | — |
| support.constant.property-value.css | #FDAD00 | — |
| keyword.other.unit.css, keyword.other.unit.px.css, keyword.other.unit.percentage.css, constant.other.color.rgb-value.hex.css, keyword.other.unit.ms.css, keyword.other.unit.s.css, keyword.other.unit.vh.css, keyword.other.unit.vw.css, keyword.other.unit.deg.css, keyword.other.unit.fr.css | #FDAD00 | — |
| source.css string, source.css punctuation.definition.string, source.stylus string, source.stylus punctuation.definition.string | #98EC65 | — |
| source.css variable, source.stylus variable | #FDAD00 | — |
| entity.other | #21A795 | — |
| entity.name.tag.block.any.html, entity.name.tag.inline.any.html, entity.name.tag.structure.any.html, entity.name.tag.html | #00AAEF | — |
| punctuation.definition.keyword, keyword.control | #FDAD00 | — |
| support.class.component | #22D7AA | — |
| entity.name.tag | #22D7AA | — |
| meta.toc-list.id.html | #36B359 | — |
| meta.tag.block.any.html, meta.tag.inline.any.html | #00AEFF | — |
| punctuation.definition.tag.end.html, punctuation.definition.tag.begin.html | #777 | — |
| text.html.basic, meta.jsx.children | #c3c3c3 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #36B35970 | — |
| meta.brace | #616060 | — |
| support.variable.property.dom | #00AEFF | — |
| source.json support | #fff | — |
| source.json string | #36B359 | — |
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}!`;
}