generated from astahmer/tailwind-to-css-in-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo-code-sample.ts
45 lines (42 loc) · 1.2 KB
/
demo-code-sample.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
const defaultCode = `
const App = () => {
return <>
<figure class="md:flex bg-slate-100 rounded-xl p-8 md:p-0 dark:bg-slate-800">
<img class="w-24 h-24 md:w-48 md:h-auto md:rounded-none rounded-full mx-auto" src="/sarah-dayan.jpg" alt="" width="384" height="512" />
<div class="pt-6 md:p-8 text-center md:text-left space-y-4">
<blockquote>
<p class="text-lg font-medium">
“Tailwind CSS is the only framework that I've seen scale
on large teams. It’s easy to customize, adapts to any design,
and the build size is tiny.”
</p>
</blockquote>
<figcaption class="font-medium">
<div class="text-sky-500 dark:text-sky-400">
Sarah Dayan
</div>
<div class="text-slate-700 dark:text-slate-500">
Staff Engineer, Algolia
</div>
</figcaption>
</div>
</figure>
</>
}
`.trim();
const themeCode = `
/** @type {import('tailwindcss').Config} */
export const config = {
theme: {
extend: {},
},
}
`.trim();
export const initialInputList = {
"tw-App.tsx": defaultCode,
"tailwind.config.js": themeCode,
};
export const initialOutputList = {
"App.tsx": "",
"transformed.md": "",
};