Skip to content

Commit

Permalink
feat([sc-9893]): add nfid dark/light logo
Browse files Browse the repository at this point in the history
  • Loading branch information
plitzenberger committed Dec 19, 2023
1 parent 5603ec4 commit f950ba1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
Binary file added docs/public/img/logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/img/logo-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions docs/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",

// Or if using `src` directory:
'./src/**/*.{js,ts,jsx,tsx,mdx}',
"./src/**/*.{js,ts,jsx,tsx,mdx}",
"./theme.config.tsx",
],
darkMode: "class",
theme: {
extend: {},
},
Expand Down
12 changes: 11 additions & 1 deletion docs/theme.config.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
import Image from "next/image"

import LogoLight from "./public/img/logo-light.png"
import LogoDark from "./public/img/logo-dark.png"

const REPO_BASE = "https://github.com/internet-identity-labs/nfid"
const theme = {
logo: (
<div>
<strong>@nfid</strong>/identity-kit
<div className="flex items-center dark:hidden">
<Image src={LogoLight} alt="logo" width={67} height={32} />
</div>
<div className="items-center hidden dark:flex">
<Image src={LogoDark} alt="logo" width={67} height={32} />
</div>
</div>
),
docsRepositoryBase: REPO_BASE,
Expand Down

0 comments on commit f950ba1

Please sign in to comment.