This endpoint exposes system themes, a list of custom color sets.
URL: /themes
Method: GET
Code : 200 OK
Content: [theme]
where theme
is defined as:
{
"name": "string",
"light": "styles",
"dark": "styles"
}
Where styles
is an object with the following properties:
{
"selectorStyle": "style",
"symbolStyle": "style",
"argumentStyle": "style",
"temporaryStyle": "style",
"assignmentStyle": "style",
"stringStyle": "style",
"variableStyle": "style",
"metaStyle": "style",
"bracketStyle": "style",
"selfStyle": "style",
"superStyle": "style",
"trueStyle": "style",
"falseStyle": "style",
"nilStyle": "style",
"thisContextStyle": "style",
"returnStyle": "style",
"globalStyle": "style",
"numberStyle": "style",
"commentStyle": "style"
}
and style
has the form:
{
"color": "string",
"italic": "boolean",
"bold": "boolean"
}
with color
being an RGBA color in HEX format.
If style is omitted a default style will be used.
Example:: Pharo themes GET /themes
.
[
{
"name": "Tango",
"light": {
"commentStyle": {
"color": "#888a85"
},
"returnStyle": {
"color": "#000000",
"bold": true
},
"variableStyle": {
"color": "#204a87"
},
"temporaryStyle": {
"color": "#888a85",
"italic": true
},
"argumentStyle": {
"color": "#555753",
"italic": true
},
"symbolStyle": {
"color": "#c4a000"
},
"stringStyle": {
"color": "#ce5c00"
},
"globalStyle": {
"color": "#5c3566",
"bold": true
},
"numberStyle": {
"color": "#8f5902"
},
"selector": {
"color": "#000000",
"bold": true
},
"trueStyle": {
"color": "#8F5902"
},
"falseStyle": {
"color": "#8F5902"
},
"nilStyle": {
"color": "#8F5902"
},
"selfStyle": {
"color": "#4d9a06"
},
"superStyle": {
"color": "#4d9a06"
},
"thisContextStyle": {
"color": "#4d9a06"
}
}
}
]