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 “name” arg for more-concise CSS #13

Open
arrowtype opened this issue Feb 11, 2021 · 0 comments
Open

Add “name” arg for more-concise CSS #13

arrowtype opened this issue Feb 11, 2021 · 0 comments

Comments

@arrowtype
Copy link

From a Twitter thread:

@arrowtype: Could the tool allow an abbreviation of the family name? “Recursive Sans Linear Light” is pretty long. 😅

I think the full name picks up local fonts, right? Even if this is the goal, it might make sense to abbreviate the class names. I suppose a user could find/replace, though.

@PixelAmbacht: For the class/variable name, maybe passing a "CSS name" would be cool. Like -n "boink" to get --boink-liga.

That seems useful!

Also, potentially, the @font-face could have font-family: "boink";. But, alternatively, the CSS could give users a shortened CSS variable to use for the long font name, like var(--boink).

I do recognize that there may be edge cases wherein a user might want to pass in two fonts, and perhaps the short names could clash. This would probably have to help users avoid that, if it is possible.

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

No branches or pull requests

1 participant