Skip to content

Instantly share code, notes, and snippets.

@shahalom
Created June 11, 2025 17:11
Show Gist options
  • Save shahalom/b485f880a84635e9955f2fce986659a6 to your computer and use it in GitHub Desktop.
Save shahalom/b485f880a84635e9955f2fce986659a6 to your computer and use it in GitHub Desktop.
A basic structure for a Layer based CSS file
@layer reset, framework, customframework, components, utilities;
@layer reset {
* {
box-sizing: border-box;
}
}
@import url('framework.css') layer(framework);
@layer customframework {
/* Our Own Custom Framework styles */
}
@layer components {
.button {
padding: 1rem;
}
}
@layer utilities {
.text-center { text-align: center; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment