-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary & Motivation Introduce a system for theming the Dagster UI. All direct references to color values are replaced by a set of functions that match semantic color names to theme-based palette values. The theme value is exposed via a User Setting. Discussion here: #18439 ## How I Tested These Changes TS, lint, jest. Find all existing references to `LegacyColors`, hex values, rgb/rgba values and replace them with color functions. Navigate throughout the app in legacy, light, and dark modes. Verify that colors look appropriate. --------- Co-authored-by: Josh Braun <[email protected]>
- Loading branch information
Showing
307 changed files
with
4,217 additions
and
1,848 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,15 @@ import { | |
Box, | ||
Button, | ||
Checkbox, | ||
Colors, | ||
Dialog, | ||
ExternalAnchorButton, | ||
Heading, | ||
Icon, | ||
Spinner, | ||
TextInput, | ||
colorAccentRed, | ||
colorTextLight, | ||
colorTextRed, | ||
} from '@dagster-io/ui-components'; | ||
import {useStateWithStorage} from '@dagster-io/ui-core/hooks/useStateWithStorage'; | ||
import React from 'react'; | ||
|
@@ -101,7 +103,7 @@ const Form = ({dismiss, submit}: FormProps) => { | |
> | ||
<Box flex={{direction: 'column', gap: 8, alignItems: 'start', justifyContent: 'start'}}> | ||
<Heading>Join the Dagster community</Heading> | ||
<Body style={{color: Colors.Gray700, marginBottom: '4px'}}> | ||
<Body style={{color: colorTextLight(), marginBottom: '4px'}}> | ||
Connect with thousands of other data practitioners building with Dagster. Share | ||
knowledge, get help, and contribute to the open-source project. | ||
</Body> | ||
|
@@ -126,11 +128,11 @@ const Form = ({dismiss, submit}: FormProps) => { | |
}} | ||
onBlur={() => setBlurred(true)} | ||
placeholder="[email protected]" | ||
strokeColor={!emailChanged || validEmail ? undefined : Colors.Red500} | ||
strokeColor={!emailChanged || validEmail ? undefined : colorAccentRed()} | ||
style={{width: '100%'}} | ||
/> | ||
{emailChanged && blurred && !validEmail ? ( | ||
<div style={{paddingBottom: '12px', color: Colors.Red500, fontSize: '12px'}}> | ||
<div style={{paddingBottom: '12px', color: colorTextRed(), fontSize: '12px'}}> | ||
Add your email to get updates from Dagster. | ||
</div> | ||
) : null} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
e5bfb14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagit-storybook ready!
✅ Preview
https://dagit-storybook-bo2ofxvsr-elementl.vercel.app
Built with commit e5bfb14.
This pull request is being automatically deployed with vercel-action
e5bfb14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagit-core-storybook ready!
✅ Preview
https://dagit-core-storybook-perp684r2-elementl.vercel.app
Built with commit e5bfb14.
This pull request is being automatically deployed with vercel-action