2022-12-01 12:05:50 +01:00
|
|
|
import React from "react";
|
|
|
|
|
import ReactDOM from "react-dom/client";
|
|
|
|
|
import "./index.scss";
|
|
|
|
|
import { Button } from "@openfun/cunningham-react";
|
2023-01-02 12:06:00 +01:00
|
|
|
import { tokens } from "./cunningham-tokens";
|
2022-12-01 12:05:50 +01:00
|
|
|
|
|
|
|
|
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
|
|
|
|
<React.StrictMode>
|
|
|
|
|
<div className="center">
|
|
|
|
|
<h1 className="test">Cunningham Demo.</h1>
|
2023-01-04 15:53:36 +01:00
|
|
|
<Button>World best button.</Button>
|
|
|
|
|
<h3>Primary color is {tokens.theme.colors.primary}</h3>
|
2022-12-01 12:05:50 +01:00
|
|
|
</div>
|
|
|
|
|
</React.StrictMode>
|
|
|
|
|
);
|