These were the missing parts in order to use every design tokens of Cunningham. Including: spacing, font weight, size, family, and colors. In order to be really versatile and to allow users to define new design tokens I had to re-organize the way those tokens are sub divided in sub objects in cunningham.ts file. That's why sub division are created for theme.typ.sizes for instance.
13 lines
377 B
SCSS
13 lines
377 B
SCSS
@import "@fontsource/roboto/100";
|
|
@import "@fontsource/roboto/300";
|
|
@import "@fontsource/roboto/400";
|
|
@import "@fontsource/roboto/500";
|
|
@import "@fontsource/roboto/700";
|
|
@import "@fontsource/roboto/900";
|
|
@import "cunningham-tokens";
|
|
@import '@openfun/cunningham-tokens/default-tokens';
|
|
@import './components/Button';
|
|
|
|
* {
|
|
font-family: var(--c--theme--font--families--base);
|
|
} |