Demonstrate the use of token references by editing the greyscale color which is used by lots of components.
19 lines
323 B
TypeScript
19 lines
323 B
TypeScript
import { DefaultTokens } from "@openfun/cunningham-react";
|
|
|
|
const config: DefaultTokens = {
|
|
theme: {
|
|
colors: {
|
|
"primary-500": "purple",
|
|
"success-700": "lime",
|
|
"greyscale-300": "#ff18e5",
|
|
},
|
|
},
|
|
components: {
|
|
button: {
|
|
"border-radius": "30px",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|