@sanity/ui 2.0.0-beta.17 → 2.0.0-beta.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/ui",
3
- "version": "2.0.0-beta.17",
3
+ "version": "2.0.0-beta.19",
4
4
  "sideEffects": false,
5
5
  "types": "./dist/index.d.ts",
6
6
  "source": "./exports/index.ts",
@@ -72,7 +72,7 @@
72
72
  },
73
73
  "dependencies": {
74
74
  "@floating-ui/react-dom": "^2.0.4",
75
- "@sanity/color": "3.0.0-beta.9",
75
+ "@sanity/color": "^3.0.0",
76
76
  "@sanity/icons": "^2.7.0",
77
77
  "csstype": "^3.1.2",
78
78
  "framer-motion": "^10.16.5",
@@ -3,20 +3,60 @@ import {createGlobalStyle} from 'styled-components'
3
3
 
4
4
  const GlobalStyle = createGlobalStyle`
5
5
  @font-face {
6
- font-family: 'Inter';
6
+ font-family: Inter;
7
7
  font-style: normal;
8
- font-weight: 100 900;
8
+ font-weight: 400;
9
9
  font-display: swap;
10
- src: url('https://studio-static.sanity.io/InterVariable.ttf') format('ttf');
11
- font-named-instance: 'Regular';
10
+ src: url('https://studio-static.sanity.io/Inter-Regular.woff2') format('woff2');
12
11
  }
13
12
  @font-face {
14
- font-family: 'Inter';
13
+ font-family: Inter;
15
14
  font-style: italic;
16
- font-weight: 100 900;
15
+ font-weight: 400;
17
16
  font-display: swap;
18
- src: url('https://studio-static.sanity.io/InterVariable-Italic.ttf') format('ttf');
19
- font-named-instance: 'Italic';
17
+ src: url('https://studio-static.sanity.io/Inter-Italic.woff2') format('woff2');
18
+ }
19
+ @font-face {
20
+ font-family: Inter;
21
+ font-style: normal;
22
+ font-weight: 500;
23
+ font-display: swap;
24
+ src: url('https://studio-static.sanity.io/Inter-Medium.woff2') format('woff2');
25
+ }
26
+ @font-face {
27
+ font-family: Inter;
28
+ font-style: italic;
29
+ font-weight: 500;
30
+ font-display: swap;
31
+ src: url('https://studio-static.sanity.io/Inter-MediumItalic.woff2') format('woff2');
32
+ }
33
+ @font-face {
34
+ font-family: Inter;
35
+ font-style: normal;
36
+ font-weight: 600;
37
+ font-display: swap;
38
+ src: url('https://studio-static.sanity.io/Inter-SemiBold.woff2') format('woff2');
39
+ }
40
+ @font-face {
41
+ font-family: Inter;
42
+ font-style: italic;
43
+ font-weight: 600;
44
+ font-display: swap;
45
+ src: url('https://studio-static.sanity.io/Inter-SemiBoldItalic.woff2') format('woff2');
46
+ }
47
+ @font-face {
48
+ font-family: Inter;
49
+ font-style: normal;
50
+ font-weight: 700;
51
+ font-display: swap;
52
+ src: url('https://studio-static.sanity.io/Inter-Bold.woff2') format('woff2');
53
+ }
54
+ @font-face {
55
+ font-family: Inter;
56
+ font-style: italic;
57
+ font-weight: 700;
58
+ font-display: swap;
59
+ src: url('https://studio-static.sanity.io/Inter-BoldItalic.woff2') format('woff2');
20
60
  }
21
61
  `
22
62
 
@@ -46,6 +46,10 @@ export function headingBaseStyle(props: HeadingStyleProps & ThemeProps): ReturnT
46
46
  }
47
47
  }
48
48
 
49
+ & strong {
50
+ font-weight: ${font.heading.weights.bold};
51
+ }
52
+
49
53
  & svg {
50
54
  /* Certain popular CSS libraries changes the defaults for SVG display */
51
55
  /* Make sure SVGs are rendered as inline elements */
@@ -14,7 +14,7 @@ export const defaultColorTokens: ThemeColorTokens = {
14
14
  fg: ['white', 'black'],
15
15
  },
16
16
  },
17
- backdrop: ['gray/200/0.2', 'black/0.5'],
17
+ backdrop: ['gray/200/0.5', 'black/0.5'],
18
18
  badge: {
19
19
  '*': {
20
20
  bg: ['100', '900'],