feat(frontend): switch to the dark graphite design system with a Lincodex wordmark
This commit is contained in:
1 parent
945ab6d6a9
commit
3c4acff803
81 files changed
+3187
-619
No files matched your search
@@ -3,13 +3,18 @@
|
||||
color: var(--color-text);
|
||||
font-family: var(--font-text);
|
||||
font-size: 100%;
|
||||
font-feature-settings:
|
||||
"cv11" 1,
|
||||
"ss01" 0;
|
||||
line-height: var(--line-height-body);
|
||||
background-color: var(--color-canvas);
|
||||
color-scheme: light;
|
||||
color-scheme: dark;
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizelegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
accent-color: var(--color-action);
|
||||
scrollbar-color: var(--color-border-hover) transparent;
|
||||
}
|
||||
|
||||
*,
|
||||
@@ -18,15 +23,31 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Sticky and fixed chrome must not hide the target of an in-page jump or of
|
||||
* a programmatic scroll into view. */
|
||||
html {
|
||||
scroll-padding-block: calc(var(--header-height) + var(--chrome-inset) * 2 + var(--space-2))
|
||||
var(--space-4);
|
||||
}
|
||||
|
||||
/* The candidate cabinet has a bottom tab bar on phones. */
|
||||
@media (width < 43.75rem) {
|
||||
html {
|
||||
scroll-padding-bottom: 5rem;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
min-width: 20rem;
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
font-size: var(--font-size-m);
|
||||
background-color: var(--color-canvas);
|
||||
}
|
||||
|
||||
/* Sparse dot grid: a quiet "protocol paper" texture behind surfaces. */
|
||||
background-image: radial-gradient(circle at 1px 1px, rgb(27 28 33 / 9%) 1px, transparent 1.5px);
|
||||
background-size: 1.5rem 1.5rem;
|
||||
::selection {
|
||||
color: var(--color-on-accent);
|
||||
background: var(--color-accent);
|
||||
}
|
||||
|
||||
h1,
|
||||
@@ -42,14 +63,30 @@ figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Headings speak in JetBrains Mono, the voice of the product. Paragraphs,
|
||||
* meta, and form text stay in Inter: long mono text tires the eye. */
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
font-family: var(--font-mono);
|
||||
font-weight: var(--font-weight-medium);
|
||||
letter-spacing: -0.01em;
|
||||
line-height: var(--line-height-snug);
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
strong,
|
||||
b {
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
code,
|
||||
kbd,
|
||||
samp {
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
@@ -64,8 +101,90 @@ svg {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* One focus indicator for every interactive element. Local dark regions
|
||||
* override --color-focus-ring with a checked value. */
|
||||
hr {
|
||||
height: 0;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
border-top: var(--line-thin) solid var(--color-divider);
|
||||
}
|
||||
|
||||
/*
|
||||
* Native form controls. Screens style their fields with module classes; these
|
||||
* element rules give every field the same dark capsule and padding. The html
|
||||
* prefix and the :not() list give them the specificity (0,1,2): above a
|
||||
* module rule such as ".field input" or ".input", below a state rule such as
|
||||
* ".field input[aria-invalid]" or ".input:focus-visible". Borders stay with
|
||||
* the modules, which use --color-border-strong and the danger color.
|
||||
*/
|
||||
html :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select) {
|
||||
min-height: var(--control-height);
|
||||
padding-inline: var(--space-4);
|
||||
border-radius: var(--radius-pill);
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-surface);
|
||||
}
|
||||
|
||||
html textarea:not([hidden]) {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-radius: var(--radius-s);
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-surface);
|
||||
}
|
||||
|
||||
/* A drawn chevron replaces the light native arrow. */
|
||||
html select:not([multiple]) {
|
||||
max-width: 100%;
|
||||
padding-inline-end: var(--space-7);
|
||||
appearance: none;
|
||||
background-image:
|
||||
linear-gradient(45deg, transparent 50%, var(--color-text-secondary) 50%),
|
||||
linear-gradient(135deg, var(--color-text-secondary) 50%, transparent 50%);
|
||||
background-position:
|
||||
right 1.35rem center,
|
||||
right 1rem center;
|
||||
background-repeat: no-repeat;
|
||||
background-size:
|
||||
0.35rem 0.35rem,
|
||||
0.35rem 0.35rem;
|
||||
}
|
||||
|
||||
select option {
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-surface-elevated);
|
||||
}
|
||||
|
||||
:is(input, textarea)::placeholder {
|
||||
color: var(--color-text-muted);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
:is(input, select, textarea):hover:not([readonly], :disabled, :focus, [aria-invalid="true"]) {
|
||||
border-color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
width: 1.125rem;
|
||||
height: 1.125rem;
|
||||
flex: none;
|
||||
accent-color: var(--color-action);
|
||||
}
|
||||
|
||||
/* A read-only field during a pending request stays readable but quiet. */
|
||||
:is(input, textarea)[readonly] {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
:is(input, select, textarea, button):disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
details > summary {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* One focus indicator for every interactive element. */
|
||||
:focus-visible {
|
||||
outline: var(--focus-ring-width) solid var(--color-focus-ring);
|
||||
outline-offset: var(--focus-ring-offset);
|
||||
|
||||
Reference in new issue
Block a user