-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[base] Update default CSS variables (#1867)
* [test-studio] Add tool for visualizing CSS variables * [base] Update CSS variables * [base] Fix missing application of CSS variables * [base] Fix monospace font * [base] Update default code colors * [base] Update loading screen colors * [base] Fix hover backgrounds and adjust fullscreen dialog
- Loading branch information
1 parent
55307a7
commit dda3bf1
Showing
35 changed files
with
3,156 additions
and
196 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
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
20 changes: 13 additions & 7 deletions
20
packages/@sanity/base/src/styles/variables/brand-colors.css
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 |
---|---|---|
@@ -1,9 +1,15 @@ | ||
:root { | ||
--brand-darkest: #000; | ||
--brand-lightest: #fff; | ||
--gray-base: #323232; | ||
--brand-primary: #24a3e3; | ||
--brand-primary--inverted: #fff; | ||
--brand-secondary: #f43; | ||
--brand-secondary--inverted: #fff; | ||
--black: #000; | ||
--white: #fff; | ||
--brand-darkest: var(--black); | ||
--brand-darkest--inverted: color(var(--brand-darkest) contrast(80%)); | ||
--brand-lightest: var(--white); | ||
--brand-primary: #2276fc; | ||
--brand-primary--inverted: var(--brand-lightest); | ||
--brand-secondary: #f03e2f; | ||
--brand-secondary--inverted: var(--brand-lightest); | ||
|
||
/* Base */ | ||
--brand-faded: color(var(--brand-primary) blend(var(--white) 60%)); | ||
--gray-base: color(var(--black) blend(var(--brand-faded) 50%)); | ||
} |
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 |
---|---|---|
@@ -1,12 +1,17 @@ | ||
@import 'part:@sanity/base/theme/variables/gray-colors-style'; | ||
|
||
:root { | ||
--code-color: #c7254e; | ||
--code-bg: #f9f2f4; | ||
--kbd-color: #fff; | ||
--kbd-bg: #333; | ||
--pre-bg: #f5f5f5; | ||
/* Code */ | ||
--code-bg: var(--gray-lightest); | ||
--code-color: var(--gray-dark); | ||
|
||
/* KBD */ | ||
--kbd-bg: var(--gray-lighter); | ||
--kbd-color: var(--gray-darker); | ||
|
||
/* Pre */ | ||
--pre-bg: var(--gray-lightest); | ||
--pre-color: var(--gray-dark); | ||
--pre-border-color: #ccc; | ||
--pre-border-color: var(--gray-lighter); | ||
--pre-scrollable-max-height: 20em; | ||
} |
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.
dda3bf1
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.
Successfully deployed to following URLs: