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

Gorko refactored to support @use and @forward #34

Open
wants to merge 215 commits into
base: main
Choose a base branch
from

Conversation

woodcox
Copy link

@woodcox woodcox commented Oct 4, 2022

I hope this is useful as sass moves to a module system. Please forgive the number of commits. It took some back and forth working this out.

@KreativeLabs
Copy link

Thank you for your work, I am in the same shoe, as I wanted to use this with my current project. Is there a way to merge this in the original repo? Or just download from your repo? I suppose you have the updated version.

@woodcox
Copy link
Author

woodcox commented Apr 10, 2024

Thanks, if you want to fork my repo its at - https://github.com/woodcox/gorko. I'm not planning to maintain it as I have moved on to a simple sass set up which leans into native css much more.

@KreativeLabs
Copy link

I also experimented with your repo for a few hours but decided to make the only needed sass/css classes with a few simple functions :) If your solution is public I would appreciate it if you can share it with me, because I think I can learn a lot from it. My current solution is like this:

$distances: (
	0: 0,
	6: 0.375rem,
	12: 0.75rem,
	18: 1.125rem,
	24: 1.5rem,
	30: 1.875rem,
	36: 2.25rem,
	42: 2.625rem,
	48: 3rem
);
@each $key, $val in $distances {
	$index: index($distances, $key $val);
	.padding-#{$key} {
		padding: $val;
	}
}

@woodcox
Copy link
Author

woodcox commented Apr 19, 2024

You may wish to look at https://github.com/saneef/postcss-design-token-utils. It’s essentially gorko converted to a postcss plugin.

templeman added a commit to modernadventure/gorko that referenced this pull request Feb 12, 2025
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.

2 participants