✨(demo) add themes handling
We now can switch theme directly inside the demo app.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user