2024-03-14 17:16:03 +01:00
|
|
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
|
|
|
import React from "react";
|
|
|
|
|
import { tokens } from ":/cunningham-tokens";
|
|
|
|
|
|
|
|
|
|
const meta: Meta = {
|
|
|
|
|
title: "Misc/Spacings",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default meta;
|
|
|
|
|
type Story = StoryObj<{}>;
|
|
|
|
|
|
|
|
|
|
export const Sizes: Story = {
|
|
|
|
|
render: () => {
|
|
|
|
|
return (
|
|
|
|
|
<div style={{ display: "flex", flexDirection: "column", gap: "20px" }}>
|
2025-08-22 10:10:17 +02:00
|
|
|
{Object.keys(tokens.themes.default.globals.font.sizes).map((key) => (
|
|
|
|
|
<div key={key} className={"clr-gray-800 fs-" + key}>
|
2024-03-14 17:16:03 +01:00
|
|
|
Using the <code>fs-{key}</code> class
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const Weights: Story = {
|
|
|
|
|
render: () => {
|
|
|
|
|
return (
|
|
|
|
|
<div style={{ display: "flex", flexDirection: "column", gap: "20px" }}>
|
2025-08-22 10:10:17 +02:00
|
|
|
{Object.keys(tokens.themes.default.globals.font.weights).map((key) => (
|
|
|
|
|
<div key={key} className={"clr-gray-800 fs-l fw-" + key}>
|
2024-03-14 17:16:03 +01:00
|
|
|
Using the <code>fw-{key}</code> class
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const Families: Story = {
|
|
|
|
|
render: () => {
|
|
|
|
|
return (
|
|
|
|
|
<div style={{ display: "flex", flexDirection: "column", gap: "20px" }}>
|
2025-08-22 10:10:17 +02:00
|
|
|
{Object.keys(tokens.themes.default.globals.font.families).map((key) => (
|
|
|
|
|
<div key={key} className={"clr-gray-800 f-" + key}>
|
2024-03-14 17:16:03 +01:00
|
|
|
Using the <code>f-{key}</code> class
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
};
|