Skip to content

Instantly share code, notes, and snippets.

Avatar
🎶
ヘ( ̄ー ̄ヘ)

Jens C. lateshift

🎶
ヘ( ̄ー ̄ヘ)
View GitHub Profile
@lateshift
lateshift / gen.scss
Last active Mar 9, 2020
Generate grid-template-area definitions via SCSS
View gen.scss
@use "sass:list";
@use "sass:string";
// Quick hack (tm) e.g. not cleaned-up/optimized but since it runs on compile time - who cares ;)
@function genAreas($prefix, $rows, $columns) {
$list: ();
$line: ();
$result: '';
@for $row from 1 through $rows {
$result: '';