@swan-io/lake 2.1.3 → 2.2.0

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": "@swan-io/lake",
3
- "version": "2.1.3",
3
+ "version": "2.2.0",
4
4
  "engines": {
5
5
  "node": ">=18.0.0",
6
6
  "yarn": "^1.22.0"
@@ -0,0 +1,4 @@
1
+ @font-face {
2
+ font-family: "Ayuthaya";
3
+ src: url(Ayuthaya.ttf);
4
+ }
Binary file
@@ -22,7 +22,6 @@ const styles = StyleSheet.create({
22
22
  container: {
23
23
  borderBottomWidth: 1,
24
24
  borderBottomColor: colors.gray[100],
25
- backgroundColor: backgroundColor.default,
26
25
  zIndex: 10,
27
26
  },
28
27
  link: {
@@ -117,6 +116,7 @@ const styles = StyleSheet.create({
117
116
  backgroundColor: colors.gray[100],
118
117
  },
119
118
  sticky: {
119
+ backgroundColor: backgroundColor.default,
120
120
  position: "sticky",
121
121
  top: -1,
122
122
  },
@@ -59,6 +59,9 @@ export declare const interFontStyle: {
59
59
  fontFamily: string;
60
60
  letterSpacing: number;
61
61
  };
62
+ export declare const ayuthayaFontStyle: {
63
+ fontFamily: string;
64
+ };
62
65
  export declare const texts: {
63
66
  readonly h1: TextStyle;
64
67
  readonly h2: TextStyle;
@@ -265,6 +265,23 @@ export const interFontStyle = {
265
265
  // Computed by Inter dynamic metrics tool
266
266
  letterSpacing: "-0.011em",
267
267
  };
268
+ export const ayuthayaFontStyle = {
269
+ fontFamily: [
270
+ "Ayuthaya",
271
+ "Inter",
272
+ "-apple-system",
273
+ "system-ui",
274
+ "BlinkMacSystemFont",
275
+ "Segoe UI",
276
+ "Helvetica",
277
+ "Arial",
278
+ "sans-serif",
279
+ "Apple Color Emoji",
280
+ "Segoe UI Emoji",
281
+ "Segoe UI Symbol",
282
+ "Noto Color Emoji",
283
+ ].join(","),
284
+ };
268
285
  const asTextStyle = (x) => {
269
286
  return x;
270
287
  };