Skip to content

Conversation

@AdrianGonz97
Copy link
Member

Description

Both properties and properties_dark now accept arbitrary properties. If a user wants to add a new custom property to their theme, they can now add it like so:

const theme = {
	properties: {
		"--some-custom-var": "8px",
		// ... rest of theme properties
		'--color-primary-50': '242 245 253',
		'--color-primary-100': '238 242 252',
		'--color-primary-200': '233 239 252',
	}
};

@changeset-bot
Copy link

changeset-bot bot commented Aug 24, 2023

🦋 Changeset detected

Latest commit: 945479c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@skeletonlabs/tw-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Aug 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
skeleton-docs ✅ Ready (Inspect) Visit Preview Aug 24, 2023 4:17pm

@endigo9740 endigo9740 merged commit e0745a8 into v2 Aug 25, 2023
@endigo9740 endigo9740 deleted the fix/allow-extendable-properties branch August 25, 2023 16:24
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