Skip to content

Commit

Permalink
Daisyui update (#1008)
Browse files Browse the repository at this point in the history
Co-authored-by: Aswin V <[email protected]>
  • Loading branch information
deepakprabhakara and niwsa authored Feb 8, 2024
1 parent 373eb19 commit 80c2bce
Show file tree
Hide file tree
Showing 20 changed files with 2,696 additions and 216 deletions.
4 changes: 2 additions & 2 deletions components/auth/AgreeMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const AgreeMessage = ({ text }) => {
rel="noopener noreferrer"
target="_blank"
href={process.env.NEXT_PUBLIC_TERMS_URL || '/terms'}
className="font-medium text-primary hover:text-primary-focus"
className="font-medium text-primary hover:text-[color-mix(in_oklab,oklch(var(--p)),black_7%)]"
>
{t('terms')}
</Link>{' '}
Expand All @@ -20,7 +20,7 @@ const AgreeMessage = ({ text }) => {
rel="noopener noreferrer"
target="_blank"
href={process.env.NEXT_PUBLIC_PRIVACY_URL || '/privacy'}
className="font-medium text-primary hover:text-primary-focus"
className="font-medium text-primary hover:text-[color-mix(in_oklab,oklch(var(--p)),black_7%)]"
>
{t('privacy')}
</Link>
Expand Down
2 changes: 1 addition & 1 deletion components/auth/GithubButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const GithubButton = () => {

return (
<Button
className="btn-outline w-full"
className="btn btn-outline w-full"
onClick={() => {
signIn('github', {
callbackUrl,
Expand Down
2 changes: 1 addition & 1 deletion components/auth/GoogleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const GoogleButton = () => {

return (
<Button
className="btn-outline w-full"
className="btn btn-outline w-full"
onClick={() => {
signIn('google', {
callbackUrl,
Expand Down
4 changes: 2 additions & 2 deletions components/auth/MagicLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ const MagicLink = ({ csrfToken }: MagicLinkProps) => {
<div className="space-y-3">
<Link
href={`/auth/login/${params}`}
className="btn-outline btn w-full"
className="btn btn-outline w-full"
>
&nbsp;{t('sign-in-with-password')}
</Link>
<Link href="/auth/sso" className="btn-outline btn w-full">
<Link href="/auth/sso" className="btn btn-outline w-full">
&nbsp;{t('continue-with-saml-sso')}
</Link>
</div>
Expand Down
4 changes: 2 additions & 2 deletions components/defaultLanding/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ const HeroSection = () => {
<div className="flex items-center justify-center gap-2 ">
<Link
href="/auth/join"
className="btn-primary btn px-8 no-underline"
className="btn btn-primary px-8 no-underline"
>
{t('get-started')}
</Link>
<Link
href="https://github.com/boxyhq/saas-starter-kit"
className="btn-outline btn px-8"
className="btn btn-outline px-8"
>
GitHub
</Link>
Expand Down
2 changes: 1 addition & 1 deletion components/invitation/InviteViaLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const InviteViaLink = ({ team }: InviteViaLinkProps) => {
? `Anyone with an email address ending with ${invitation.allowedDomains} can use this link to join your team.`
: 'Anyone can use this link to join your team.'}
<Button
className="btn-xs btn-link link-error"
className="btn btn-xs btn-link link-error"
onClick={() => setShowDelDialog(true)}
>
{t('delete-link')}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Modal = ({ open, close, children }: ModalProps) => {
type="button"
size="sm"
shape="circle"
className="absolute right-2 top-2 btn-ghost rounded-full"
className="btn absolute right-2 top-2 btn-ghost rounded-full"
onClick={close}
aria-label="close"
>
Expand Down
18 changes: 18 additions & 0 deletions components/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import styles from 'styles/sdk-override.module.css';

export const BOXYHQ_UI_CSS = {
button: {
ctoa: 'btn btn-md btn-primary',
destructive: 'btn btn-md btn-error',
},
input: `${styles['sdk-input']} input input-bordered`,
textarea: styles['sdk-input'],
confirmationPrompt: {
button: {
ctoa: 'btn-md',
cancel: 'btn-md btn-outline',
},
},
secretInput: 'input input-bordered',
section: 'mb-8',
};
Loading

0 comments on commit 80c2bce

Please sign in to comment.