This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add the redacted screenshot mode * update font-settings font-families * add url warning to setting label --------- Co-authored-by: James Bradford <[email protected]>
- Loading branch information
1 parent
4c93989
commit 5c0dce1
Showing
10 changed files
with
139 additions
and
19 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
File renamed without changes.
File renamed without changes.
50 changes: 50 additions & 0 deletions
50
packages/ui-styles/src/styles/font-face-redacted-script-local.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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* https://fonts.googleapis.com/css2?family=Redacted+Script:wght@300;400;700 */ | ||
|
||
/* latin-ext */ | ||
@font-face { | ||
font-family: 'Redacted Script'; | ||
font-style: normal; | ||
font-weight: 300; | ||
src: url('@fontsource/redacted-script/files/redacted-script-latin-ext-300-normal.woff2') format('woff2'); | ||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | ||
} | ||
/* latin */ | ||
@font-face { | ||
font-family: 'Redacted Script'; | ||
font-style: normal; | ||
font-weight: 300; | ||
src: url('@fontsource/redacted-script/files/redacted-script-latin-300-normal.woff2') format('woff2'); | ||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | ||
} | ||
/* latin-ext */ | ||
@font-face { | ||
font-family: 'Redacted Script'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url('@fontsource/redacted-script/files/redacted-script-latin-ext-400-normal.woff2') format('woff2'); | ||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | ||
} | ||
/* latin */ | ||
@font-face { | ||
font-family: 'Redacted Script'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url('@fontsource/redacted-script/files/redacted-script-latin-400-normal.woff2') format('woff2'); | ||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | ||
} | ||
/* latin-ext */ | ||
@font-face { | ||
font-family: 'Redacted Script'; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: url('@fontsource/redacted-script/files/redacted-script-latin-ext-700-normal.woff2') format('woff2'); | ||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | ||
} | ||
/* latin */ | ||
@font-face { | ||
font-family: 'Redacted Script'; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: url('@fontsource/redacted-script/files/redacted-script-latin-700-normal.woff2') format('woff2'); | ||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { css } from '@emotion/react'; | ||
|
||
// font import | ||
import './font-face-ibm-plex-local.css'; | ||
import './font-face-redacted-script-local.css'; | ||
|
||
export const redactedFontClassName = 'RedactedFont'; | ||
|
||
// maybe put this on parts of the UI that don't display data | ||
export const unRedactedFontClassName = 'UnRedactedFont'; | ||
|
||
export const fontSettings = css` | ||
:root { | ||
&, | ||
.${unRedactedFontClassName} { | ||
--pt-font-family-sans: 'IBM Plex Sans', 'Helvetica Neue', -apple-system, 'Segoe UI', Arial, sans-serif; | ||
--pt-font-family-monospace: 'IBM Plex Mono', Menlo, Consolas, monospace; | ||
font-family: var(--pt-font-family-sans); | ||
code, | ||
pre { | ||
font-family: var(--pt-font-family-monospace); | ||
} | ||
} | ||
&.${redactedFontClassName}, & .${redactedFontClassName} { | ||
--pt-font-family-sans: 'Redacted Script'; | ||
--pt-font-family-monospace: 'Redacted Script'; | ||
} | ||
} | ||
`; |
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