@hraness/design-kit 0.31.1
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/ARTICLE_COPY.md +208 -0
- package/HERO_FIELDS.md +55 -0
- package/ICONS.md +56 -0
- package/LANTERN_MATERIAL.md +60 -0
- package/LICENSE +21 -0
- package/MARKETING_COPY.md +49 -0
- package/MARKETING_PRESET.md +108 -0
- package/PALETTES.md +90 -0
- package/PAPER_THEME.md +128 -0
- package/README.md +745 -0
- package/STATUS_PAGES.md +67 -0
- package/STYLE.md +245 -0
- package/WRITING.md +72 -0
- package/dist/browser/index.js +2345 -0
- package/dist/chunk-44djxk16.js +6872 -0
- package/dist/chunk-5gtx3pza.js +9 -0
- package/dist/chunk-77391vmq.js +454 -0
- package/dist/chunk-7b1586eb.js +1209 -0
- package/dist/chunk-8834fh4n.js +6 -0
- package/dist/chunk-9t8xyqte.js +870 -0
- package/dist/chunk-cejpzyfh.js +446 -0
- package/dist/chunk-eh71jz57.js +429 -0
- package/dist/chunk-evb02bc1.js +516 -0
- package/dist/chunk-h4k7yv6x.js +368 -0
- package/dist/chunk-he8eznb1.js +760 -0
- package/dist/chunk-mr1vdcjq.js +404 -0
- package/dist/chunk-wzvdn8ey.js +116 -0
- package/dist/fonts/nebula-sans/social-fonts.generated.js +53 -0
- package/dist/icons.js +48 -0
- package/dist/index.js +237 -0
- package/dist/launch.js +41 -0
- package/dist/mockups/client.js +422 -0
- package/dist/mockups/index.js +1850 -0
- package/dist/portfolio.js +1549 -0
- package/dist/provider-marks.js +19 -0
- package/dist/react/charts.js +11 -0
- package/dist/react/hero-backdrop.js +8 -0
- package/dist/react/index.js +7252 -0
- package/dist/react/platform-install.js +10 -0
- package/dist/react/server.js +137 -0
- package/dist/stylex-manifest.json +1 -0
- package/dist/stylex.css +5392 -0
- package/dist/syntax-highlighting.js +15 -0
- package/dist/testing.js +250 -0
- package/package.json +377 -0
- package/portfolio-inventory.json +31 -0
- package/scripts/check-lantern-material-snapshot.d.mts +26 -0
- package/scripts/check-lantern-material-snapshot.mjs +126 -0
- package/scripts/check-marketing-snapshot.d.mts +12 -0
- package/scripts/check-marketing-snapshot.mjs +58 -0
- package/scripts/lantern-material-snapshot.ts +101 -0
- package/scripts/marketing-textures.ts +48 -0
- package/scripts/paper-theme-snapshot.ts +97 -0
- package/scripts/product-marketing-snapshot.ts +149 -0
- package/src/appearance-menu.css +266 -0
- package/src/appearance.ts +32 -0
- package/src/article-html.ts +269 -0
- package/src/article.ts +686 -0
- package/src/browser/appearance-menu.ts +604 -0
- package/src/browser/artifact-share.ts +164 -0
- package/src/browser/design-palette.ts +197 -0
- package/src/browser/foil.ts +124 -0
- package/src/browser/hero-light.ts +11 -0
- package/src/browser/index.ts +29 -0
- package/src/browser/status-field.ts +432 -0
- package/src/browser/status-page.ts +100 -0
- package/src/browser/sticky-offset.ts +82 -0
- package/src/browser/theme-color-sync.ts +213 -0
- package/src/charts.css +7 -0
- package/src/compiler-components.css +34 -0
- package/src/compiler-foundation.css +18 -0
- package/src/compiler-palettes.css +7 -0
- package/src/compiler-tokens.css +342 -0
- package/src/components.css +3 -0
- package/src/design-gallery.css +431 -0
- package/src/effects.css +14 -0
- package/src/fonts/geist-mono/GeistMono[wght].woff2 +0 -0
- package/src/fonts/geist-mono/OFL.txt +93 -0
- package/src/fonts/geist-mono/PROVENANCE.md +12 -0
- package/src/fonts/instrument-serif/OFL.txt +93 -0
- package/src/fonts/instrument-serif/UPSTREAM.md +14 -0
- package/src/fonts/instrument-serif/instrument-serif-latin-400.woff2 +0 -0
- package/src/fonts/nebula-sans/LICENSE.txt +96 -0
- package/src/fonts/nebula-sans/NebulaSans-Black.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-BlackItalic.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-Bold.otf +0 -0
- package/src/fonts/nebula-sans/NebulaSans-Bold.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-BoldItalic.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-Book.otf +0 -0
- package/src/fonts/nebula-sans/NebulaSans-Book.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-BookItalic.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-Light.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-LightItalic.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-Medium.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-MediumItalic.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-Semibold.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-SemiboldItalic.woff2 +0 -0
- package/src/fonts/nebula-sans/PROVENANCE.md +14 -0
- package/src/fonts/nebula-sans/social-fonts.generated.ts +3873 -0
- package/src/fonts.css +106 -0
- package/src/icons/act60/act60.svg +5 -0
- package/src/icons/act60/application.svg +9 -0
- package/src/icons/act60/chapter-compare.svg +3 -0
- package/src/icons/act60/decree-residence.svg +6 -0
- package/src/icons/act60/estimate.svg +7 -0
- package/src/icons/act60/export-services.svg +4 -0
- package/src/icons/act60/investor.svg +13 -0
- package/src/icons/act60/presence.svg +7 -0
- package/src/icons/aicharts/aicharts.svg +6 -0
- package/src/icons/aicharts/cost-compare.svg +4 -0
- package/src/icons/aicharts/task-audio.svg +7 -0
- package/src/icons/aicharts/task-coding.svg +6 -0
- package/src/icons/aicharts/task-images.svg +3 -0
- package/src/icons/aicharts/task-reasoning.svg +9 -0
- package/src/icons/aicharts/task-research.svg +5 -0
- package/src/icons/aicharts/task-video.svg +4 -0
- package/src/icons/manifest.json +1371 -0
- package/src/icons/platonik/conversation.svg +3 -0
- package/src/icons/platonik/creature.svg +7 -0
- package/src/icons/platonik/economy.svg +4 -0
- package/src/icons/platonik/keep-light.svg +6 -0
- package/src/icons/platonik/platonik.svg +7 -0
- package/src/icons/platonik/spark-route.svg +15 -0
- package/src/icons/receipts/act60-retry.receipt.json +888 -0
- package/src/icons/receipts/act60.receipt.json +1366 -0
- package/src/icons/receipts/aicharts.receipt.json +1546 -0
- package/src/icons/receipts/platonik.receipt.json +1011 -0
- package/src/icons/receipts/roughday.receipt.json +770 -0
- package/src/icons/receipts/shared.receipt.json +1296 -0
- package/src/icons/receipts/slopcamera.receipt.json +1495 -0
- package/src/icons/receipts/soundfish-retry.receipt.json +460 -0
- package/src/icons/receipts/soundfish.receipt.json +1709 -0
- package/src/icons/receipts/sponge.receipt.json +1743 -0
- package/src/icons/receipts/stripe-history-retry.receipt.json +145 -0
- package/src/icons/receipts/stripe-history.receipt.json +1202 -0
- package/src/icons/receipts/wordcell.receipt.json +1924 -0
- package/src/icons/roughday/finance.svg +7 -0
- package/src/icons/roughday/roughday.svg +6 -0
- package/src/icons/roughday/technology.svg +4 -0
- package/src/icons/roughday/world.svg +4 -0
- package/src/icons/sets/act60.json +63 -0
- package/src/icons/sets/aicharts.json +63 -0
- package/src/icons/sets/platonik.json +39 -0
- package/src/icons/sets/roughday.json +25 -0
- package/src/icons/sets/shared.json +12 -0
- package/src/icons/sets/slopcamera.json +47 -0
- package/src/icons/sets/soundfish.json +43 -0
- package/src/icons/sets/sponge.json +51 -0
- package/src/icons/sets/stripe-history.json +39 -0
- package/src/icons/sets/wordcell.json +51 -0
- package/src/icons/shared/agent-skill.svg +4 -0
- package/src/icons/shared/cli.svg +5 -0
- package/src/icons/shared/privacy.svg +3 -0
- package/src/icons/shared/research.svg +7 -0
- package/src/icons/shared/sdk.svg +3 -0
- package/src/icons/slopcamera/diagram.svg +3 -0
- package/src/icons/slopcamera/direct-scene.svg +5 -0
- package/src/icons/slopcamera/edit-video.svg +17 -0
- package/src/icons/slopcamera/mcp.svg +3 -0
- package/src/icons/slopcamera/native-world.svg +3 -0
- package/src/icons/slopcamera/slopcamera.svg +11 -0
- package/src/icons/soundfish/agent-ui.svg +7 -0
- package/src/icons/soundfish/collaborate.svg +5 -0
- package/src/icons/soundfish/compose.svg +3 -0
- package/src/icons/soundfish/hear.svg +6 -0
- package/src/icons/soundfish/human-ui.svg +6 -0
- package/src/icons/soundfish/share.svg +3 -0
- package/src/icons/soundfish/soundfish.svg +6 -0
- package/src/icons/sponge/api.svg +3 -0
- package/src/icons/sponge/documents.svg +3 -0
- package/src/icons/sponge/library.svg +3 -0
- package/src/icons/sponge/one-question.svg +5 -0
- package/src/icons/sponge/people-direct.svg +5 -0
- package/src/icons/sponge/read.svg +3 -0
- package/src/icons/sponge/save.svg +4 -0
- package/src/icons/sponge/sponge.svg +7 -0
- package/src/icons/stripe-history/company-history.svg +3 -0
- package/src/icons/stripe-history/evidence.svg +4 -0
- package/src/icons/stripe-history/independence.svg +7 -0
- package/src/icons/stripe-history/publications.svg +11 -0
- package/src/icons/stripe-history/sources.svg +6 -0
- package/src/icons/stripe-history/stripe-history.svg +3 -0
- package/src/icons/wordcell/backlinks.svg +6 -0
- package/src/icons/wordcell/capture.svg +6 -0
- package/src/icons/wordcell/git-provenance.svg +4 -0
- package/src/icons/wordcell/kb.svg +4 -0
- package/src/icons/wordcell/markdown.svg +4 -0
- package/src/icons/wordcell/scopes.svg +3 -0
- package/src/icons/wordcell/search.svg +7 -0
- package/src/icons.generated.ts +734 -0
- package/src/icons.ts +51 -0
- package/src/index.ts +275 -0
- package/src/lantern-material.css +213 -0
- package/src/launch.ts +624 -0
- package/src/marketing-assets/UPSTREAM.md +18 -0
- package/src/marketing-assets/cells.svg +1 -0
- package/src/marketing-assets/grain.svg +1 -0
- package/src/marketing-forced-colors.css +12 -0
- package/src/mockups/client.tsx +415 -0
- package/src/mockups/core.tsx +318 -0
- package/src/mockups/frames.tsx +368 -0
- package/src/mockups/index.ts +14 -0
- package/src/mockups/surfaces.tsx +681 -0
- package/src/mockups.css +2607 -0
- package/src/palette-appearance.ts +45 -0
- package/src/palette-bridge.css +124 -0
- package/src/palette-color.ts +41 -0
- package/src/palette-system.css +721 -0
- package/src/palette-themes.ts +23 -0
- package/src/palette-tokens.stylex.ts +519 -0
- package/src/palettes.css +3 -0
- package/src/palettes.ts +161 -0
- package/src/paper-theme.css +244 -0
- package/src/plain-publication.css +1241 -0
- package/src/plain-site.css +397 -0
- package/src/platforms.ts +151 -0
- package/src/portfolio.generated.json +1595 -0
- package/src/portfolio.generated.ts +1596 -0
- package/src/portfolio.ts +226 -0
- package/src/product-marketing-foundation.css +433 -0
- package/src/product-marketing-preset.css +261 -0
- package/src/product-marketing.css +2186 -0
- package/src/provider-marks.generated.ts +112 -0
- package/src/provider-marks.ts +143 -0
- package/src/react/animated-rail-stage.stylex.ts +15 -0
- package/src/react/animated-rail-stage.tsx +51 -0
- package/src/react/app-shell.stylex.ts +104 -0
- package/src/react/app-shell.tsx +121 -0
- package/src/react/article.tsx +602 -0
- package/src/react/aurora-dots-background.tsx +34 -0
- package/src/react/charts.stylex.ts +563 -0
- package/src/react/charts.tsx +610 -0
- package/src/react/chat.stylex.ts +34 -0
- package/src/react/chat.tsx +155 -0
- package/src/react/design-gallery.tsx +943 -0
- package/src/react/design-palette.stylex.ts +124 -0
- package/src/react/design-palette.tsx +196 -0
- package/src/react/design-theme-context.tsx +41 -0
- package/src/react/effects.stylex.ts +325 -0
- package/src/react/fader.stylex.ts +71 -0
- package/src/react/fader.tsx +151 -0
- package/src/react/foil-card-math.ts +100 -0
- package/src/react/foil-card-surface.stylex.ts +326 -0
- package/src/react/foil-card-surface.tsx +742 -0
- package/src/react/foil-mark.tsx +35 -0
- package/src/react/foil.stylex.ts +163 -0
- package/src/react/haptics.ts +228 -0
- package/src/react/hero-backdrop.tsx +22 -0
- package/src/react/index.ts +38 -0
- package/src/react/keyboard-shortcuts.ts +228 -0
- package/src/react/lantern-material-gallery.tsx +166 -0
- package/src/react/lantern-material.stylex.ts +39 -0
- package/src/react/launch-beats.tsx +73 -0
- package/src/react/navigation-rail.stylex.ts +130 -0
- package/src/react/navigation-rail.tsx +228 -0
- package/src/react/particle-halo.tsx +115 -0
- package/src/react/phaser-dots.tsx +501 -0
- package/src/react/platform-icons.tsx +94 -0
- package/src/react/platform-install.stylex.ts +385 -0
- package/src/react/platform-install.tsx +389 -0
- package/src/react/playback-transport.stylex.ts +14 -0
- package/src/react/playback-transport.tsx +112 -0
- package/src/react/procedural-backdrop.tsx +192 -0
- package/src/react/procedural-recipe.ts +323 -0
- package/src/react/product-marketing.stylex.ts +4469 -0
- package/src/react/product-marketing.tsx +1611 -0
- package/src/react/production-data-preview-notice.stylex.ts +40 -0
- package/src/react/production-data-preview-notice.tsx +34 -0
- package/src/react/provider-mark.stylex.ts +132 -0
- package/src/react/provider-mark.tsx +120 -0
- package/src/react/relative-time.tsx +117 -0
- package/src/react/route-state.stylex.ts +39 -0
- package/src/react/route-state.tsx +350 -0
- package/src/react/server.ts +11 -0
- package/src/react/social-kit-panel.tsx +103 -0
- package/src/react/sticky-offset.tsx +33 -0
- package/src/react/surfaces.stylex.ts +179 -0
- package/src/react/surfaces.tsx +330 -0
- package/src/react/syntax-code.tsx +33 -0
- package/src/react/theme-color-sync.ts +1 -0
- package/src/react/theme-resolution.ts +11 -0
- package/src/react/theme.stylex.ts +276 -0
- package/src/react/theme.tsx +402 -0
- package/src/reading.css +72 -0
- package/src/relative-time.ts +185 -0
- package/src/reset.css +2 -0
- package/src/site-shell.css +16 -0
- package/src/status-page-html.ts +63 -0
- package/src/status-page.css +276 -0
- package/src/status-page.ts +323 -0
- package/src/styles.css +21 -0
- package/src/syntax-code-lexers.ts +303 -0
- package/src/syntax-highlighting.css +78 -0
- package/src/syntax-highlighting.ts +477 -0
- package/src/syntax-tokens.ts +33 -0
- package/src/testing.ts +307 -0
- package/src/tokens.css +3 -0
- package/src/typography.css +86 -0
- package/vendor/evilcharts/LICENSE +21 -0
- package/vendor/evilcharts/UPSTREAM.md +14 -0
- package/vendor/platform-marks/LICENSE +30 -0
- package/vendor/platform-marks/UPSTREAM.md +15 -0
- package/vendor/platform-marks/apple.svg +1 -0
- package/vendor/platform-marks/linux.svg +1 -0
- package/vendor/provider-marks/CRUSH-LICENSE.md +134 -0
- package/vendor/provider-marks/LICENSE +21 -0
- package/vendor/provider-marks/UPSTREAM.md +27 -0
- package/vendor/provider-marks/aider.svg +3 -0
- package/vendor/provider-marks/crush-heartbit.svg +8 -0
- package/vendor/provider-marks/lobehub/alibabacloud-color.svg +1 -0
- package/vendor/provider-marks/lobehub/alibabacloud.svg +1 -0
- package/vendor/provider-marks/lobehub/amp-color.svg +1 -0
- package/vendor/provider-marks/lobehub/amp.svg +1 -0
- package/vendor/provider-marks/lobehub/anthropic.svg +1 -0
- package/vendor/provider-marks/lobehub/claude-color.svg +1 -0
- package/vendor/provider-marks/lobehub/claude.svg +1 -0
- package/vendor/provider-marks/lobehub/claudecode-color.svg +1 -0
- package/vendor/provider-marks/lobehub/claudecode.svg +1 -0
- package/vendor/provider-marks/lobehub/codex-color.svg +1 -0
- package/vendor/provider-marks/lobehub/codex.svg +1 -0
- package/vendor/provider-marks/lobehub/cursor.svg +1 -0
- package/vendor/provider-marks/lobehub/deepseek-color.svg +1 -0
- package/vendor/provider-marks/lobehub/deepseek.svg +1 -0
- package/vendor/provider-marks/lobehub/devin-color.svg +1 -0
- package/vendor/provider-marks/lobehub/devin.svg +1 -0
- package/vendor/provider-marks/lobehub/gemini-color.svg +1 -0
- package/vendor/provider-marks/lobehub/gemini.svg +1 -0
- package/vendor/provider-marks/lobehub/geminicli-color.svg +1 -0
- package/vendor/provider-marks/lobehub/geminicli.svg +1 -0
- package/vendor/provider-marks/lobehub/goose.svg +1 -0
- package/vendor/provider-marks/lobehub/meta-color.svg +1 -0
- package/vendor/provider-marks/lobehub/meta.svg +1 -0
- package/vendor/provider-marks/lobehub/mistral-color.svg +1 -0
- package/vendor/provider-marks/lobehub/mistral.svg +1 -0
- package/vendor/provider-marks/lobehub/moonshot.svg +1 -0
- package/vendor/provider-marks/lobehub/nvidia-color.svg +1 -0
- package/vendor/provider-marks/lobehub/nvidia.svg +1 -0
- package/vendor/provider-marks/lobehub/openai.svg +1 -0
- package/vendor/provider-marks/lobehub/opencode.svg +1 -0
- package/vendor/provider-marks/lobehub/perplexity-color.svg +1 -0
- package/vendor/provider-marks/lobehub/perplexity.svg +1 -0
- package/vendor/provider-marks/lobehub/qwen-color.svg +1 -0
- package/vendor/provider-marks/lobehub/qwen.svg +1 -0
- package/vendor/provider-marks/lobehub/xai.svg +1 -0
- package/vendor/provider-marks/lobehub/zai.svg +1 -0
package/src/palettes.ts
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import type { ConcreteDesignTheme } from "./appearance.js";
|
|
2
|
+
import { mixPaletteColor, paletteContrast, readablePaletteColor } from "./palette-color.js";
|
|
3
|
+
|
|
4
|
+
export const designPalettes = ["catppuccin", "gruvbox", "rose-pine", "tokyo-night", "paper"] as const;
|
|
5
|
+
export type DesignPalette = (typeof designPalettes)[number];
|
|
6
|
+
|
|
7
|
+
export const designPaletteLabels: Readonly<Record<DesignPalette, string>> = {
|
|
8
|
+
catppuccin: "Catppuccin",
|
|
9
|
+
gruvbox: "Gruvbox",
|
|
10
|
+
"rose-pine": "Rosé Pine",
|
|
11
|
+
"tokyo-night": "Tokyo Night",
|
|
12
|
+
paper: "Paper",
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export function isDesignPalette(value: unknown): value is DesignPalette {
|
|
16
|
+
return typeof value === "string" && designPalettes.some((palette) => palette === value);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface PaletteSource {
|
|
20
|
+
readonly background: string;
|
|
21
|
+
readonly surface: string;
|
|
22
|
+
readonly raised: string;
|
|
23
|
+
readonly hover: string;
|
|
24
|
+
readonly text: string;
|
|
25
|
+
readonly muted: string;
|
|
26
|
+
readonly border: string;
|
|
27
|
+
readonly primary: string;
|
|
28
|
+
readonly danger: string;
|
|
29
|
+
readonly warning: string;
|
|
30
|
+
readonly success: string;
|
|
31
|
+
readonly info: string;
|
|
32
|
+
readonly violet: string;
|
|
33
|
+
readonly rose: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Official palette seeds; provenance and application adaptations are in PALETTES.md. */
|
|
37
|
+
export const designPaletteSources: Readonly<Record<DesignPalette, Readonly<Record<ConcreteDesignTheme, PaletteSource>>>> = {
|
|
38
|
+
paper: {
|
|
39
|
+
light: {
|
|
40
|
+
background: "#f8f7f4", surface: "#fffefa", raised: "#fffefa", hover: "#ebe8e3",
|
|
41
|
+
text: "#1c1917", muted: "#6f6962", border: "#8b8278", primary: "#1f5eea",
|
|
42
|
+
danger: "#b23c34", warning: "#a65f00", success: "#26814d", info: "#1f5eea",
|
|
43
|
+
violet: "#7959a5", rose: "#a44b65",
|
|
44
|
+
},
|
|
45
|
+
dark: {
|
|
46
|
+
background: "#12100f", surface: "#1d1a18", raised: "#211d1a", hover: "#292522",
|
|
47
|
+
text: "#f5f2ed", muted: "#aaa29a", border: "#827a72", primary: "#8fb0ff",
|
|
48
|
+
danger: "#ef8c82", warning: "#efae55", success: "#5fc98b", info: "#8fb0ff",
|
|
49
|
+
violet: "#b7a0dc", rose: "#db91aa",
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
catppuccin: {
|
|
53
|
+
dark: {
|
|
54
|
+
background: "#1e1e2e", surface: "#181825", raised: "#313244", hover: "#45475a",
|
|
55
|
+
text: "#cdd6f4", muted: "#a6adc8", border: "#7f849c", primary: "#89b4fa",
|
|
56
|
+
danger: "#f38ba8", warning: "#f9e2af", success: "#a6e3a1", info: "#89dceb",
|
|
57
|
+
violet: "#cba6f7", rose: "#f5c2e7",
|
|
58
|
+
},
|
|
59
|
+
light: {
|
|
60
|
+
background: "#eff1f5", surface: "#e6e9ef", raised: "#dce0e8", hover: "#ccd0da",
|
|
61
|
+
text: "#4c4f69", muted: "#6c6f85", border: "#7c7f93", primary: "#1e66f5",
|
|
62
|
+
danger: "#d20f39", warning: "#df8e1d", success: "#40a02b", info: "#179299",
|
|
63
|
+
violet: "#8839ef", rose: "#ea76cb",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
gruvbox: {
|
|
67
|
+
dark: {
|
|
68
|
+
background: "#282828", surface: "#1d2021", raised: "#3c3836", hover: "#504945",
|
|
69
|
+
text: "#ebdbb2", muted: "#bdae93", border: "#928374", primary: "#83a598",
|
|
70
|
+
danger: "#fb4934", warning: "#fabd2f", success: "#b8bb26", info: "#8ec07c",
|
|
71
|
+
violet: "#d3869b", rose: "#fe8019",
|
|
72
|
+
},
|
|
73
|
+
light: {
|
|
74
|
+
background: "#fbf1c7", surface: "#f9f5d7", raised: "#ebdbb2", hover: "#d5c4a1",
|
|
75
|
+
text: "#3c3836", muted: "#665c54", border: "#7c6f64", primary: "#076678",
|
|
76
|
+
danger: "#9d0006", warning: "#b57614", success: "#79740e", info: "#427b58",
|
|
77
|
+
violet: "#8f3f71", rose: "#af3a03",
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
"rose-pine": {
|
|
81
|
+
dark: {
|
|
82
|
+
background: "#191724", surface: "#1f1d2e", raised: "#26233a", hover: "#403d52",
|
|
83
|
+
text: "#e0def4", muted: "#908caa", border: "#908caa", primary: "#c4a7e7",
|
|
84
|
+
danger: "#eb6f92", warning: "#f6c177", success: "#9ccfd8", info: "#ebbcba",
|
|
85
|
+
violet: "#c4a7e7", rose: "#ebbcba",
|
|
86
|
+
},
|
|
87
|
+
light: {
|
|
88
|
+
background: "#faf4ed", surface: "#fffaf3", raised: "#f2e9e1", hover: "#dfdad9",
|
|
89
|
+
text: "#575279", muted: "#797593", border: "#797593", primary: "#907aa9",
|
|
90
|
+
danger: "#b4637a", warning: "#ea9d34", success: "#286983", info: "#56949f",
|
|
91
|
+
violet: "#907aa9", rose: "#d7827e",
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
"tokyo-night": {
|
|
95
|
+
dark: {
|
|
96
|
+
background: "#1a1b26", surface: "#16161e", raised: "#24283b", hover: "#292e42",
|
|
97
|
+
text: "#c0caf5", muted: "#a9b1d6", border: "#737aa2", primary: "#7aa2f7",
|
|
98
|
+
danger: "#f7768e", warning: "#e0af68", success: "#9ece6a", info: "#7dcfff",
|
|
99
|
+
violet: "#bb9af7", rose: "#ff9e64",
|
|
100
|
+
},
|
|
101
|
+
light: {
|
|
102
|
+
background: "#e1e2e7", surface: "#d0d5e3", raised: "#c4c8da", hover: "#b7c1e3",
|
|
103
|
+
text: "#3760bf", muted: "#6172b0", border: "#6172b0", primary: "#2e7de9",
|
|
104
|
+
danger: "#f52a65", warning: "#8c6c3e", success: "#587539", info: "#007197",
|
|
105
|
+
violet: "#9854f1", rose: "#b15c00",
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
function createPalette(source: PaletteSource, mode: ConcreteDesignTheme) {
|
|
111
|
+
const surfaces = [source.background, source.surface, source.raised, source.hover];
|
|
112
|
+
const endpoint = mode === "dark" ? "#ffffff" : "#000000";
|
|
113
|
+
const foreground = readablePaletteColor(source.text, endpoint, surfaces, 7);
|
|
114
|
+
const muted = readablePaletteColor(source.muted, endpoint, surfaces, 4.6);
|
|
115
|
+
const status = (seed: string) => {
|
|
116
|
+
const soft = mixPaletteColor(source.background, seed, 0.12);
|
|
117
|
+
const color = readablePaletteColor(seed, endpoint, [...surfaces, soft], 4.6);
|
|
118
|
+
const onColor = paletteContrast(color, source.background) >= 4.5 ? source.background : endpoint === "#ffffff" ? "#000000" : "#ffffff";
|
|
119
|
+
return { color, foreground: onColor, soft };
|
|
120
|
+
};
|
|
121
|
+
const primary = status(source.primary);
|
|
122
|
+
const danger = status(source.danger);
|
|
123
|
+
const warning = status(source.warning);
|
|
124
|
+
const success = status(source.success);
|
|
125
|
+
const info = status(source.info);
|
|
126
|
+
return Object.freeze({
|
|
127
|
+
background: source.background, foreground, muted, faint: muted,
|
|
128
|
+
grid: source.raised, line: source.hover,
|
|
129
|
+
controlBorder: readablePaletteColor(source.border, endpoint, surfaces, 3.1),
|
|
130
|
+
surface: source.surface, surfaceRaised: source.raised, surfaceHover: source.hover,
|
|
131
|
+
card: source.surface, cardForeground: foreground,
|
|
132
|
+
popover: source.raised, popoverForeground: foreground,
|
|
133
|
+
primary: primary.color, primaryForeground: primary.foreground, primarySoft: primary.soft,
|
|
134
|
+
secondary: source.raised, secondaryForeground: foreground,
|
|
135
|
+
accent: primary.soft, accentForeground: foreground,
|
|
136
|
+
focus: primary.color, scrim: mode === "dark" ? "#000000b8" : "#00000070",
|
|
137
|
+
disabled: source.raised, disabledForeground: muted,
|
|
138
|
+
inverse: foreground, inverseForeground: source.background,
|
|
139
|
+
danger: danger.color, dangerForeground: danger.foreground, dangerSoft: danger.soft,
|
|
140
|
+
warning: warning.color, warningForeground: warning.foreground, warningSoft: warning.soft,
|
|
141
|
+
success: success.color, successForeground: success.foreground, successSoft: success.soft,
|
|
142
|
+
info: info.color, infoForeground: info.foreground, infoSoft: info.soft,
|
|
143
|
+
chart1: readablePaletteColor(source.rose, endpoint, surfaces, 4.6),
|
|
144
|
+
chart2: success.color, chart3: info.color, chart4: warning.color,
|
|
145
|
+
chart5: readablePaletteColor(source.violet, endpoint, surfaces, 4.6),
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type SemanticPalette = ReturnType<typeof createPalette>;
|
|
150
|
+
|
|
151
|
+
/** The same opaque values drive compiled StyleX themes, metadata, and contrast tests. */
|
|
152
|
+
export const paletteColors: Readonly<Record<DesignPalette, Readonly<Record<ConcreteDesignTheme, SemanticPalette>>>> = Object.freeze({
|
|
153
|
+
paper: Object.freeze({
|
|
154
|
+
light: Object.freeze({ ...createPalette(designPaletteSources.paper.light, "light"), grid: "#dfdcd6", line: "#b9b3ab", secondary: "#ebe8e3" }),
|
|
155
|
+
dark: Object.freeze({ ...createPalette(designPaletteSources.paper.dark, "dark"), grid: "#302b27", line: "#514a44", secondary: "#292522" }),
|
|
156
|
+
}),
|
|
157
|
+
catppuccin: Object.freeze({ light: createPalette(designPaletteSources.catppuccin.light, "light"), dark: createPalette(designPaletteSources.catppuccin.dark, "dark") }),
|
|
158
|
+
gruvbox: Object.freeze({ light: createPalette(designPaletteSources.gruvbox.light, "light"), dark: createPalette(designPaletteSources.gruvbox.dark, "dark") }),
|
|
159
|
+
"rose-pine": Object.freeze({ light: createPalette(designPaletteSources["rose-pine"].light, "light"), dark: createPalette(designPaletteSources["rose-pine"].dark, "dark") }),
|
|
160
|
+
"tokyo-night": Object.freeze({ light: createPalette(designPaletteSources["tokyo-night"].light, "light"), dark: createPalette(designPaletteSources["tokyo-night"].dark, "dark") }),
|
|
161
|
+
});
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/* @hraness/design-kit paper-theme.css, portable contract 1.
|
|
2
|
+
* Generated by scripts/generate-paper-theme.ts from src/palettes.ts.
|
|
3
|
+
* Opt in with data-hraness-theme="paper". Import after existing theme rules.
|
|
4
|
+
* No imports, asset requests, resets, layout recipes, or runtime dependencies.
|
|
5
|
+
* Appearance uses inherited color-scheme; set data-theme on the boundary for
|
|
6
|
+
* an explicit island. A root without a mode follows the operating system.
|
|
7
|
+
* A non-paper data-palette on the boundary retains its selected colors.
|
|
8
|
+
* Requires CSS light-dark() (Chrome 123+, Firefox 120+, Safari 17.5+).
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
[data-hraness-theme="paper"] {
|
|
12
|
+
--font-text: "Nebula Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
13
|
+
--font-heading: var(--font-text);
|
|
14
|
+
--font-sans: var(--font-text);
|
|
15
|
+
--font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
|
|
16
|
+
--ui-font-sans: var(--font-text);
|
|
17
|
+
--ui-font-heading: var(--font-heading);
|
|
18
|
+
--ui-font-mono: var(--font-mono);
|
|
19
|
+
--text-body: 1rem;
|
|
20
|
+
--text-caption: .75rem;
|
|
21
|
+
--text-label: .875rem;
|
|
22
|
+
--font-weight-regular: 400;
|
|
23
|
+
--font-weight-medium: 550;
|
|
24
|
+
--font-weight-bold: 700;
|
|
25
|
+
--radius-sm: .375rem;
|
|
26
|
+
--radius-md: .625rem;
|
|
27
|
+
--radius-lg: .875rem;
|
|
28
|
+
--ui-radius: .875rem;
|
|
29
|
+
--control-radius: .625rem;
|
|
30
|
+
--hraness-paper-heading-size: clamp(1.75rem, 3vw, 2.375rem);
|
|
31
|
+
--hraness-paper-section-heading-size: var(--hraness-type-h2-size, clamp(1.75rem, 1.45rem + .9vw, 2.125rem));
|
|
32
|
+
--hraness-paper-summary-size: 1rem;
|
|
33
|
+
--hraness-paper-heading-leading: 1.15;
|
|
34
|
+
--hraness-paper-heading-tracking: -.035em;
|
|
35
|
+
--hraness-marketing-measure: 80rem;
|
|
36
|
+
--hraness-marketing-copy-measure: 40rem;
|
|
37
|
+
--hraness-marketing-prose-measure: 68ch;
|
|
38
|
+
--hraness-marketing-gutter: clamp(1.25rem, 4vw, 3rem);
|
|
39
|
+
--hraness-marketing-radius: .625rem;
|
|
40
|
+
--hraness-marketing-frame-radius: .875rem;
|
|
41
|
+
--hraness-marketing-heading-weight: 550;
|
|
42
|
+
--hraness-marketing-heading-tracking: -.025em;
|
|
43
|
+
--hraness-marketing-section-space: clamp(3rem, 7vw, 6rem);
|
|
44
|
+
--hraness-marketing-action-height: 2.75rem;
|
|
45
|
+
font-family: var(--font-text);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Existing marketing roles declare defaults directly, so inherit this
|
|
49
|
+
* opt-in rhythm at each role boundary without replacing component recipes. */
|
|
50
|
+
[data-hraness-theme="paper"] :where(.hraness-marketing-page, .hraness-marketing-header, .hraness-marketing-hero, .hraness-marketing-pillars, .hraness-marketing-install, .hraness-marketing-section, .hraness-marketing-primitives, .hraness-marketing-stats, .hraness-marketing-interfaces, .hraness-marketing-trust, .hraness-marketing-quotes, .hraness-marketing-pricing, .hraness-marketing-questions, .hraness-marketing-maker, .hraness-marketing-cta, .hraness-marketing-proof-frame) {
|
|
51
|
+
--hraness-marketing-measure: inherit;
|
|
52
|
+
--hraness-marketing-copy-measure: inherit;
|
|
53
|
+
--hraness-marketing-prose-measure: inherit;
|
|
54
|
+
--hraness-marketing-gutter: inherit;
|
|
55
|
+
--hraness-marketing-radius: inherit;
|
|
56
|
+
--hraness-marketing-frame-radius: inherit;
|
|
57
|
+
--hraness-marketing-heading-weight: inherit;
|
|
58
|
+
--hraness-marketing-heading-tracking: inherit;
|
|
59
|
+
--hraness-marketing-section-space: inherit;
|
|
60
|
+
--hraness-marketing-action-height: inherit;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:root[data-hraness-theme="paper"]:where(:not([data-theme]):not(.dark), [data-theme="system"]) { color-scheme: light dark; }
|
|
64
|
+
[data-hraness-theme="paper"]:where([data-theme="dark"], .dark:not([data-theme="light"])) { color-scheme: dark; }
|
|
65
|
+
[data-hraness-theme="paper"][data-theme="light"] { color-scheme: light; }
|
|
66
|
+
|
|
67
|
+
/* Opted-in shared headers retain their layout and receive the shared paint
|
|
68
|
+
* contract, including snapshots used with older component releases. */
|
|
69
|
+
@layer components.hraness-design-kit.legacy {
|
|
70
|
+
/* Keep the browser aliases in separate feature queries: CSS optimizers can
|
|
71
|
+
* collapse adjacent aliases to the prefixed property and lose Chromium blur. */
|
|
72
|
+
:where([data-hraness-theme="paper"]) .hraness-marketing-header, .hraness-marketing-header:where([data-hraness-theme="paper"]) {
|
|
73
|
+
--hraness-marketing-header-background: var(--hraness-marketing-background);
|
|
74
|
+
--hraness-marketing-header-backdrop: none;
|
|
75
|
+
background: var(--hraness-marketing-header-background);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@supports (-webkit-backdrop-filter: blur(1px)) {
|
|
79
|
+
:where([data-hraness-theme="paper"]) .hraness-marketing-header, .hraness-marketing-header:where([data-hraness-theme="paper"]) {
|
|
80
|
+
--hraness-marketing-header-background: color-mix(in srgb, var(--hraness-marketing-background) 82%, transparent);
|
|
81
|
+
--hraness-marketing-header-backdrop: blur(14px) saturate(1.4);
|
|
82
|
+
-webkit-backdrop-filter: var(--hraness-marketing-header-backdrop);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@supports (backdrop-filter: blur(1px)) {
|
|
87
|
+
:where([data-hraness-theme="paper"]) .hraness-marketing-header, .hraness-marketing-header:where([data-hraness-theme="paper"]) {
|
|
88
|
+
--hraness-marketing-header-background: color-mix(in srgb, var(--hraness-marketing-background) 82%, transparent);
|
|
89
|
+
--hraness-marketing-header-backdrop: blur(14px) saturate(1.4);
|
|
90
|
+
backdrop-filter: var(--hraness-marketing-header-backdrop);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
|
95
|
+
:where([data-hraness-theme="paper"]) .hraness-marketing-header, .hraness-marketing-header:where([data-hraness-theme="paper"]) {
|
|
96
|
+
--hraness-marketing-header-background: var(--hraness-marketing-background);
|
|
97
|
+
--hraness-marketing-header-backdrop: none;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:root[data-hraness-theme="paper"]:where(:not([data-palette]), [data-palette="paper"]),
|
|
103
|
+
[data-hraness-theme="paper"]:where(:not([data-palette]), [data-palette="paper"]) {
|
|
104
|
+
--background: light-dark(#f8f7f4, #12100f);
|
|
105
|
+
--foreground: light-dark(#1c1917, #f5f2ed);
|
|
106
|
+
--muted: light-dark(#6c665f, #aaa29a);
|
|
107
|
+
--faint: light-dark(#6c665f, #aaa29a);
|
|
108
|
+
--grid: light-dark(#dfdcd6, #302b27);
|
|
109
|
+
--line: light-dark(#b9b3ab, #514a44);
|
|
110
|
+
--control-border: light-dark(#8a8177, #827a72);
|
|
111
|
+
--surface: light-dark(#fffefa, #1d1a18);
|
|
112
|
+
--surface-raised: light-dark(#fffefa, #211d1a);
|
|
113
|
+
--surface-hover: light-dark(#ebe8e3, #292522);
|
|
114
|
+
--card: light-dark(#fffefa, #1d1a18);
|
|
115
|
+
--card-foreground: light-dark(#1c1917, #f5f2ed);
|
|
116
|
+
--popover: light-dark(#fffefa, #211d1a);
|
|
117
|
+
--popover-foreground: light-dark(#1c1917, #f5f2ed);
|
|
118
|
+
--primary: light-dark(#1e5ae1, #8fb0ff);
|
|
119
|
+
--primary-foreground: light-dark(#f8f7f4, #12100f);
|
|
120
|
+
--primary-soft: light-dark(#dee5f3, #21232c);
|
|
121
|
+
--secondary: light-dark(#ebe8e3, #292522);
|
|
122
|
+
--secondary-foreground: light-dark(#1c1917, #f5f2ed);
|
|
123
|
+
--accent: light-dark(#dee5f3, #21232c);
|
|
124
|
+
--accent-foreground: light-dark(#1c1917, #f5f2ed);
|
|
125
|
+
--focus: light-dark(#1e5ae1, #8fb0ff);
|
|
126
|
+
--scrim: light-dark(#00000070, #000000b8);
|
|
127
|
+
--disabled: light-dark(#fffefa, #211d1a);
|
|
128
|
+
--disabled-foreground: light-dark(#6c665f, #aaa29a);
|
|
129
|
+
--inverse: light-dark(#1c1917, #f5f2ed);
|
|
130
|
+
--inverse-foreground: light-dark(#f8f7f4, #12100f);
|
|
131
|
+
--danger: light-dark(#b23c34, #ef8c82);
|
|
132
|
+
--danger-foreground: light-dark(#f8f7f4, #12100f);
|
|
133
|
+
--danger-soft: light-dark(#f0e1dd, #2d1f1d);
|
|
134
|
+
--warning: light-dark(#975600, #efae55);
|
|
135
|
+
--warning-foreground: light-dark(#f8f7f4, #12100f);
|
|
136
|
+
--warning-soft: light-dark(#eee5d7, #2d2317);
|
|
137
|
+
--success: light-dark(#227445, #5fc98b);
|
|
138
|
+
--success-foreground: light-dark(#f8f7f4, #12100f);
|
|
139
|
+
--success-soft: light-dark(#dfe9e0, #1b261e);
|
|
140
|
+
--info: light-dark(#1e5ae1, #8fb0ff);
|
|
141
|
+
--info-foreground: light-dark(#f8f7f4, #12100f);
|
|
142
|
+
--info-soft: light-dark(#dee5f3, #21232c);
|
|
143
|
+
--chart1: light-dark(#a24a64, #db91aa);
|
|
144
|
+
--chart2: light-dark(#227445, #5fc98b);
|
|
145
|
+
--chart3: light-dark(#1e5ae1, #8fb0ff);
|
|
146
|
+
--chart4: light-dark(#975600, #efae55);
|
|
147
|
+
--chart5: light-dark(#7858a3, #b7a0dc);
|
|
148
|
+
--ui-background: var(--background);
|
|
149
|
+
--ui-foreground: var(--foreground);
|
|
150
|
+
--ui-card: var(--card);
|
|
151
|
+
--ui-card-foreground: var(--card-foreground);
|
|
152
|
+
--ui-popover: var(--popover);
|
|
153
|
+
--ui-popover-foreground: var(--popover-foreground);
|
|
154
|
+
--ui-primary: var(--primary);
|
|
155
|
+
--ui-primary-foreground: var(--primary-foreground);
|
|
156
|
+
--ui-secondary: var(--secondary);
|
|
157
|
+
--ui-secondary-foreground: var(--secondary-foreground);
|
|
158
|
+
--ui-muted: var(--secondary);
|
|
159
|
+
--ui-muted-foreground: var(--muted);
|
|
160
|
+
--ui-accent: var(--accent);
|
|
161
|
+
--ui-accent-foreground: var(--accent-foreground);
|
|
162
|
+
--ui-destructive: var(--danger);
|
|
163
|
+
--ui-destructive-foreground: var(--danger-foreground);
|
|
164
|
+
--ui-destructive-soft: var(--danger-soft);
|
|
165
|
+
--ui-border: var(--line);
|
|
166
|
+
--ui-input: var(--control-border);
|
|
167
|
+
--ui-ring: var(--focus);
|
|
168
|
+
--ui-success: var(--success);
|
|
169
|
+
--ui-success-foreground: var(--success-foreground);
|
|
170
|
+
--ui-success-soft: var(--success-soft);
|
|
171
|
+
--ui-warning: var(--warning);
|
|
172
|
+
--ui-warning-foreground: var(--warning-foreground);
|
|
173
|
+
--ui-warning-soft: var(--warning-soft);
|
|
174
|
+
--ui-info: var(--info);
|
|
175
|
+
--ui-info-foreground: var(--info-foreground);
|
|
176
|
+
--ui-info-soft: var(--info-soft);
|
|
177
|
+
--ui-chart-1: var(--chart1);
|
|
178
|
+
--ui-chart-2: var(--chart2);
|
|
179
|
+
--ui-chart-3: var(--chart3);
|
|
180
|
+
--ui-chart-4: var(--chart4);
|
|
181
|
+
--ui-chart-5: var(--chart5);
|
|
182
|
+
--hraness-site-accent: var(--primary);
|
|
183
|
+
--hraness-site-accent-ink: var(--primary-foreground);
|
|
184
|
+
--plain-background: var(--background);
|
|
185
|
+
--plain-foreground: var(--foreground);
|
|
186
|
+
--plain-muted: var(--muted);
|
|
187
|
+
--plain-line: var(--grid);
|
|
188
|
+
--plain-surface: var(--secondary);
|
|
189
|
+
--plain-link: var(--primary);
|
|
190
|
+
--plain-syntax-keyword: var(--warning);
|
|
191
|
+
--plain-syntax-string: var(--success);
|
|
192
|
+
--plain-syntax-number: var(--danger);
|
|
193
|
+
--plain-syntax-name: var(--info);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* Standalone snapshots need their own derived light and shade. A lower-priority
|
|
197
|
+
* layer supplies identical portable depth without overriding installed UI roles. */
|
|
198
|
+
@layer base {
|
|
199
|
+
:root[data-hraness-theme="paper"]:where(:not([data-palette]), [data-palette="paper"]),
|
|
200
|
+
[data-hraness-theme="paper"]:where(:not([data-palette]), [data-palette="paper"]) {
|
|
201
|
+
--ui-surface-light: color-mix(in oklch, var(--card) 94%, white);
|
|
202
|
+
--ui-surface-shade: color-mix(in oklch, var(--background) 55%, black);
|
|
203
|
+
--elevation-low: inset 0 1px 0 color-mix(in srgb, var(--ui-surface-light) 72%, transparent), 0 1px 2px -1px color-mix(in srgb, var(--ui-surface-shade) 20%, transparent), 0 4px 10px -6px color-mix(in srgb, var(--ui-surface-shade) 22%, transparent);
|
|
204
|
+
--elevation-raised: inset 0 1px 0 color-mix(in srgb, var(--ui-surface-light) 72%, transparent), 0 2px 4px -2px color-mix(in srgb, var(--ui-surface-shade) 18%, transparent), 0 14px 28px -16px color-mix(in srgb, var(--ui-surface-shade) 30%, transparent);
|
|
205
|
+
--elevation-overlay: inset 0 1px 0 color-mix(in srgb, var(--ui-surface-light) 80%, transparent), 0 4px 12px -4px color-mix(in srgb, var(--ui-surface-shade) 24%, transparent), 0 24px 64px -20px color-mix(in srgb, var(--ui-surface-shade) 38%, transparent);
|
|
206
|
+
--elevation-inset: inset 0 2px 4px -2px color-mix(in srgb, var(--ui-surface-shade) 24%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--ui-surface-light) 44%, transparent);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@media (forced-colors: active) {
|
|
211
|
+
:root[data-hraness-theme="paper"]:where(:not([data-palette]), [data-palette="paper"]),
|
|
212
|
+
[data-hraness-theme="paper"]:where(:not([data-palette]), [data-palette="paper"]) {
|
|
213
|
+
--background: Canvas;
|
|
214
|
+
--foreground: CanvasText;
|
|
215
|
+
--muted: CanvasText;
|
|
216
|
+
--faint: CanvasText;
|
|
217
|
+
--surface: Canvas;
|
|
218
|
+
--surface-raised: Canvas;
|
|
219
|
+
--surface-hover: Canvas;
|
|
220
|
+
--card: Canvas;
|
|
221
|
+
--card-foreground: CanvasText;
|
|
222
|
+
--popover: Canvas;
|
|
223
|
+
--popover-foreground: CanvasText;
|
|
224
|
+
--secondary: Canvas;
|
|
225
|
+
--secondary-foreground: CanvasText;
|
|
226
|
+
--grid: CanvasText;
|
|
227
|
+
--line: CanvasText;
|
|
228
|
+
--control-border: ButtonText;
|
|
229
|
+
--primary: Highlight;
|
|
230
|
+
--primary-foreground: HighlightText;
|
|
231
|
+
--plain-link: LinkText;
|
|
232
|
+
--accent: Highlight;
|
|
233
|
+
--accent-foreground: HighlightText;
|
|
234
|
+
--focus: Highlight;
|
|
235
|
+
--inverse: CanvasText;
|
|
236
|
+
--inverse-foreground: Canvas;
|
|
237
|
+
--disabled: Canvas;
|
|
238
|
+
--disabled-foreground: GrayText;
|
|
239
|
+
--elevation-low: none;
|
|
240
|
+
--elevation-raised: none;
|
|
241
|
+
--elevation-overlay: none;
|
|
242
|
+
--elevation-inset: none;
|
|
243
|
+
}
|
|
244
|
+
}
|