-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add grid columns and gutter tokens for the base grid variant for each break breakpoint - add page layout offset tokens for each break breakpoint
- Loading branch information
1 parent
ee1e458
commit abbd2e6
Showing
2 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
/* eslint-disable sort-keys */ | ||
|
||
const attributes = (group) => ({ | ||
attributes: { | ||
group | ||
} | ||
}); | ||
|
||
module.exports = { | ||
grid: { | ||
base: { | ||
columns: { | ||
zero: { | ||
value: 4, | ||
...attributes('grid') | ||
}, | ||
micro: { | ||
value: 4, | ||
...attributes('grid') | ||
}, | ||
small: { | ||
value: 4, | ||
...attributes('grid') | ||
}, | ||
medium: { | ||
value: 8, | ||
...attributes('grid') | ||
}, | ||
large: { | ||
value: 8, | ||
...attributes('grid') | ||
}, | ||
wide: { | ||
value: 12, | ||
...attributes('grid') | ||
}, | ||
ultra: { | ||
value: 12, | ||
...attributes('grid') | ||
} | ||
}, | ||
gutter: { | ||
zero: { | ||
value: 16, | ||
...attributes('grid') | ||
}, | ||
micro: { | ||
value: 16, | ||
...attributes('grid') | ||
}, | ||
small: { | ||
value: 24, | ||
...attributes('grid') | ||
}, | ||
medium: { | ||
value: 24, | ||
...attributes('grid') | ||
}, | ||
large: { | ||
value: 32, | ||
...attributes('grid') | ||
}, | ||
wide: { | ||
value: 32, | ||
...attributes('grid') | ||
}, | ||
ultra: { | ||
value: 32, | ||
...attributes('grid') | ||
} | ||
} | ||
}, | ||
offset: { | ||
base: { | ||
zero: { | ||
value: 16, | ||
...attributes('layout') | ||
}, | ||
micro: { | ||
value: 20, | ||
...attributes('layout') | ||
}, | ||
small: { | ||
value: 48, | ||
...attributes('layout') | ||
}, | ||
medium: { | ||
value: 56, | ||
...attributes('layout') | ||
}, | ||
large: { | ||
value: 64, | ||
...attributes('layout') | ||
}, | ||
wide: { | ||
value: 72, | ||
...attributes('layout') | ||
}, | ||
ultra: { | ||
value: 124, | ||
...attributes('layout') | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
|
||
/* eslint-enable sort-keys */ |