Skip to content

Commit f1b42e6

Browse files
Implement light theme CSS
1 parent 8026760 commit f1b42e6

30 files changed

+85
-73
lines changed

src/css/tailwind.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
}
2020
h2 {
21-
@apply text-white text-3xl font-bold leading-none mb-2;
21+
@apply text-blue-900 dark:text-white text-3xl font-bold leading-none mb-2;
2222
}
2323
@screen md {
2424
h2 {
@@ -42,9 +42,9 @@ section {
4242

4343
section a,
4444
dd a {
45-
@apply text-white;
45+
@apply dark:text-white;
4646
@apply border-b;
47-
@apply border-blue-100;
47+
@apply border-blue-900 dark:border-blue-100;
4848
}
4949
section:not(.cards):not(.no-underline) a:hover,
5050
section:not(.cards):not(.no-underline) a:focus,
@@ -337,14 +337,14 @@ details[open] .summary-swap-open {
337337

338338
/* Jamstack TV */
339339
.ais-SearchBox-input {
340-
@apply bg-blue-900;
341-
@apply text-white;
340+
@apply bg-white dark:bg-blue-900;
341+
@apply dark:text-white;
342342
@apply font-bold;
343343
@apply p-3;
344344
@apply pl-14;
345345
@apply mx-auto;
346346
@apply border;
347-
border-color: #5A5F75;
347+
@apply border-gray-300 dark:border-gray-400;
348348
@apply rounded-full;
349349
@apply block;
350350
@apply w-full;

src/site/_includes/components/cards-meetup.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% macro card(name, url, theme ) %}
22

3-
<a href="{{ url }}" target="_BLANK" rel="noopener" class="{{ theme }} bg-gradient-to-r block mb-4 border-gray-400 border rounded-xl rounded-tr-none text-center">
4-
<div class="bg-gray-100 mt-3 py-8 rounded-xl-embed rounded-t-none card-shadow">
3+
<a href="{{ url }}" target="_BLANK" rel="noopener" class="{{ theme }} bg-gradient-to-r block mb-4 border-gray-100 dark:border-gray-400 border rounded-xl rounded-tr-none text-center">
4+
<div class="bg-white dark:bg-gray-900 mt-3 py-8 rounded-xl-embed rounded-t-none card-shadow">
55
<svg role="img" aria-label="Jamstack Group" aria-hidden="true" focusable="false" width="20" height="20" class="inline"><use xlink:href="#gem-jamstack" ></use></svg>
66
<span class="font-bold ml-1">{{ name }} &rarr;</span>
77
</div>

src/site/_includes/components/cards.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{%- if item.data.language %} data-filter-language="{{ item.data.language | join(",") | lower }}"{% endif %}
99
{%- if item.data.license %} data-filter-license="{{ item.data.license | join(",") | lower }}"{% endif %}>
1010
<a href="{{ item.url }}" class="flex-grow block border-0 bg-white text-gray-700 rounded-t-lg last:rounded-b-lg">
11-
<div class="text-xl md:text-2xl lg:text-3xl font-bold text-ellipsis text-black bg-gradient-to-b border-b border-black rounded-t-lg p-4
11+
<div class="text-xl md:text-2xl lg:text-3xl font-bold text-ellipsis text-black bg-gradient-to-b dark:border-b border-black rounded-t-lg p-4
1212
{%- if loopIndex % 4 === 0 %} bg-gradient-card-sunrise
1313
{%- elseif loopIndex % 4 === 1 %} bg-gradient-card-blue
1414
{%- elseif loopIndex % 4 === 2 %} bg-gradient-card-seafoam
@@ -76,7 +76,7 @@
7676
</div>
7777
</a>
7878
{% if item.data.startertemplaterepo %}
79-
<a href="https://app.netlify.com/start/deploy?repository={{ item.data.startertemplaterepo}}" class="block px-4 py-3 text-gray-700 bg-white rounded-b-lg text-center md:text-lg whitespace-nowrap border-t">
79+
<a href="https://app.netlify.com/start/deploy?repository={{ item.data.startertemplaterepo}}" class="block px-4 py-3 text-gray-700 bg-white rounded-b-lg text-center md:text-lg whitespace-nowrap border-b-0 border-t border-blue-100">
8080
<svg role="img" aria-hidden="true" focusable="false" width="30" height="30" viewBox="0 0 40 40" class="inline-block mr-1" fill="#36b0bb"><use xlink:href="#logo-netlify-gem"/></svg>
8181
Deploy to Netlify
8282
</a>

src/site/_includes/components/meetup-link.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<tr class="{% if loop.index0 % 2 == 0 %}bg-gray-900{% endif %}">
1+
<tr class="{% if loop.index0 % 2 == 0 %}bg-gray-200 dark:bg-gray-900{% endif %}">
22
<td class="m-2 md:p-4 md:m-0 block md:table-cell"><span class="font-bold md:hidden">Group: </span>{{ item.group.name }}</td>
33
<td class="m-2 md:p-4 md:m-0 block md:table-cell"><span class="font-bold md:hidden">Name: </span><a href="{{ item.link }}">{{ item.name }}</a></td>
44
<td class="m-2 md:p-4 md:m-0 block md:table-cell"><span class="font-bold md:hidden">Venue: </span>{{ item.venue.name }}</dt>

src/site/_includes/components/section-heading.njk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{% macro heading(title, icon, description ) %}
2-
<h2 class="text-3xl mt-0 mb-2 text-white text-bold md:text-4xl md:mt-12">
2+
<h2 class="text-3xl mt-0 mb-2 dark:text-white text-bold md:text-4xl md:mt-12">
33
<img src="/img/svg/{{ icon }}" class="inline-block" />
44
{{ title }}
55
</h2>
6-
<p class="text-md font-bold inline-block bg-pink-900 text-white p-y px-2 mb-4 md:text-lg leading-relaxed">
6+
<p class="text-md font-bold inline-block bg-pink-900 dark:text-white p-y px-2 mb-4 md:text-lg leading-relaxed">
77
{{ description | safe }}
88
</p>
99
{% endmacro %}
@@ -20,10 +20,10 @@
2020
</svg>
2121
{% endif %}
2222
<div>
23-
<h3 class="font-bold text-white mb-2">
23+
<h3 class="font-bold dark:text-white mb-2">
2424
{{ title }}
2525
</h3>
26-
<div class="text-blue-100">
26+
<div class="dark:text-blue-100">
2727
{{ description | safe }}
2828
</div>
2929
</div>

src/site/_includes/components/zinger-cta.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
{% macro cta(text, url, theme, icon ) %}
3-
<a href="{{ url }}" target="_BLANK" rel="noopener" class="block mb-4 md:inline-block {{ theme }} bg-gradient-to-r border-none p-6 rounded-xl rounded-tr-none text-center">
3+
<a href="{{ url }}" target="_BLANK" rel="noopener" class="text-white block mb-4 md:inline-block {{ theme }} bg-gradient-to-r border-none p-6 rounded-xl rounded-tr-none text-center">
44
{% if icon %}<svg role="img" aria-label="{{ text }}" aria-hidden="true" focusable="false" width="40" height="40" class="mx-auto"><use xlink:href="{{ icon }}"></use></svg>{% endif %}
55
<p class="font-bold text-lg {% if icon %}mt-2{% endif %}">
66
{{ text }}

src/site/_includes/footer.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<section>
2-
<footer class="py-20 text-blue-200">
2+
<footer class="py-20 dark:text-blue-200">
33
<ul class="text-left md:flex justify-between">
44
<li class="p-2">&copy; {{ page.date | formatDate('yyyy') }} Netlify </li>
55
<li class="p-2"><a href="https://jamstack.org/discord">Chat on Discord</a></li>

src/site/_includes/header.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
%}
2020

2121
<header class="page-header md:flex md:flex-col md:h-screen">
22-
<a href="/" class="block text-white hover:text-pink-900 mx-8 py-8">
22+
<a href="/" class="block dark:text-white mx-8 py-8">
2323
<svg role="img" aria-hidden="true" focusable="false" width="163" height="31">
2424
<use xlink:href="#logo-jamstack"></use>
2525
</svg>
@@ -47,8 +47,8 @@
4747
{% include "navigation-links.njk" %}
4848

4949
<div>
50-
<div class="text-center text-sm mb-4 text-gray-300">Connect with us</div>
51-
<div class="grid grid-cols-3 divide-x divide-gray-700 text-gray-300">
50+
<div class="text-center text-sm mb-4 dark:text-gray-300">Connect with us</div>
51+
<div class="grid grid-cols-3 divide-x divide-gray-200 dark:divide-gray-700 dark:text-gray-300">
5252
<a href="https://discord.gg/jamstack" target="_BLANK" rel="noopener" class="flex items-center justify-center p-4 hover:text-pink-500">
5353
<svg role="img" aria-label="Discord" focusable="false" width="36" height="36" class="fill-current">
5454
<use xlink:href="#logo-discord"></use>

0 commit comments

Comments
 (0)