Devapix logo
Docs
Close

Getting icons: Theme

theme is an optional property that can be specified by the key theme or t. Its values can be dark or d, and light or l. This property has priority over color, in other words, if both properties are present only theme will work.

Like color, this property only works on icons with one color, therefore if the default icon has more than one color it returns the plain icon instead.

?[ICON_NAME]&theme=dark?[ICON_NAME]&t=d
Double click to copy

Examples

Request
https://devapix.vercel.app/api?p5js&theme=dark
Double click to copy
Response
p5js

Request
https://devapix.vercel.app/api?p5js&t=l
Double click to copy
Response
p5js