diff options
| author | nexxeln <[email protected]> | 2025-11-19 18:57:55 +0000 |
|---|---|---|
| committer | nexxeln <[email protected]> | 2025-11-19 18:57:56 +0000 |
| commit | 5e24eb66c3ca7d2224d0d1f7837cda17015f5fcb (patch) | |
| tree | 60336fd37b41e3597065729d098877483eba73b6 /packages/memory-graph/src/ui/heading.css.ts | |
| parent | Fix: Prevent multiple prompts while AI response is generated (fixes #538) (#583) (diff) | |
| download | archived-supermemory-5e24eb66c3ca7d2224d0d1f7837cda17015f5fcb.tar.xz archived-supermemory-5e24eb66c3ca7d2224d0d1f7837cda17015f5fcb.zip | |
package the graph (#563)shoubhit/eng-358-packaging-graph-component
includes:
- a package that contains a MemoryGraph component which handles fetching data and rendering the graph
- a playground to test the package
problems:
- the bundle size is huge
- the styles are kinda broken? we are using [https://www.npmjs.com/package/vite-plugin-libgi-inject-css](https://www.npmjs.com/package/vite-plugin-lib-inject-css) to inject the styles

Diffstat (limited to 'packages/memory-graph/src/ui/heading.css.ts')
| -rw-r--r-- | packages/memory-graph/src/ui/heading.css.ts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/memory-graph/src/ui/heading.css.ts b/packages/memory-graph/src/ui/heading.css.ts new file mode 100644 index 00000000..128d97a6 --- /dev/null +++ b/packages/memory-graph/src/ui/heading.css.ts @@ -0,0 +1,24 @@ +import { style } from "@vanilla-extract/css"; +import { themeContract } from "../styles/theme.css"; + +/** + * Responsive heading style with bold weight + */ +export const headingH3Bold = style({ + fontSize: "0.625rem", // 10px + fontWeight: themeContract.typography.fontWeight.bold, + lineHeight: "28px", + letterSpacing: "-0.4px", + + "@media": { + "screen and (min-width: 640px)": { + fontSize: themeContract.typography.fontSize.xs, // 12px + }, + "screen and (min-width: 768px)": { + fontSize: themeContract.typography.fontSize.sm, // 14px + }, + "screen and (min-width: 1024px)": { + fontSize: themeContract.typography.fontSize.base, // 16px + }, + }, +}); |