Skip to content

Support, aggregate and distribute @function #549

Open
@argyleink

Description

@function --light-dark(--light, --dark) {
	result: var(--light);
	
	@container style(--theme: dark) {
		result: var(--dark);
	}
	
	@container style(--theme: system) {
		@media (prefers-color-scheme: dark) {
			result: var(--dark);
		}
	}
}

Creating a way to import these and even postcss-jit-prop them, will be amazing

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions