summaryrefslogtreecommitdiff
path: root/examples/doc/public/theme.css
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2021-05-27 09:16:14 -0500
committerGravatar GitHub <noreply@github.com> 2021-05-27 09:16:14 -0500
commit5247a23cbe534d79cdf4abe4c200a351dddc5dc2 (patch)
tree343c54fb5471998b4e1a9150d15ba63028548928 /examples/doc/public/theme.css
parent19dc517b87c3b6ad90c97bd220fe96becf27b196 (diff)
downloadastro-5247a23cbe534d79cdf4abe4c200a351dddc5dc2.tar.gz
astro-5247a23cbe534d79cdf4abe4c200a351dddc5dc2.tar.zst
astro-5247a23cbe534d79cdf4abe4c200a351dddc5dc2.zip
Example: Docs template (#226)
* fix: markdown issues * wip: add docs example * example: update doc template * chore: credit Steph for AvatarList * chore: align footer to bottom viewport * chore: feeback R1 * fix: font fallback in firefox * fix merge conflicts * fix: add default value to headers * chore: fix doc example
Diffstat (limited to 'examples/doc/public/theme.css')
-rw-r--r--examples/doc/public/theme.css73
1 files changed, 73 insertions, 0 deletions
diff --git a/examples/doc/public/theme.css b/examples/doc/public/theme.css
new file mode 100644
index 000000000..d381604c8
--- /dev/null
+++ b/examples/doc/public/theme.css
@@ -0,0 +1,73 @@
+:root {
+ --font-fallback: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
+ --font-body: system-ui, var(--font-fallback);
+ --font-mono: source-code-pro,Menlo,Monaco,Consolas,'Courier New',monospace;
+
+ --color-white: #FFF;
+ --color-black: #000014;
+
+ --color-gray-50: #F9FAFB;
+ --color-gray-100: #F3F4F6;
+ --color-gray-200: #E5E7EB;
+ --color-gray-300: #D1D5DB;
+ --color-gray-400: #9CA3AF;
+ --color-gray-500: #6B7280;
+ --color-gray-600: #4B5563;
+ --color-gray-700: #374151;
+ --color-gray-800: #1F2937;
+ --color-gray-900: #111827;
+
+ --color-blue: #3894FF;
+ --color-blue-rgb: 56,148,255;
+ --color-green: #17C083;
+ --color-green-rgb: 23,192,131;
+ --color-orange: #FF5D01;
+ --color-orange-rgb: 255,93,1;
+ --color-purple: #882DE7;
+ --color-purple-rgb: 136,45,231;
+ --color-red: #FF1639;
+ --color-red-rgb: 255,22,57;
+ --color-yellow: #FFBE2D;
+ --color-yellow-rgb: 255,190,45;
+}
+
+:root {
+ color-scheme: light;
+ --theme-accent: var(--color-blue);
+ --theme-accent-rgb: var(--color-blue-rgb);
+ --theme-accent-opacity: 0.1;
+ --theme-divider: var(--color-gray-100);
+ --theme-text: var(--color-gray-800);
+ --theme-text-light: var(--color-gray-600);
+ --theme-text-lighter: var(--color-gray-400);
+ --theme-bg: var(--color-white);
+ --theme-bg-offset: var(--color-gray-100);
+ --theme-bg-accent: rgba(var(--theme-accent-rgb), var(--theme-accent-opacity));
+ --theme-code-inline-bg: var(--color-gray-100);
+ --theme-code-text: var(--color-gray-100);
+ --theme-code-bg: var(--color-gray-700);
+}
+
+body {
+ background: var(--theme-bg);
+ color: var(--theme-text);
+}
+
+:root.theme-dark {
+ color-scheme: dark;
+ --theme-accent-opacity: 0.3;
+ --theme-divider: var(--color-gray-900);
+ --theme-text: var(--color-gray-200);
+ --theme-text-light: var(--color-gray-400);
+ --theme-text-lighter: var(--color-gray-600);
+ --theme-bg: var(--color-black);
+ --theme-bg-offset: var(--color-gray-900);
+ --theme-code-inline-bg: var(--color-gray-800);
+ --theme-code-text: var(--color-gray-200);
+ --theme-code-bg: var(--color-gray-900);
+}
+
+::selection {
+ color: var(--theme-accent);
+ background-color: rgba(var(--theme-accent-rgb), var(--theme-accent-opacity));
+}