Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HTML render of colors #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

skybldev
Copy link

@skybldev skybldev commented Aug 14, 2022

Addresses #25 and #13.

Problem:

colors.svg breaks on different devices using different fonts because individual elements use fixed geometry and position. Previous attempts to fix this only display correctly on the fonts that the PR authors have available on their devices, but still break.

I use this theme in a lot of my configs and it's become pretty annoying to have to colorpick every color instead of copying it from the SVG.

Solution:

This PR adds a script that generates an HTML render of the colors for consistent, not-broken viewing across devices. Plus, everything is copy-able.

Before merging, the link will be replaced with: https://htmlpreview.deno.dev/?url=https://raw.githubusercontent.com/ayu-theme/ayu-colors/master/colors.html

EDIT: Link broke, you can view it here now (or just download it from my repo if you want) https://skybldev.eu.org/d/ayu-colors.html

- add HTML render of colors sincce SVG render breaks across devices
  [scripts/build.html, colors.html]
- removed unnecessary import [scripts/build-svg.js]
- modified README.md to include link to HTML render
- added HTML render to npm scripts [package.json]
- forgot that HTML doesn't preview directly in GitHub
- the link to my repo is temporary and will be changed in the PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant