♻️(demo) demonstrate token references

Demonstrate the use of token references by editing the greyscale
color which is used by lots of components.
This commit is contained in:
Nathan Vasse
2023-06-29 16:41:35 +02:00
committed by NathanVss
parent 672f4be4d4
commit a526243667
4 changed files with 9 additions and 12 deletions

View File

@@ -1,9 +1,10 @@
import {
Button,
usePagination,
Pagination,
CunninghamProvider,
Pagination,
SUPPORTED_LOCALES,
Switch,
usePagination,
} from "@openfun/cunningham-react";
import React, { useState } from "react";
import { tokens } from "./cunningham-tokens";
@@ -26,6 +27,7 @@ export const App = () => {
</option>
))}
</select>
<Switch defaultChecked={true} />
<Button>World best button.</Button>
<h3>Primary-500 color is {tokens.theme.colors["primary-500"]}</h3>
<Pagination {...pagination} />