Skip to content

Commit

Permalink
Tailwind next
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jun 21, 2024
1 parent de7c47e commit a1d6b52
Show file tree
Hide file tree
Showing 8 changed files with 2,215 additions and 2,876 deletions.
6 changes: 2 additions & 4 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@import "tailwindcss";

@import "components/all.css";
/*@import "components/all.css"; TODO1 */

html {
font-size: 14px;
Expand Down
16 changes: 13 additions & 3 deletions hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"head",
"html",
"li",
"link",
"meta",
"ol",
"p",
Expand All @@ -27,15 +26,26 @@
],
"classes": [
"bg-[green]",
"bg-[pink]",
"container",
"highlight",
"lg:mx-auto",
"lg:prose-xl",
"max-w-2xl",
"max-w-3xl",
"max-w-md",
"max-w-screen-md",
"max-w-screen-sm",
"max-w-xl",
"mx-10",
"mx-20",
"mx-auto",
"my-10",
"p-4",
"prose",
"px-4",
"text-4xl"
"text-4xl",
"w-8/12"
],
"ids": [
"block-elements",
Expand All @@ -53,4 +63,4 @@
"this-is-a-header"
]
}
}
}
6 changes: 2 additions & 4 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@
{{ .Title }}
</title>
<meta name="description" content="{{ .Description }}" />
{{ with (templates.Defer (dict "key" "styles" "data" "foo")) }}
{{ warnf "deferred: %s" . }}
{{ $options := dict "inlineImports" true }}
{{ with (templates.Defer (dict "key" "styles" )) }}
{{ $options := dict "inlineImports" false }}
{{ $styles := resources.Get "css/styles.css" }}
{{ $styles = $styles | resources.PostCSS $options }}
{{ if hugo.IsProduction }}
{{ $styles = $styles | minify | fingerprint }}
{{ end }}
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" />
{{ end }}

</head>
<body class="my-10">
<div class="container px-4 lg:mx-auto">
Expand Down
8 changes: 4 additions & 4 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{ define "main" }}
<article class="prose lg:prose-xl">
<h1>Tailwind 3 Hugo Starter</h1>
<article class="prose lg:prose-xl mx-auto w-8/12">
<h1>Tailwind 4 Hugo Starter</h1>

<h2 class="text-4xl">Testing Tailwind 3 Features</h2>
<h2 class="text-4xl">Testing Tailwind 4 Features</h2>
<div>
<button class="bg-[green] p-4">Share on Twitter</button>
<button class="bg-[pink] p-4">Share on Twitter!</button>
</div>

<h2 class="text-4xl">Markdowns: {{ .Title }}</h2>
Expand Down
Loading

0 comments on commit a1d6b52

Please sign in to comment.