Skip to content

Instantly share code, notes, and snippets.

@andrewspode
Created April 20, 2021 13:27
Show Gist options
  • Save andrewspode/5ef2b91a3a701d2912c30e1eaea27c98 to your computer and use it in GitHub Desktop.
Save andrewspode/5ef2b91a3a701d2912c30e1eaea27c98 to your computer and use it in GitHub Desktop.
Classgroup
<script>
const classes = ClassGroup({
descriptionBox: {
layout: 'm-auto w-3/4 p-2',
presentation: 'bg-gray-100 text-cyan-600',
}
});
</script>
// We are using Svelte!
<div class="{ classes.descriptionBox }"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment