From e9a320af717fee342fce5ece8faf68842639e6ee Mon Sep 17 00:00:00 2001 From: Chinmay Kunkikar Date: Fri, 1 Dec 2023 03:47:21 +0530 Subject: [PATCH 01/24] feat: Add `dark` color to the theme Even if they are repetitive values, they remove the guesswork while setting the color to an element. --- frontend/tailwind.config.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index c47db360..a9bec36b 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -1,4 +1,5 @@ /** @type {import('tailwindcss').Config} */ +const colors = require('tailwindcss/colors'); export default { content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'], darkMode: 'media', @@ -6,9 +7,16 @@ export default { extend: { colors: { dark: { - DEFAULT: 'var(--color-dark-background)', - textfield: 'var(--color-dark-textfield-card)', + DEFAULT: colors.slate[900], + primary: colors.slate[50], + secondary: colors.slate[300], + tertiary: colors.slate[400], + card: colors.slate[800], + title: colors.slate[50], + description: colors.slate[300], + info: colors.slate[400], }, + light: {}, }, }, }, From afa1350fb34d2c68f926b570a69089f7f207035d Mon Sep 17 00:00:00 2001 From: Chinmay Kunkikar Date: Fri, 1 Dec 2023 03:49:41 +0530 Subject: [PATCH 02/24] feat: Completey overhaul the Create blog form More accessibility, more breathing space, improved placeholders, improved width. --- frontend/src/pages/add-blog.tsx | 210 +++++++++++++++++--------------- 1 file changed, 113 insertions(+), 97 deletions(-) diff --git a/frontend/src/pages/add-blog.tsx b/frontend/src/pages/add-blog.tsx index c87105d5..4754dfdd 100644 --- a/frontend/src/pages/add-blog.tsx +++ b/frontend/src/pages/add-blog.tsx @@ -122,125 +122,141 @@ function AddBlog() { }; }, []); + function Asterisk() { + return * + } + return ( -
+
-
+
navigate(-1)} className="h-5 w-10" />
-

- Create Post +

+ Create Blog

+
+
+
+
Blog title
+ +
- -
- -
-
- -
-
-
+
+
Blog content
+