From 739212fec5c4fa3777168ec09c3c90d8c2547ea8 Mon Sep 17 00:00:00 2001 From: Ava Wroten Date: Tue, 9 Feb 2021 16:01:18 -0600 Subject: [PATCH] Improved styling --- .eleventy.js | 15 ++++++++------- _includes/layout.njk | 3 +++ tailwind.config.js | 6 +++++- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 8160ab3..ef5c377 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -6,14 +6,15 @@ const markdownItClass = require('@toycode/markdown-it-class'); const markdownClassMapping = { h1: ['hide'], - h2: ['text-3xl'], - h3: ['text-2xl'], - h4: ['text-xl'], - h5: ['text-lg'], - h6: ['font-bold'], - a: ['text-blue-300', 'hover:underline'], + h2: ['text-3xl', 'mt-6'], + h3: ['text-2xl', 'mt-4'], + h4: ['text-xl', 'mt-2'], + h5: ['text-lg', 'mt-2'], + h6: ['font-bold', 'mt-2'], + a: ['text-pink-700', 'hover:underline', 'focus:text-white', 'focus:bg-pink-700', 'focus:outline-link'], p: ['mb-2', 'text-gray-500'], - img: ['max-w-lg', 'rounded-lg', 'my-8'], + img: ['max-w-lg', 'rounded-lg'], + ul: ['list-disc', 'ml-4'], }; module.exports = function(eleventyConfig) { diff --git a/_includes/layout.njk b/_includes/layout.njk index 94c6fd0..6663f66 100644 --- a/_includes/layout.njk +++ b/_includes/layout.njk @@ -8,6 +8,9 @@

in {{ tags[0] | capitalize }}

+
+

{{description}}

+
diff --git a/tailwind.config.js b/tailwind.config.js index 0ffbdad..efe6835 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -2,7 +2,11 @@ module.exports = { purge: ['./_site/**/*.html'], darkMode: false, // or 'media' or 'class' theme: { - extend: {}, + extend: { + outline: { + link: ['1px dashed rgba(190, 24, 93)', '2px'], + }, + }, }, variants: { extend: {},