Design systems
I will show you a series of useful techniques to start programming your design systems with Atomico, analyzing the recommended structure and its files.
Recommended structure
src/
# Import, export and declare all our components
components.js
# Group all the tokens in our system
tokens.js
# Structure example for our component
/button
button.{js,jsx,ts,tsx}
button.md
button.test.jssrc/components.js
import { Button } from "./button/button";
export { Button } from "./button/button";
customElements.define("my-button", Button);src/tokens.js
Instance level
src/button.js
Last updated
Was this helpful?
