-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
160 additions
and
1,189 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
.markdown { | ||
@apply text-gray-900 font-serif; | ||
|
||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5 { | ||
@apply font-sans tracking-tight; | ||
} | ||
|
||
h1 { | ||
@apply text-3xl font-bold; | ||
} | ||
|
||
h2 { | ||
@apply text-2xl font-bold; | ||
} | ||
|
||
h3 { | ||
@apply text-xl font-bold; | ||
} | ||
|
||
h4 { | ||
@apply text-lg font-bold; | ||
} | ||
|
||
h5 { | ||
@apply text-base font-bold; | ||
} | ||
|
||
h6 { | ||
@apply text-sm font-bold; | ||
} | ||
|
||
p + h2, | ||
p + h3, | ||
ul + h2, | ||
ul + h3, | ||
ol + h2, | ||
ol + h3 { | ||
@apply mt-6; | ||
} | ||
|
||
h2 + h3 { | ||
@apply mt-2; | ||
} | ||
|
||
p { | ||
@apply text-base mt-2 leading-relaxed; | ||
} | ||
|
||
a { | ||
@apply text-blue-600 underline; | ||
} | ||
|
||
a:hover { | ||
@apply text-blue-800; | ||
} | ||
|
||
ul { | ||
@apply list-disc pl-4 mt-2; | ||
} | ||
|
||
ol { | ||
@apply list-decimal pl-4 mt-2; | ||
} | ||
|
||
li:not(:last-child) { | ||
@apply mb-2; | ||
} | ||
|
||
blockquote { | ||
@apply border-l-2 border-gray-200 pl-3 mt-6 mb-8; | ||
} | ||
|
||
.highlight { | ||
@apply my-4; | ||
pre { | ||
@apply text-sm m-0 p-4; | ||
|
||
code { | ||
@apply bg-none p-0; | ||
} | ||
} | ||
} | ||
|
||
pre:has(code) { | ||
@apply p-2 m-4 bg-gray-100 rounded-lg overflow-x-auto; | ||
} | ||
|
||
pre { | ||
code { | ||
@apply bg-inherit text-sm font-mono; | ||
} | ||
} | ||
|
||
code { | ||
@apply bg-gray-200 px-1 rounded-md text-green-800; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
@import "tailwindcss"; | ||
|
||
/*@import "components/all.css"; TODO1 */ | ||
|
||
html { | ||
font-size: 14px; | ||
@theme { | ||
--color-orange-300: #f56642; | ||
--color-blue-100: #427bf5; | ||
--color-gray-50: #f8fafc; | ||
--color-gray-100: #f1f5f9; | ||
--color-gray-200: #e2e8f0; | ||
--color-green-800: #3f6212; | ||
--color-green-900: #365314; | ||
--color-green-950: #1a2e05; | ||
} | ||
|
||
@screen md { | ||
html { | ||
font-size: 20px; | ||
} | ||
} | ||
@import "components/markdown.css"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,6 @@ func New(numWorkers int) *Workers { | |
} | ||
``` | ||
|
||
|
||
|
||
## Block Elements | ||
|
||
### Paragraphs and Line Breaks | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
{{ define "main" }} | ||
<article class="prose lg:prose-xl mx-auto w-8/12"> | ||
<h1>Tailwind 4 Hugo Starter</h1> | ||
<article class="mx-auto max-w-[90ch]"> | ||
<h1 class="text-6xl mb-8 text-center">Tailwind 4 Hugo Starter</h1> | ||
|
||
<h2 class="text-4xl">Testing Tailwind 4 Features</h2> | ||
<div> | ||
<button class="bg-[pink] p-4">Share on Twitter!</button> | ||
<div class="markdown p-4 bg-slate-50"> | ||
{{ .Content }} | ||
</div> | ||
|
||
<h2 class="text-4xl">Markdowns: {{ .Title }}</h2> | ||
{{ .Content }}.. | ||
</article> | ||
{{ end }} |
Oops, something went wrong.