L
L
lavezzi12019-03-15 06:37:59
css
lavezzi1, 2019-03-15 06:37:59

How to separate design from frontend?

Hello. There are three projects with the same design, two of these projects are static (admin panel and community), the third project is on Vue. I would like to move the design into a separate npm package and use it in all projects in order to inherit the design and synchronize it across all projects. Is this the correct solution, is there a better one?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Insayt, 2019-03-15
@Insayt

bootstrap to you as an example of such a package https://github.com/twbs/bootstrap/tree/master/scss
take out all the styles in a separate project, then add it wherever you need to dependencies and reuse

A
Andrey Okhotnikov, 2019-03-15
@tsepen

For this, there is an excellent tool - storybook , an implementation example - the Alfa Bank component library

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question