Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: framegear add styles for light mode, make legible #190

Merged
merged 2 commits into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions framegear/components/Frame/Frame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function ValidFrame({ tags }: { tags: Record<string, string> }) {
src={image}
alt=""
/>
<div className="bg-content-light flex flex-col gap-2 rounded-b-xl px-4 py-2">
<div className="bg-button-gutter-light dark:bg-content-light flex flex-col gap-2 rounded-b-xl px-4 py-2">
{!!input && (
<input
className="bg-input-light border-light rounded-lg border p-2 text-black"
Expand Down Expand Up @@ -86,7 +86,7 @@ function PlaceholderFrame() {
return (
<div className="flex flex-col">
<div className="bg-farcaster flex aspect-[1.91/1] w-full rounded-t-xl"></div>
<div className="bg-content-light flex flex-wrap gap-2 rounded-b-xl px-4 py-2">
<div className="bg-button-gutter-light dark:bg-content-light flex flex-wrap gap-2 rounded-b-xl px-4 py-2">
<FrameButton>Get Started</FrameButton>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion framegear/components/FrameInput/FrameInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function FrameInput() {
<label className="flex flex-col">
Enter your frame URL
<input
className={`border-pallette-line bg-input h-[40px] rounded-md border p-2`}
className={`border-pallette-line bg-content-light dark:bg-input h-[40px] rounded-md border p-2`}
type="url"
placeholder="Enter URL"
value={url}
Expand Down
10 changes: 7 additions & 3 deletions framegear/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function Header() {
function Banner() {
return (
<div
className={`max-w-layout-max border-pallette-line bg-banner flex w-full items-center justify-between rounded-lg border p-6`}
className={`max-w-layout-max border-pallette-line bg-content-light dark:bg-banner flex w-full items-center justify-between rounded-lg border p-6`}
>
<div className="flex items-center gap-4">
<div className="text-3xl">⚒️</div>
Expand All @@ -28,7 +28,7 @@ function Banner() {
</section>
</div>
<Link
className="bg-link-button flex items-center gap-1 rounded-full px-4 py-2"
className="bg-content-light dark:bg-link-button flex items-center gap-1 rounded-full px-4 py-2"
href="https://docs.farcaster.xyz/reference/frames/spec"
>
<span>Farcaster Frames specs</span> <ArrowTopRightIcon />
Expand All @@ -39,6 +39,10 @@ function Banner() {

function AppName({ className: additionalClasses = '' }: { className?: string }) {
return (
<span className={`rounded-lg bg-slate-800 p-1 font-mono ${additionalClasses}`}>{APP_NAME}</span>
<span
className={`bg-content-light rounded-lg p-1 font-mono dark:bg-slate-800 ${additionalClasses}`}
>
{APP_NAME}
</span>
);
}
4 changes: 2 additions & 2 deletions framegear/components/ValidationResults/ValidationResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function ValidationResultsPlaceholder() {
return (
<div className="flex flex-col gap-4">
<h2>Frame validations</h2>
<div className="bg-content flex w-full flex-col gap-4 rounded-xl p-6">
<div className="bg-content-light dark:bg-content flex w-full flex-col gap-4 rounded-xl p-6">
<p>No data yet.</p>
</div>
</div>
Expand All @@ -50,7 +50,7 @@ function ValidationResultsContent() {
</span>
)}
</h2>
<div className="bg-content flex w-full flex-col gap-4 rounded-xl p-6">
<div className="bg-content-light dark:bg-content flex w-full flex-col gap-4 rounded-xl p-6">
<ul className="flex list-none flex-col gap-4 p-0">
{REQUIRED_FIELD_NAMES.map((name) => {
const value = latestResult.tags[name];
Expand Down
1 change: 1 addition & 0 deletions framegear/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const config: Config = {
input: '#191918',
'input-light': '#DBDBDB',
'link-button': '#2E3137',
'button-gutter-light': '#CBC8C7',
},
borderColor: {
button: '#cfd0d2',
Expand Down
Loading