Skip to content

Commit

Permalink
new-theme-landing
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Jul 2, 2023
1 parent 95ace17 commit cd5bd06
Show file tree
Hide file tree
Showing 7 changed files with 131 additions and 758 deletions.
1 change: 1 addition & 0 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useEffect } from 'react'
import 'animate.css'
import '@/styles/globals.css'
import '@/styles/nprogress.css'
import '@/styles/utility-patterns.css'

// core styles shared by all of react-notion-x (required)
import 'react-notion-x/src/styles.css'
Expand Down
17 changes: 1 addition & 16 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -331,19 +331,4 @@ a.avatar-wrapper {
column-count: 1;
column-gap: .5rem;
}
}


/* Buttons */
.btn,
.btn-sm {
@apply font-medium inline-flex items-center justify-center border border-transparent rounded leading-snug transition duration-150 ease-in-out;
}

.btn {
@apply px-8 py-3 shadow-lg;
}

.btn-sm {
@apply px-4 py-2 shadow;
}
}
79 changes: 79 additions & 0 deletions styles/utility-patterns.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/* Typography */
.h1 {
@apply text-4xl font-extrabold leading-tight tracking-tighter;
}

.h2 {
@apply text-3xl font-extrabold leading-tight tracking-tighter;
}

.h3 {
@apply text-3xl font-bold leading-tight;
}

.h4 {
@apply text-2xl font-bold leading-snug tracking-tight;
}

@screen md {
.h1 {
@apply text-5xl;
}

.h2 {
@apply text-4xl;
}
}

/* Buttons */
.btn,
.btn-sm {
@apply font-medium inline-flex items-center justify-center border border-transparent rounded leading-snug transition duration-150 ease-in-out;
}

.btn {
@apply px-8 py-3 shadow-lg;
}

.btn-sm {
@apply px-4 py-2 shadow;
}

/* Forms */
.form-input,
.form-textarea,
.form-multiselect,
.form-select,
.form-checkbox,
.form-radio {
@apply bg-white border border-gray-300 focus:border-gray-500;
}

.form-input,
.form-textarea,
.form-multiselect,
.form-select,
.form-checkbox {
@apply rounded;
}

.form-input,
.form-textarea,
.form-multiselect,
.form-select {
@apply py-3 px-4;
}

.form-input,
.form-textarea {
@apply placeholder-gray-500;
}

.form-select {
@apply pr-10;
}

.form-checkbox,
.form-radio {
@apply text-gray-800 rounded-sm;
}
Loading

0 comments on commit cd5bd06

Please sign in to comment.