Skip to content

Commit

Permalink
feat: add tailwind env
Browse files Browse the repository at this point in the history
  • Loading branch information
lance10030 committed Aug 26, 2024
1 parent 2a2b3c8 commit 215c850
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ NEXT_PUBLIC_API_KEY=
NEXT_PUBLIC_OP_MAINNET_URL=
NEXT_PUBLIC_OP_SEPOLIA_URL=
NEXT_PUBLIC_BASE_SEPOLIA_URL=
NEXT_PUBLIC_IS_BASE=false
5 changes: 1 addition & 4 deletions tailwind/colors.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@

const baseOrigin = "base-sepolia.superproof.wtf"
// const baseOrigin = "localhost:3000"
const isBase = process.env.NEXT_PUBLIC_BASE_SEPOLIA_URL?.includes(baseOrigin)

const isBase = process.env.NEXT_PUBLIC_IS_BASE === "true"
const LightPrimaryColor = isBase ? "#0051ff" : "#b80018"
const LightBorderColor = isBase ? "#0051ff" : "#ff5c6c"
const DarkBorderColor = isBase ? "#0051ff" : "#ff0420"
Expand Down
1 change: 0 additions & 1 deletion tailwind/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { Config } from "tailwindcss";
import defaultTheme from "tailwindcss/defaultTheme";

import { baseColors, semanticColors } from "./colors";
console.log(process.env.NEXT_PUBLIC_BASE_SEPOLIA_URL, 'process-env1')

export default {
content: [""],
Expand Down

0 comments on commit 215c850

Please sign in to comment.