-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb0e8fa
commit 84e9c01
Showing
12 changed files
with
343 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* color palette from <https://github.com/vuejs/theme> */ | ||
:root { | ||
--vt-c-white: #ffffff; | ||
--vt-c-white-soft: #f8f8f8; | ||
--vt-c-white-mute: #f2f2f2; | ||
|
||
--vt-c-black: #181818; | ||
--vt-c-black-soft: #222222; | ||
--vt-c-black-mute: #282828; | ||
|
||
--vt-c-indigo: #2c3e50; | ||
|
||
--vt-c-divider-light-1: rgba(60, 60, 60, 0.29); | ||
--vt-c-divider-light-2: rgba(60, 60, 60, 0.12); | ||
--vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); | ||
--vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); | ||
|
||
--vt-c-text-light-1: var(--vt-c-indigo); | ||
--vt-c-text-light-2: rgba(60, 60, 60, 0.66); | ||
--vt-c-text-dark-1: var(--vt-c-white); | ||
--vt-c-text-dark-2: rgba(235, 235, 235, 0.64); | ||
} | ||
|
||
/* semantic color variables for this project */ | ||
:root { | ||
--color-background: var(--vt-c-white); | ||
--color-background-soft: var(--vt-c-white-soft); | ||
--color-background-mute: var(--vt-c-white-mute); | ||
|
||
--color-border: var(--vt-c-divider-light-2); | ||
--color-border-hover: var(--vt-c-divider-light-1); | ||
|
||
--color-heading: var(--vt-c-text-light-1); | ||
--color-text: var(--vt-c-text-light-1); | ||
|
||
--section-gap: 160px; | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
:root { | ||
--color-background: var(--vt-c-black); | ||
--color-background-soft: var(--vt-c-black-soft); | ||
--color-background-mute: var(--vt-c-black-mute); | ||
|
||
--color-border: var(--vt-c-divider-dark-2); | ||
--color-border-hover: var(--vt-c-divider-dark-1); | ||
|
||
--color-heading: var(--vt-c-text-dark-1); | ||
--color-text: var(--vt-c-text-dark-2); | ||
} | ||
} | ||
|
||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: border-box; | ||
margin: 0; | ||
position: relative; | ||
font-weight: normal; | ||
} | ||
|
||
body { | ||
min-height: 100vh; | ||
color: var(--color-text); | ||
background: var(--color-background); | ||
transition: color 0.5s, background-color 0.5s; | ||
line-height: 1.6; | ||
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, | ||
Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; | ||
font-size: 15px; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@import './base.css'; | ||
|
||
#app { | ||
max-width: 1280px; | ||
margin: 0 auto; | ||
padding: 2rem; | ||
|
||
font-weight: normal; | ||
} | ||
|
||
a, | ||
.green { | ||
text-decoration: none; | ||
color: hsla(160, 100%, 37%, 1); | ||
transition: 0.4s; | ||
} | ||
|
||
@media (hover: hover) { | ||
a:hover { | ||
background-color: hsla(160, 100%, 37%, 0.2); | ||
} | ||
} | ||
|
||
@media (min-width: 1024px) { | ||
body { | ||
display: flex; | ||
place-items: center; | ||
} | ||
|
||
#app { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
padding: 0 2rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
:root { | ||
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; | ||
line-height: 1.5; | ||
font-weight: 400; | ||
|
||
color-scheme: light dark; | ||
color: rgba(255, 255, 255, 0.87); | ||
background-color: #242424; | ||
|
||
font-synthesis: none; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
-webkit-text-size-adjust: 100%; | ||
} | ||
|
||
a { | ||
font-weight: 500; | ||
color: #646cff; | ||
text-decoration: inherit; | ||
} | ||
a:hover { | ||
color: #535bf2; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
display: flex; | ||
place-items: center; | ||
min-width: 320px; | ||
min-height: 100vh; | ||
} | ||
|
||
h1 { | ||
font-size: 3.2em; | ||
line-height: 1.1; | ||
} | ||
|
||
button { | ||
border-radius: 8px; | ||
border: 1px solid transparent; | ||
padding: 0.6em 1.2em; | ||
font-size: 1em; | ||
font-weight: 500; | ||
font-family: inherit; | ||
background-color: #1a1a1a; | ||
cursor: pointer; | ||
transition: border-color 0.25s; | ||
} | ||
button:hover { | ||
border-color: #646cff; | ||
} | ||
button:focus, | ||
button:focus-visible { | ||
outline: 4px auto -webkit-focus-ring-color; | ||
} | ||
|
||
.card { | ||
padding: 2em; | ||
} | ||
|
||
#app { | ||
max-width: 1280px; | ||
margin: 0 auto; | ||
padding: 2rem; | ||
text-align: center; | ||
} | ||
|
||
@media (prefers-color-scheme: light) { | ||
:root { | ||
color: #213547; | ||
background-color: #ffffff; | ||
} | ||
a:hover { | ||
color: #747bff; | ||
} | ||
button { | ||
background-color: #f9f9f9; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.