Skip to content

Commit 162a5a8

Browse files
feat(styles): add support for IBM Plex from the @ibm/plex package (#10205)
* feat(carbon-react): add new scss exports and update plex stories * feat(styles): add support for IBM Plex Mono, Sans, Serif * feat(styles): add support for IBM Plex Sans Devanagari * feat(styles): add support for IBM Plex Sans Hebrew * feat(styles): add support for IBM Plex Thai, IBM Plex Thai Looped * fix(styles): update font family for IBM Plex Sans Thai * docs(styles): update fonts docs with supported fonts * chore(styles): remove reference to css--plex-arabic * docs(fonts): update docs with font weights Co-authored-by: Taylor Jones <tay1orjones@users.noreply.github.com>
1 parent e0657b3 commit 162a5a8

34 files changed

+2083
-101
lines changed

packages/carbon-react/.storybook/styles.scss

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@
55
// LICENSE file in the root directory of this source tree.
66
//
77

8-
@use '../index.scss' as styles with (
9-
$css--font-face: true,
10-
$css--plex-arabic: true,
11-
);
12-
@use '../scss/components/button';
13-
@use '../scss/components/tag';
8+
@use '../index.scss' as styles;
149

1510
:root {
1611
@include styles.theme(styles.$white);
@@ -31,16 +26,3 @@
3126
body {
3227
background: styles.$background;
3328
}
34-
35-
html[lang='en'] body {
36-
font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
37-
}
38-
39-
html[lang='ar'] body {
40-
font-family: 'IBM Plex Sans Arabic', 'Helvetica Neue', Arial, sans-serif;
41-
}
42-
43-
.text-mono {
44-
font-family: 'IBM Plex Mono', Menlo, 'DejaVu Sans Mono',
45-
'Bitstream Vera Sans Mono', Courier, monospace;
46-
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Code generated by @carbon/react. DO NOT EDIT.
2+
//
3+
// Copyright IBM Corp. 2018, 2018
4+
//
5+
// This source code is licensed under the Apache-2.0 license found in the
6+
// LICENSE file in the root directory of this source tree.
7+
//
8+
9+
@forward '@carbon/styles/scss/fonts';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Code generated by @carbon/react. DO NOT EDIT.
2+
//
3+
// Copyright IBM Corp. 2018, 2018
4+
//
5+
// This source code is licensed under the Apache-2.0 license found in the
6+
// LICENSE file in the root directory of this source tree.
7+
//
8+
9+
@forward '@carbon/styles/scss/fonts/mono';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Code generated by @carbon/react. DO NOT EDIT.
2+
//
3+
// Copyright IBM Corp. 2018, 2018
4+
//
5+
// This source code is licensed under the Apache-2.0 license found in the
6+
// LICENSE file in the root directory of this source tree.
7+
//
8+
9+
@forward '@carbon/styles/scss/fonts/sans-arabic';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Code generated by @carbon/react. DO NOT EDIT.
2+
//
3+
// Copyright IBM Corp. 2018, 2018
4+
//
5+
// This source code is licensed under the Apache-2.0 license found in the
6+
// LICENSE file in the root directory of this source tree.
7+
//
8+
9+
@forward '@carbon/styles/scss/fonts/sans-devanagari';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Code generated by @carbon/react. DO NOT EDIT.
2+
//
3+
// Copyright IBM Corp. 2018, 2018
4+
//
5+
// This source code is licensed under the Apache-2.0 license found in the
6+
// LICENSE file in the root directory of this source tree.
7+
//
8+
9+
@forward '@carbon/styles/scss/fonts/sans-hebrew';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Code generated by @carbon/react. DO NOT EDIT.
2+
//
3+
// Copyright IBM Corp. 2018, 2018
4+
//
5+
// This source code is licensed under the Apache-2.0 license found in the
6+
// LICENSE file in the root directory of this source tree.
7+
//
8+
9+
@forward '@carbon/styles/scss/fonts/sans-thai-looped';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Code generated by @carbon/react. DO NOT EDIT.
2+
//
3+
// Copyright IBM Corp. 2018, 2018
4+
//
5+
// This source code is licensed under the Apache-2.0 license found in the
6+
// LICENSE file in the root directory of this source tree.
7+
//
8+
9+
@forward '@carbon/styles/scss/fonts/sans-thai';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Code generated by @carbon/react. DO NOT EDIT.
2+
//
3+
// Copyright IBM Corp. 2018, 2018
4+
//
5+
// This source code is licensed under the Apache-2.0 license found in the
6+
// LICENSE file in the root directory of this source tree.
7+
//
8+
9+
@forward '@carbon/styles/scss/fonts/sans';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Code generated by @carbon/react. DO NOT EDIT.
2+
//
3+
// Copyright IBM Corp. 2018, 2018
4+
//
5+
// This source code is licensed under the Apache-2.0 license found in the
6+
// LICENSE file in the root directory of this source tree.
7+
//
8+
9+
@forward '@carbon/styles/scss/fonts/serif';

0 commit comments

Comments
 (0)