Skip to content

Commit

Permalink
docs: add sample page for experimentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Dec 15, 2023
1 parent 6a10f90 commit ed8667e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode",
"GitHub.vscode-github-actions",
"unifiedjs.vscode-mdx",
"webben.browserslist"
]
}
10 changes: 10 additions & 0 deletions src/docs/sample.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Alert } from "../components/Alert";
import { PrimaryButton } from "../components/PrimaryButton";

<div className="space-y-4 text-base text-ui-neutral-5">
<Alert sentiment="danger">This is an alert.</Alert>
<Alert sentiment="warning">This is an alert.</Alert>
<Alert>This is an alert.</Alert>
<div>This is just a block of text.</div>
<PrimaryButton>Button</PrimaryButton>
</div>
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Config } from "tailwindcss";
import tailwindPreset from "./src/tailwind-preset";

export default {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
content: ["./src/**/*.{js,jsx,ts,tsx,mdx}"],
presets: [tailwindPreset],
darkMode: ["class", ".theme-dark"],
} satisfies Config;

0 comments on commit ed8667e

Please sign in to comment.