We use tokens as our options and our theme is built based on these options. We name it as a decision.
To make the usage of our decisions easier, we created the package
@gympass/yoga-system
yarn add @gympass/yoga-system// ornpm install @gympass/yoga-system
As a shorthand for all our system properties, we use the system
module:
import styled from 'styled-components';import { ThemeProvider } from '@gympass/yoga';import { system } from '@gympass/yoga-system';const Hero = styled.div`${system}`;const App = () => (<ThemeProvider><Heroborder="small"padding="small"borderRadius="small"color="feedback.success.dark">Making wellbeing universal</Hero></ThemeProvider>);