diff --git a/src/index.css b/src/index.css index bd6213e..5e9a960 100644 --- a/src/index.css +++ b/src/index.css @@ -1,3 +1,81 @@ @tailwind base; @tailwind components; -@tailwind utilities; \ No newline at end of file +@tailwind utilities; + + +/* styles for displaying markdown */ +@layer base { + .md h1 { + @apply text-6xl; + } + .md h2 { + @apply text-5xl; + } + .md h3 { + @apply text-4xl; + } + .md h4 { + @apply text-3xl; + } + .md h5 { + @apply text-2xl; + } + .md h6 { + @apply text-xl; + } + + .md blockquote{ + @apply border-l-4; + @apply pl-2; + @apply rounded-lg; + @apply bg-zinc-200; + @apply border-zinc-400; + + @apply dark:bg-zinc-800; + @apply dark:border-zinc-600; + } + + .md hr { + @apply mb-4; + @apply mt-4; + @apply border-2; + @apply rounded-lg; + } + + .md ul{ + @apply list-disc; + @apply list-inside; + } + + .md li ul { + @apply list-disc; + @apply list-inside; + @apply ml-2; + } + + .md ol{ + @apply list-decimal; + @apply list-inside; + } + + .md li ol{ + @apply list-decimal; + @apply list-inside; + @apply ml-2; + } + + .md code { + @apply p-1; + @apply rounded-lg; + @apply bg-zinc-200; + @apply border-zinc-400; + + @apply dark:bg-zinc-800; + @apply dark:border-zinc-600; + } + + .md a { + @apply inline-block bg-transparent text-blue-600; + } + +} \ No newline at end of file diff --git a/src/pages/create.jsx b/src/pages/create.jsx index 67a3efc..256337a 100644 --- a/src/pages/create.jsx +++ b/src/pages/create.jsx @@ -22,9 +22,11 @@ function CreateNote() { /> - - {text} - +
+ + {text} + +