Skip to content

Commit 8f75a37

Browse files
committed
style: update MainHeader font-weight to normal and text color to #F2F2F2
- Change buttons, label, and input box from font-semibold to font-normal - Update text color from text-gray-400 to text-[#F2F2F2] - Remove duplicate color styles from style.css (now using Tailwind classes)
1 parent b5e0709 commit 8f75a37

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/components/MainHeader.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function MainHeader(props) {
5959
const isSubscribed = userService.isSubscribed();
6060

6161
return (
62-
<div className="main-header text-gray-400 py-1 px-2 flex justify-between border-b border-black-700 bg-black-500">
62+
<div className="main-header text-gray-100 py-1 px-2 flex justify-between border-b border-black-700 bg-black-500">
6363
<div className="flex items-center gap-4">
6464
<div className="flex items-center p-1">
6565
<svg className="h-9 w-9">
@@ -68,7 +68,7 @@ export function MainHeader(props) {
6868
</div>
6969

7070
<button
71-
className="px-4 py-1.5 bg-black-600 hover:opacity-80 duration-200 font-semibold flex items-center gap-2 rounded-lg"
71+
className="px-4 py-1.5 bg-black-600 hover:opacity-80 duration-200 font-normal flex items-center gap-2 rounded-lg"
7272
aria-label="Start a new creation"
7373
onClick={props.newBtnHandler}
7474
>
@@ -85,13 +85,13 @@ export function MainHeader(props) {
8585
type="text"
8686
id="titleInput"
8787
title="Click to edit"
88-
className="font-semibold appearance-none w-60 text-center bg-transparent px-3 py-1.5 outline-primary border-none w-auto max-w-60"
88+
className="font-normal appearance-none w-60 text-center bg-transparent px-3 py-1.5 outline-primary border-none w-auto max-w-60"
8989
value={props.title}
9090
onBlur={onBlur}
9191
/>
9292
) : (
9393
<div
94-
className="flex items-center gap-2 font-semibold"
94+
className="flex items-center gap-2 font-normal"
9595
onClick={() => entryEditing()}
9696
>
9797
<span>{props.title || 'Untitled'} </span>
@@ -114,7 +114,7 @@ export function MainHeader(props) {
114114

115115
{!window.user ? (
116116
<button
117-
className="hidden lg:inline h-10 px-4 bg-primary rounded-lg text-gray-100 font-semibold hover:opacity-80 duration-200"
117+
className="hidden lg:inline h-10 px-4 bg-primary rounded-lg text-gray-100 font-normal hover:opacity-80 duration-200"
118118
aria-label="Share diagram link"
119119
onClick={props.onLogin.bind(this)}
120120
>
@@ -129,7 +129,7 @@ export function MainHeader(props) {
129129
onVisibilityChange={setIsSharePanelVisible}
130130
trigger={
131131
<button
132-
className="hidden lg:inline h-10 px-4 bg-primary rounded-lg text-white font-semibold hover:opacity-80 duration-200"
132+
className="hidden lg:inline h-10 px-4 bg-primary rounded-lg text-white font-normal hover:opacity-80 duration-200"
133133
aria-label="Share diagram link"
134134
onClick={shareClickHandler}
135135
>

src/style.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,6 @@ body > #demo-frame {
701701
.footer {
702702
padding: 0.5rem 1rem;
703703
background-color: rgb(18, 19, 27);
704-
color: rgba(255, 255, 255, 0.45);
705704
border-top: 1px solid rgba(255, 255, 255, 0.14);
706705
}
707706

@@ -715,7 +714,6 @@ body > #demo-frame {
715714

716715
.main-header {
717716
background-color: rgb(18, 19, 27);
718-
color: rgba(255, 255, 255, 0.45);
719717
display: flex;
720718
flex-wrap: nowrap;
721719
align-items: center;

0 commit comments

Comments
 (0)