(demo) add themes handling

We now can switch theme directly inside the demo app.
This commit is contained in:
Nathan Vasse
2023-09-26 11:39:28 +02:00
committed by NathanVss
parent bac9e3b802
commit 8b1dbd2f25
5 changed files with 155 additions and 67 deletions

View File

@@ -1,18 +1,14 @@
import { DefaultTokens } from "@openfun/cunningham-react";
import { Configuration } from "@openfun/cunningham-react";
const config: DefaultTokens = {
theme: {
colors: {
"primary-500": "purple",
"success-700": "lime",
"greyscale-300": "#ff18e5",
},
},
components: {
button: {
"border-radius": "30px",
const config: Configuration = {
themes: {
default: {
components: {
button: {
"border-radius": "30px",
},
},
},
},
};
export default config;