Skip to content

Commit

Permalink
Updated color and type ramps
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed Feb 23, 2024
1 parent c1c5d8d commit a5d85b1
Show file tree
Hide file tree
Showing 7 changed files with 123 additions and 45 deletions.
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<body data-sveltekit-preload-data="tap">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
12 changes: 6 additions & 6 deletions src/lib/components/common/KV.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@
gap: 0.625rem;
border-radius: 0.25rem;
border: 1px solid var(--color-blue-gray, #b5ceed);
background: var(--color-gray-light, #eef3f9);
border: 1px solid var(--blue-2, #b5ceed);
background: var(--blue-1, #eef3f9);
}
.key,
.value {
color: var(--color-blue-dark, rgba(21, 51, 89, 0.6));
font-size: var(--font-size-tiny, 0.625rem);
color: var(--gray-4, #5c717c);
font-size: var(--font-xs, 0.75rem);
font-style: italic;
font-weight: 400;
font-weight: var(--font-regular, 400);
line-height: normal;
}
.value {
color: var(--color-blue-dark, #153359);
color: var(--blue-5, #153359);
font-style: normal;
}
</style>
21 changes: 10 additions & 11 deletions src/lib/components/documents/DocumentListItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -98,26 +98,26 @@ It's deliberately minimal and can be wrapped in other components to add addition
}
h4 {
color: var(--color-black, #000);
font-size: 1rem;
color: var(--gray-5, #233944);
font-size: var(--font-m, 1rem);
font-style: normal;
font-weight: 600;
font-weight: var(--font-semibold, 600);
line-height: normal;
}
.meta {
color: var(--color-gray, rgba(0, 0, 0, 0.6));
color: var(--gray-4, #5c717c);
font-size: 0.75rem;
font-style: normal;
font-weight: 400;
font-weight: var(--font-regular, 400);
line-height: normal;
}
.description {
color: var(--color-black, #000);
color: var(--gray-5, #233944);
font-size: 0.75rem;
font-style: normal;
font-weight: 400;
font-weight: var(--font-regular, 400);
line-height: normal;
overflow: hidden;
text-overflow: ellipsis;
Expand All @@ -133,12 +133,11 @@ It's deliberately minimal and can be wrapped in other components to add addition
}
.open {
overflow: hidden;
color: var(--color-primary, #4294f0);
text-overflow: ellipsis;
font-size: var(--font-size-small, 0.75rem);
color: var(--primary, #4294f0);
font-size: var(--font-xs, 0.75rem);
font-style: normal;
font-weight: 700;
line-height: normal;
text-transform: uppercase;
}
</style>
2 changes: 0 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script lang="ts">
import "@/style/kit.css";
import type { LayoutData } from "./$types";
import type { User } from "@/api/types/orgAndUser.d.ts";
Expand Down
5 changes: 5 additions & 0 deletions src/routes/app/+layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script>
import "@/style/kit.css";
</script>

<slot />
2 changes: 2 additions & 0 deletions src/routes/documents/[id]-[slug]/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script lang="ts">
import "@/style/kit.css";
import type { PageData } from "./$types";
import { embedUrl } from "@/api/embed.js";
import { pageImageUrl } from "@/api/viewer.js";
Expand Down
124 changes: 99 additions & 25 deletions src/style/kit.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,107 @@ Updated variables and styles for new SvelteKit routes
:root {
/* fonts */
--font-sans: "Source Sans Pro";
--font-size-tiny: 0.625rem;
--font-size-small: 0.75rem;
--font-size-normal: 1rem;
--font-size-large: 1.25rem;
--font-size-largest: 1.5rem;
--font-xs: 0.75rem;
--font-s: 0.875rem;
--font-m: 1rem;
--font-l: 1.25rem;
--font-xl: 1.5rem;

/* Font Weights */
--font-regular: 400;
--font-semibold: 600;

/* colors */
--color-black: #000;
--color-white: #fff;

--color-gray-light: #eef3f9;
--color-gray: #555555;
--color-gray-dark: #153359;

--color-yellow: #ffe325;
--color-green: #93e48f;
--color-green-shiny: #24cc99;
--color-blue: #4294f0;
--color-blue-light: #ff785c;
--color-blue-dark: #1e508c;
--color-blue-gray: #b5ceed;
--color-purple: #5c1e8c;
--white: #ffffff;
--black: #0c1e27;

--gray-1: #f5f6f7;
--gray-2: #d8dee2;
--gray-3: #99a8b3;
--gray-4: #5c717c;
--gray-5: #233944;

--red: #e1275f;
--red-dark: #5d275f;
--red-light: #e9a1bb;

--orange: #ec7b6b;
--orange-dark: #69515c;
--orange-light: #ffc2ba;

--yellow: #eccb6b;
--yellow-bright: #ffe325;
--yellow-light: #ffe5ba;
--yellow-dark: #69755c;

--green: #27c6a2;
--green-dark: #117383;
--green-light: #9de3d3;
--green-shiny: #24cc99;

--blue-1: #eef3f9;
--blue-2: #b5ceed;
--blue-3: #4294f0;
--blue-4: #1367d0;
--blue-5: #053775;

--purple: #744af0;
--purple-light: #dfd5fa;
--purple-dark: #343ba6;

/* semantic aliases */
--color-primary: var(--color-blue);
--color-premium: var(--color-green-shiny);
--color-note-public: var(--color-yellow);
--color-note-private: var(--color-blue-light);
--color-note-org: var(--color-green);
--primary: var(--blue-3);
--premium: var(--green-shiny);
--note-public: var(--color-yellow);
--note-private: var(--color-blue-light);
--note-org: var(--color-green);

/* Text-size styles */
--action: 12px;

/* Effect styles */
--border: #d9d9d9;
--glare: inset 8px 8px 16px rgba(255, 255, 255, 0.25);
--shadow: 0px 2px 4px rgba(128, 128, 128, 0.15);
}

html,
body {
font-family: var(--font-sans), sans-serif;
line-height: 1.25;
}

/* reset */
h1,
h2,
h3,
h4,
h5,
h6,
p {
margin: 0;
}

h1 {
font-size: var(--font-xl);
}

h2 {
font-size: var(--font-l);
}

h3 {
font-size: var(--font-m);
}

h4 {
font-size: var(--font-s);
}

h5 {
font-size: var(--font-xs);
}

p {
font-size: var(--font-m);
}

0 comments on commit a5d85b1

Please sign in to comment.