Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: OPTIC-1217: Implement Color design tokens as CSS variables and Dark Mode #6550

Open
wants to merge 56 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
1078dc1
feat: OPTIC-1217: Implement Color design tokens as CSS variables and …
ricardoantoniocm Oct 21, 2024
48f4af8
feat: OPTIC-1217: Implement Color design tokens as CSS variables and …
ricardoantoniocm Oct 21, 2024
64747ea
Merge branch 'develop' into fb-optic-1217/implement-design-tokens-as-…
yyassi-heartex Oct 23, 2024
657eadb
we have toggle in place
yyassi-heartex Oct 23, 2024
560dff5
we now reserve selection
yyassi-heartex Oct 23, 2024
e700440
Merge branch 'develop' into 'fb-optic-1217/implement-design-tokens-as…
yyassi-heartex Oct 23, 2024
1781c04
Adds correct background color to pagination.
ricardoantoniocm Oct 21, 2024
8d2a9ef
Refactored heidi-speaking so that the speech bubble spike can be colored
ricardoantoniocm Oct 23, 2024
bfcc0aa
Added semantic tokens to Enterprise badge
ricardoantoniocm Oct 23, 2024
d20b676
Fixes token naming for Breadcrumbs
ricardoantoniocm Oct 23, 2024
685e7c2
Updated nomenclature.
ricardoantoniocm Oct 23, 2024
8147ce7
changing ThemeToggle behavior
yyassi-heartex Oct 23, 2024
c54d818
lint cleanup
yyassi-heartex Oct 23, 2024
00bb287
Replaces variables across multiple files. Replaces some existing styles.
ricardoantoniocm Oct 24, 2024
17ca27c
Adds styles and animation to themeToggle.
ricardoantoniocm Oct 24, 2024
b286e64
Duplicates primitive and semantic color tokens on main.css.
ricardoantoniocm Oct 24, 2024
38bc081
Adapts the color of project card text based on the luminance of the c…
ricardoantoniocm Oct 24, 2024
3ca7d99
Additional variable replacements.
ricardoantoniocm Oct 24, 2024
5eae955
Merge branch 'develop' into 'fb-optic-1217/implement-design-tokens-as…
yyassi-heartex Oct 24, 2024
66e864e
Improves account page layout and adds dark mode support.
ricardoantoniocm Nov 4, 2024
be0d4ac
Improves login page and adds dark mode support.
ricardoantoniocm Nov 4, 2024
4bbb2e5
Refactors colors, adds raw variants.
ricardoantoniocm Nov 4, 2024
289655c
Adds dark mode support to pages and components.
ricardoantoniocm Nov 4, 2024
4887705
Merge branch 'develop' into fb-optic-1217/implement-design-tokens-as-…
yyassi-heartex Nov 5, 2024
bf464fb
moving the check to django template to prevent flicker when figuring …
yyassi-heartex Nov 5, 2024
f5ce41d
Revert "moving the check to django template to prevent flicker when f…
yyassi-heartex Nov 5, 2024
7061266
in template theme color toggle
yyassi-heartex Nov 5, 2024
456be4f
cleaning up console.log
yyassi-heartex Nov 5, 2024
b90d3b9
switching to dedicated block
yyassi-heartex Nov 5, 2024
8e8f1b8
Adds button and inputs look and feel to buttons that don't have it co…
ricardoantoniocm Nov 5, 2024
25d65db
Improves secondary button style on hover.
ricardoantoniocm Nov 5, 2024
e295ba2
Improves several pages and components.
ricardoantoniocm Nov 6, 2024
ce3ea0e
Adds dark mode support to pages and components.
ricardoantoniocm Nov 20, 2024
c0b5172
Refactors folder-empty icon.
ricardoantoniocm Nov 20, 2024
2dcd515
Adds descriptions to Semantic tokens.
ricardoantoniocm Nov 26, 2024
891f2cf
Adapts elements to dark mode.
ricardoantoniocm Nov 26, 2024
f8a1f5c
Adapts elements to dark mode.
ricardoantoniocm Nov 27, 2024
15d56ad
Adapts elements to dark mode.
ricardoantoniocm Nov 27, 2024
b0a10da
Adapts elements to dark mode
ricardoantoniocm Nov 28, 2024
843db29
ThemeToggle can now tell others what theme is currently in use
yyassi-heartex Nov 28, 2024
cb15ba7
adding color definition for darkvs light mode
yyassi-heartex Nov 28, 2024
0782e93
Adapts elements to dark mode.
ricardoantoniocm Jan 4, 2025
f42669b
Merge branch 'develop' into fb-optic-1217/implement-design-tokens-as-…
yyassi-heartex Jan 10, 2025
b51c97e
lint cleanup
yyassi-heartex Jan 10, 2025
ed36625
lint cleanup
yyassi-heartex Jan 10, 2025
3a600f5
Adds missing closing element.
ricardoantoniocm Jan 14, 2025
73b7360
Adds maximum width to User Account page.
ricardoantoniocm Jan 14, 2025
b2dafa8
Adapts elements to dark mode.
ricardoantoniocm Jan 14, 2025
8d956ac
Adapts elements to Dark Mode.
ricardoantoniocm Jan 14, 2025
45708af
Improves language of completed state for labeling queue.
ricardoantoniocm Jan 14, 2025
d920fd7
Lint fixes.
ricardoantoniocm Jan 14, 2025
20556c7
Removes empty line.
ricardoantoniocm Jan 14, 2025
3256dee
lint cleanup
ricardoantoniocm Jan 14, 2025
8a0c73d
Adds explicit button type for themeToggle
ricardoantoniocm Jan 14, 2025
93120a9
Adds explicit button type for MultiStateToggle
ricardoantoniocm Jan 14, 2025
5ebbcf2
Lint Cleanup
ricardoantoniocm Jan 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 42 additions & 21 deletions label_studio/core/static/css/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ html, body {
font-weight: 400;
height: 100%;
font-family: 'Hellix', sans-serif;
background-color: var(--color-neutral-background-bold);
color: var(--color-neutral-content);
}

.login_page_new_ui .left {
Expand All @@ -31,6 +33,18 @@ html, body {
background-size: contain;
}

.login_page_new_ui .ls-logo {
width: 414px;
height: 64px;
color: var(--color-neutral-content);
}

.login_page_new_ui .hs-logo {
width: 152px;
height: 22px;
color: var(--color-neutral-content);
}

.login_page_new_ui .left h2 {
font-size: 24px;
font-weight: 500;
Expand All @@ -48,7 +62,7 @@ html, body {
margin: 8px 0 0 0;
}

.login_page_new_ui .left .logo_humansignal{
.login_page_new_ui .left .by {
position: absolute;
bottom: 60px;
left: 60px;
Expand All @@ -60,12 +74,16 @@ html, body {
line-height: 28px;
}

.login_page_new_ui .left img {
color: var(--color-neutral-content);
}

.login_page_new_ui .tips {
max-width: 520px;
border-radius: 8px;
border: 1px solid var(--sand_300);
background: var(--sand_0);
box-shadow: 0 2px 6px 0 var(--sand_300);
border: 1px solid var(--color-neutral-border);
background: var(--color-neutral-surface);
box-shadow: 0 2px 6px 0 rgb(var(--color-neutral-shadow) / 20%);
padding: 16px;
margin:18vh 60px 0 60px;
position: relative;
Expand All @@ -79,6 +97,7 @@ html, body {
position: absolute;
bottom: -72px;
left: 16px;
fill: var(--color-neutral-border);
background: url('../images/heidi-tip.svg') no-repeat center center;
}

Expand All @@ -100,7 +119,7 @@ html, body {
}

.login_page_new_ui .tips .description a {
color: var(--primary_link);
color: var(--color-primary-content);
font-size: .875rem;
font-style: normal;
font-weight: 500;
Expand Down Expand Up @@ -134,22 +153,23 @@ html, body {
text-align: center;
padding: .75rem 0;
font-size: 1rem;
color: var(--sand_500);
color: var(--color-neutral-border);
border-top: 2px solid transparent;
transition: all 150ms ease-out;
}
.login_page_new_ui .toggle > *.active {
border-color: var(--primary_link);
color: var(--primary_link);
border-color: var(--color-primary-surface);
color: var(--color-primary-content);
}
.login_page_new_ui .toggle > *:hover {
color: var(--grape_700);
border-color: var(--grape_700);
color: var(--color-primary-surface-hover);
border-color: var(--color-primary-surface-hover);
}
.form-wrapper{
position: relative;
background: #FDFDFC;
background: var(--color-neutral-surface);
margin-top: 1.5rem;
border: 1px solid #E1DED5;
border: 1px solid var(--color-neutral-border);
padding: 2rem;
border-radius: 1rem;
box-shadow: 0px 0px 12px rgba(23, 20, 13, 0.16);
Expand Down Expand Up @@ -177,7 +197,7 @@ html, body {
margin: 0;
}
.login_page_new_ui form .error {
color: var(--red_7);
color: var(--color-negative-content);
font-size: .875rem;
}
.login_page_new_ui form input,
Expand All @@ -187,9 +207,10 @@ html, body {
font-family: 'Hellix', sans-serif;
}

.login_page_new_ui form button {
.login_page_new_ui form .lsf-button-ls.lsf-button-ls_look_primary {
--button-color: var(--color-neutral-inverted-content);
border-radius: 4rem;
background: var(--sand_900);
background: var(--color-neutral-inverted-surface);
}

.login_page_new_ui .field_errors {
Expand All @@ -199,7 +220,7 @@ html, body {
text-align: left;
font-size: .875rem;
line-height: 16px;
color: var(--red_7);
color: var(--color-negative-content);
}
.login_page_new_ui .field_errors li {
margin-top: .25rem;
Expand All @@ -214,10 +235,10 @@ html, body {
.auto-generated form input {
height: 40px;
min-height: 40px;
background: var(--sand_0);
background: var(--color-neutral-surface);
font-size: 1rem;
line-height: 22px;
border: 1px solid var(--sand_300);
border: 1px solid var(--color-neutral-border);
box-sizing: border-box;
border-radius: 5px;
padding: 0 16px;
Expand Down Expand Up @@ -298,11 +319,11 @@ label{
content: '';
display: block;
position: absolute;
top: 1px;
top: 2px;
left: 8px;
width: 5px;
height: 12px;
border: solid var(--sand_0);
height: 10px;
border: solid var(--color-primary-surface-content);
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
Expand Down
Loading
Loading