paris 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +10 -0
- package/package.json +1 -1
- package/src/stories/text/Text.module.scss +5 -5
- package/src/stories/theme/themes.ts +8 -8
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -20,6 +20,16 @@ yarn add paris
|
|
|
20
20
|
npm i paris
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
+
Make sure your `tsconfig` module resolution is set to `nodenext`, `node16`, or `bundler` to support `paris` imports:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"compilerOptions": {
|
|
28
|
+
"moduleResolution": "bundler"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
23
33
|
You'll need to tell your bundler to transpile files from Paris. This is easy in Next.js 13.1+ with the `transpilePackages` option in `next.config.js`:
|
|
24
34
|
|
|
25
35
|
```js
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "paris",
|
|
3
3
|
"author": "Sanil Chawla <sanil@slingshot.fm> (https://sanil.co)",
|
|
4
4
|
"description": "Paris is Slingshot's React design system. It's a collection of reusable components, design tokens, and guidelines that help us build consistent, accessible, and performant user interfaces.",
|
|
5
|
-
"version": "0.4.
|
|
5
|
+
"version": "0.4.5",
|
|
6
6
|
"homepage": "https://paris.slingshot.fm",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
/* Font weight theme values */
|
|
6
6
|
$text-weights: (
|
|
7
7
|
"thin": var(--pte-typography-fontWeights-thin),
|
|
8
|
-
"
|
|
8
|
+
"extralight": var(--pte-typography-fontWeights-extralight),
|
|
9
9
|
"light": var(--pte-typography-fontWeights-light),
|
|
10
10
|
"normal": var(--pte-typography-fontWeights-normal),
|
|
11
11
|
"medium": var(--pte-typography-fontWeights-medium),
|
|
12
|
-
"
|
|
12
|
+
"semibold": var(--pte-typography-fontWeights-semibold),
|
|
13
13
|
"bold": var(--pte-typography-fontWeights-bold),
|
|
14
|
-
"
|
|
14
|
+
"extrabold": var(--pte-typography-fontWeights-extrabold),
|
|
15
15
|
"black": var(--pte-typography-fontWeights-black),
|
|
16
|
-
"
|
|
16
|
+
"extrablack": var(--pte-typography-fontWeights-extrablack),
|
|
17
17
|
);
|
|
18
18
|
|
|
19
19
|
|
|
@@ -35,4 +35,4 @@ $style-value in $font-styles {
|
|
|
35
35
|
.fontStyle-#{$style-name} {
|
|
36
36
|
font-style: $style-value;
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
}
|
|
@@ -124,15 +124,15 @@ export type Theme = {
|
|
|
124
124
|
|
|
125
125
|
fontWeights: {
|
|
126
126
|
thin: number,
|
|
127
|
-
|
|
127
|
+
extralight: number,
|
|
128
128
|
light: number,
|
|
129
129
|
normal: number,
|
|
130
130
|
medium: number,
|
|
131
|
-
|
|
131
|
+
semibold: number,
|
|
132
132
|
bold: number,
|
|
133
|
-
|
|
133
|
+
extrabold: number,
|
|
134
134
|
black: number,
|
|
135
|
-
|
|
135
|
+
extrablack: number,
|
|
136
136
|
},
|
|
137
137
|
|
|
138
138
|
fontStyles: {
|
|
@@ -343,15 +343,15 @@ export const LightTheme: Theme = {
|
|
|
343
343
|
|
|
344
344
|
fontWeights: {
|
|
345
345
|
thin: 100,
|
|
346
|
-
|
|
346
|
+
extralight: 200,
|
|
347
347
|
light: 300,
|
|
348
348
|
normal: 400,
|
|
349
349
|
medium: 500,
|
|
350
|
-
|
|
350
|
+
semibold: 600,
|
|
351
351
|
bold: 700,
|
|
352
|
-
|
|
352
|
+
extrabold: 800,
|
|
353
353
|
black: 900,
|
|
354
|
-
|
|
354
|
+
extrablack: 950,
|
|
355
355
|
},
|
|
356
356
|
|
|
357
357
|
fontStyles: {
|