Align Styles Package Structure and Documentation with Tokens? #3520
Closed
oliverschuerch
started this conversation in
Polls
Replies: 2 comments 3 replies
-
@oliverschuerch would you put CSS resets like the ones proposed under #3533 in one file or distribute them across different base element files? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Beside this poll, we decided to align the styles package structure with the tokens.json output like so:
We want to co-locate styles, functions, mixins and placeholder, where they are used. The documentation package on the other side will be aligned with the Figma structure like so:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The tokens package defines tree main output files for the component layer:
elements.scss
(contains sass maps for elmentsbody
,paragraph
, etc.)components.scss
(contains sass maps for components.accordion
,.lead
,.badge
, etc.)utilities.scss
(contains sass maps for utilitiesspacing
,font-size
,font-weight
, etc.)The first question we want to ask ourself is, if we should align the folder structure in the styles package accordingly?
styles/src/elements/body.scss
...
styles/src/components/tabs.scss
...
styles/src/utilities/spacing.scss
...
The second question is, if we should also align the navigation structure in the storybook documentation?
Please add your thoughts and make your choice below.
4 votes ·
Beta Was this translation helpful? Give feedback.
All reactions