DesignSystemTheme.fromBrandTokens constructor

DesignSystemTheme.fromBrandTokens(
  1. BrandTokens tokens
)

Implementation

factory DesignSystemTheme.fromBrandTokens(BrandTokens tokens) {
  return DesignSystemTheme(
    colors: DesignSystemColors.fromTokens(tokens),
    typography: DesignSystemTypography.fromTokens(tokens),
    spacing: DesignSystemSpacing.fromTokens(tokens),
    shapes: DesignSystemShapes.fromTokens(tokens),
    tokens: tokens,
  );
}