♻️(tokens) expose default tokens in a lib and various config

This allow to use the default tokens from Typescript or Javascript file
of dependents repos. For instance this wîll be used by packages/react
to aggregate components tokens files.
This commit is contained in:
Nathan Vasse
2023-01-04 15:51:06 +01:00
committed by NathanVss
parent be2f220624
commit 67dd0048d0
11 changed files with 57 additions and 17 deletions

View File

@@ -0,0 +1 @@
export const tokens = {"theme":{"colors":{"primary":"#002d7f","primary-gradient":"linear-gradient(90deg,#002d7f,#0069b3)","secondary":"#DA0000"}}};

View File

@@ -0,0 +1,4 @@
import { tokens } from "./cunningham-tokens";
export type DefaultTokens = typeof tokens;
export const defaultTokens = tokens;

View File

@@ -0,0 +1,11 @@
{
"extends": "@openfun/typescript-configs/node.json",
"include": [
"./*"
],
"compilerOptions": {
"baseUrl": "./",
"outDir": "../../dist/lib",
"declaration": true
}
}