@nl-design-system-community/theme-wizard-server
v1.1.1
Published
Web server with REST API for scraping websites to extract design tokens
Readme
Theme Wizard server
Try the server
Open the Swagger UI on http://localhost:9491/api/docs to use the server and see all the options in the REST API.
From a website URL to design tokens JSON
If you want to use the design for an existing website for a new project, you can use this convenient API to analyse the relevant CSS and return the result in Design Tokens JSON format. The result can contain the following types of tokens.
For example, use the following API to get a Design Tokens JSON with all design token values found in the CSS of a the website.
Example: http://localhost:9491/api/v1/css-design-tokens?url=https://example.com/
Get all CSS from a website URL
For example, use the following API to get a Design Tokens JSON with all design token values found in the CSS of a the website.
Example: http://localhost:9491/api/v1/css?url=https://example.com/
