Skip to content

Commit

Permalink
Add common ColorScheme (#58)
Browse files Browse the repository at this point in the history
* Add common ColorScheme

* Create clean-guests-clean.md

---------

Co-authored-by: Dax <mail@thdxr.com>
  • Loading branch information
Sathiyanarayanan-M and thdxr authored Dec 13, 2024
1 parent 41acdc2 commit 584728f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-guests-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openauthjs/openauth": patch
---

Add common ColorScheme
20 changes: 8 additions & 12 deletions packages/openauth/src/ui/theme.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
export type ColorScheme = {
dark: string
light: string
}

export interface Theme {
title?: string
favicon?: string
radius?: "none" | "sm" | "md" | "lg" | "full"
primary:
| string
| {
dark: string
light: string
}
| ColorScheme
background?:
| string
| {
dark: string
light: string
}
| ColorScheme
logo?:
| string
| {
dark: string
light: string
}
| ColorScheme
font?: {
family?: string
scale?: string
Expand Down

0 comments on commit 584728f

Please sign in to comment.