Skip to content

Commit

Permalink
styles: theme prefs
Browse files Browse the repository at this point in the history
  • Loading branch information
barelyhuman committed Jun 23, 2022
1 parent 9118d01 commit 7490305
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions example/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
@import url("https://rsms.me/raster/raster2.css?v=20");

@import url('https://rsms.me/raster/raster2.css?v=20');

:root {
--base: #040507;
--surface: #0d1117;
--overlay: #171d27;
--muted: #455a78;
--subtle: #8499b9;
--text: #d5dde7;
--base: #f8f9fa;
--text: #343a40;

--subtle: #495057;
--muted: #868e96;

--surface: #f1f3f5;
--overlay: #e9ecef;
}

@media (prefers-color-scheme: dark) {
:root {
--base: #212529;
--text: #f8f9fa;

--subtle: #f1f3f5;
--muted: #e9ecef;

--overlay: #495057;
--surface: #343a40;
}
}

:root {
--fontSize: 14px;
--background-color: var(--base);
--foreground-color: var(--text);
}

input[type="text"] {
input[type='text'] {
margin: 10px;
padding: 4px 10px;
background: var(--surface);
Expand All @@ -26,6 +39,10 @@ input[type="text"] {
color: var(--text);
}

a {
color: var();
}

code.hljs {
border-radius: 6px;
}
Expand Down

1 comment on commit 7490305

@vercel
Copy link

@vercel vercel bot commented on 7490305 Jun 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

choxy – ./

choxy-git-main-reaper.vercel.app
choxy-reaper.vercel.app
choxy.vercel.app

Please sign in to comment.