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

feat: explicit units for numbers #120

Open
zackbrown opened this issue Apr 21, 2020 · 2 comments
Open

feat: explicit units for numbers #120

zackbrown opened this issue Apr 21, 2020 · 2 comments
Labels
enhancement New feature or request Help desired We'd love help from the community
Projects

Comments

@zackbrown
Copy link
Member

No description provided.

@zackbrown zackbrown created this issue from a note in Roadmap (Inbox — add feature requests here) Apr 21, 2020
@zackbrown zackbrown added enhancement New feature or request Help desired We'd love help from the community labels Apr 21, 2020
@stale
Copy link

stale bot commented Jun 20, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 20, 2020
@stale stale bot closed this as completed Jun 28, 2020
Roadmap automation moved this from Inbox — add feature requests here to Completed Jun 28, 2020
@roperzh roperzh reopened this Aug 4, 2020
@stale stale bot removed the stale label Aug 4, 2020
@jnlsn
Copy link
Contributor

jnlsn commented Aug 21, 2020

@zackbrown I'm curious what you have in mind for this. I've been thinking some additional .diezrc config would be cool for specifying what unit you prefer by default (rem or px). Maybe even an option to set the default rem to something other than 16 when calculating values? Just spitballing here, but it might also be nice to have a generic spacing / sizing / unit prefab? Generic strings may cover that use case but I was thinking it could be useful to be able to specify a unit in px values like scale01: Unit.px(24) and then get the rem calculated result as scale01.rem or scale01.px. Only rem or px would output in scss/css depending on your diezrc preference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Help desired We'd love help from the community
Projects
Roadmap
  
Completed
Development

No branches or pull requests

3 participants