@gradial/aci 0.1.20-preview.3 → 0.1.21
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/README.md +48 -108
- package/bin/{aci → aci-darwin-arm64} +0 -0
- package/bin/aci.js +99 -6
- package/dist/assets/index.d.ts +3 -3
- package/dist/assets/index.js +3 -3
- package/dist/astro/index.d.ts +12 -3
- package/dist/astro/index.js +20 -5
- package/dist/content/assets.d.ts +17 -0
- package/dist/content/assets.js +65 -0
- package/dist/content/index.d.ts +1 -0
- package/dist/content/index.js +1 -0
- package/dist/define-component.d.ts +1 -2
- package/dist/define-component.js +73 -5
- package/dist/dev/content-watch.d.ts +37 -0
- package/dist/dev/content-watch.js +154 -0
- package/dist/dev/index.d.ts +24 -43
- package/dist/dev/index.js +4 -169
- package/dist/index.d.ts +14 -6
- package/dist/index.js +8 -9
- package/dist/next/asset-route.js +2 -2
- package/dist/next/config.d.ts +2 -2
- package/dist/next/config.js +5 -5
- package/dist/next/content-watch.js +6 -1
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +2 -2
- package/dist/next/middleware.d.ts +1 -0
- package/dist/next/middleware.js +49 -8
- package/dist/next/page.d.ts +1 -1
- package/dist/next/page.js +14 -12
- package/dist/next/render.d.ts +3 -3
- package/dist/next/render.js +11 -9
- package/dist/next/server.d.ts +12 -12
- package/dist/next/server.js +1 -1
- package/dist/preview/core.d.ts +5 -0
- package/dist/preview/core.js +1 -1
- package/dist/react/Media.d.ts +24 -0
- package/dist/react/Media.js +30 -0
- package/dist/react/Picture.d.ts +12 -0
- package/dist/react/Picture.js +11 -0
- package/dist/react/VideoPlayer.d.ts +13 -0
- package/dist/react/{GradialVideoPlayer.js → VideoPlayer.js} +6 -5
- package/dist/react/index.d.ts +333 -3
- package/dist/react/index.js +89 -3
- package/dist/registry.d.ts +2 -2
- package/dist/registry.js +3 -3
- package/dist/types/block-ref.d.ts +26 -0
- package/dist/types/block-ref.js +28 -0
- package/dist/types/component.d.ts +36 -32
- package/dist/types/config.d.ts +1 -1
- package/dist/types/image.d.ts +33 -20
- package/dist/types/image.js +42 -50
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/link.d.ts +38 -0
- package/dist/types/link.js +58 -0
- package/dist/types/media.d.ts +16 -35
- package/dist/types/media.js +15 -84
- package/dist/types/renderer.d.ts +1 -1
- package/dist/types/rich-text.d.ts +40 -0
- package/dist/types/rich-text.js +39 -0
- package/dist/types/video.d.ts +7 -13
- package/dist/types/video.js +3 -3
- package/package.json +29 -76
- package/src/cli/compile-registry.mjs +120 -63
- package/src/cli/validate-content.mjs +38 -75
- package/src/types/block-ref.ts +74 -0
- package/src/types/image.ts +79 -60
- package/templates/astro/template/.aci.yaml +28 -0
- package/templates/astro/template/.storybook/main.ts +79 -0
- package/templates/astro/template/.storybook/manager.ts +6 -0
- package/templates/astro/template/.storybook/preview.ts +33 -0
- package/templates/astro/template/astro.config.mjs +37 -0
- package/templates/astro/template/package.json.tmpl +41 -0
- package/templates/astro/template/src/cms/contracts/layouts/index.ts +18 -0
- package/templates/astro/template/src/cms/registry.ts +28 -0
- package/templates/astro/template/src/components/chrome/Footer.astro +107 -0
- package/templates/astro/template/src/components/chrome/Header.astro +94 -0
- package/templates/astro/template/src/components/elements/AtomicBlock.astro +15 -0
- package/templates/astro/template/src/components/elements/AtomicBlocks.astro +16 -0
- package/templates/astro/template/src/components/elements/Button.astro +51 -0
- package/templates/astro/template/src/components/elements/ButtonBlock.astro +25 -0
- package/templates/astro/template/src/components/elements/Container.astro +11 -0
- package/templates/astro/template/src/components/elements/Icon.astro +31 -0
- package/templates/astro/template/src/components/elements/Logo.astro +29 -0
- package/templates/astro/template/src/components/elements/RemoteImage.astro +41 -0
- package/templates/astro/template/src/components/sections/ContainerSection.astro +32 -0
- package/templates/astro/template/src/components/sections/FeatureCard.astro +23 -0
- package/templates/astro/template/src/components/sections/FeatureGrid.astro +35 -0
- package/templates/astro/template/src/components/sections/HomeHero.astro +51 -0
- package/templates/astro/template/src/components/sections/StatsBar.astro +33 -0
- package/templates/astro/template/src/design-system/styles.css +399 -0
- package/templates/astro/template/src/design-system/tokens/colors.css +60 -0
- package/templates/astro/template/src/design-system/tokens/components.css +69 -0
- package/templates/astro/template/src/design-system/tokens/index.css +6 -0
- package/templates/astro/template/src/design-system/tokens/radii.css +5 -0
- package/templates/astro/template/src/design-system/tokens/shadows.css +5 -0
- package/templates/astro/template/src/design-system/tokens/spacing.css +13 -0
- package/templates/astro/template/src/design-system/tokens/typography.css +24 -0
- package/templates/astro/template/src/env.d.ts +1 -0
- package/templates/astro/template/src/fixtures/atomicBlocks.ts +33 -0
- package/templates/astro/template/src/fixtures/composition.ts +31 -0
- package/templates/astro/template/src/fixtures/index.ts +17 -0
- package/templates/astro/template/src/fixtures/sections.ts +39 -0
- package/templates/astro/template/src/layouts/SiteLayout.astro +30 -0
- package/templates/astro/template/src/pages/[...slug].astro +61 -0
- package/templates/astro/template/src/render/RenderPage.astro +66 -0
- package/templates/astro/template/src/stories/CompositionStoryFrame.astro +15 -0
- package/templates/astro/template/src/stories/HomeHero.stories.ts +24 -0
- package/templates/astro/template/src/stories/SectionStoryFrame.astro +16 -0
- package/templates/astro/template/src/stories/StoryDocFrame.astro +31 -0
- package/templates/astro/template/tsconfig.json +11 -0
- package/templates/common/.agents/AGENTS.md +37 -0
- package/templates/common/.agents/skills/aci/SKILL.md +162 -0
- package/templates/common/.agents/skills/authoring/SKILL.md +590 -0
- package/templates/common/.agents/skills/authoring/references/block-registry.md +151 -0
- package/templates/common/.agents/skills/authoring/references/contracts.md +153 -0
- package/templates/common/.agents/skills/authoring/references/design-system.md +171 -0
- package/templates/common/.agents/skills/authoring/references/image-assets.md +73 -0
- package/templates/common/.agents/skills/authoring/references/repo-structure.md +157 -0
- package/templates/common/.agents/skills/migration/SKILL.md +160 -0
- package/templates/common/.agents/skills/migration/references/analyzing-source.md +215 -0
- package/templates/common/.agents/skills/migration/references/component-migration.md +200 -0
- package/templates/common/.agents/skills/migration/references/selector-map.md +31 -0
- package/templates/common/.content/.gradial-dam/blobs/sha256/7f/bf/7fbfc7fe230ff12688c496f660119e41d9725c4504d82e310c15665c73c09292 +0 -0
- package/templates/common/.content/.gradial-dam/blobs/sha256/a0/f5/a0f506689de9b15a7055f70103a3f02cd3ba105771ae2de6754df2ede1210d3a +0 -0
- package/templates/common/.content/.gradial-dam/blobs/sha256/dd/b7/ddb7e9642be08317bcd4b2bd26b58ba8d0d34dd7239e03e684a4f3634fa3845b +0 -0
- package/templates/common/.content/.gradial-dam/blobs/sha256/fb/32/fb3260e8286ea8231ea1c77b9c0be92d6edd9026565731eb14cfdcfd6b1b75b3 +0 -0
- package/templates/common/.content/config/site.json +192 -0
- package/templates/common/.content/dam/folders/seed/ast_site_about_hero/asset.json +9 -0
- package/templates/common/.content/dam/folders/seed/ast_site_about_hero/editorial.json +14 -0
- package/templates/common/.content/dam/folders/seed/ast_site_about_hero/governance.json +23 -0
- package/templates/common/.content/dam/folders/seed/ast_site_about_hero/versions/v0001.json +37 -0
- package/templates/common/.content/dam/folders/seed/ast_site_home_hero/asset.json +9 -0
- package/templates/common/.content/dam/folders/seed/ast_site_home_hero/editorial.json +14 -0
- package/templates/common/.content/dam/folders/seed/ast_site_home_hero/governance.json +23 -0
- package/templates/common/.content/dam/folders/seed/ast_site_home_hero/versions/v0001.json +37 -0
- package/templates/common/.content/fragments/navbar/_index.json +25 -0
- package/templates/common/.content/fragments/site-footer/_index.json +62 -0
- package/templates/common/.content/pages/about/_index.json +51 -0
- package/templates/common/.content/pages/home/_index.json +112 -0
- package/templates/common/.content/schemas/site.schema.json +123 -0
- package/templates/common/README.md.tmpl +45 -0
- package/templates/common/contracts/components/button.contract.ts +19 -0
- package/templates/common/contracts/components/container.contract.ts +19 -0
- package/templates/common/contracts/components/featureCard.contract.ts +15 -0
- package/templates/common/contracts/components/featureGrid.contract.ts +16 -0
- package/templates/common/contracts/components/homeHero.contract.ts +36 -0
- package/templates/common/contracts/components/index.ts +21 -0
- package/templates/common/contracts/components/siteFooter.contract.ts +45 -0
- package/templates/common/contracts/components/siteNavigation.contract.ts +30 -0
- package/templates/common/contracts/components/statsBar.contract.ts +19 -0
- package/templates/common/design-system/styles.css +346 -0
- package/templates/common/design-system/tokens/colors.css +110 -0
- package/templates/common/design-system/tokens/components.css +86 -0
- package/templates/common/design-system/tokens/index.css +6 -0
- package/templates/common/design-system/tokens/radii.css +5 -0
- package/templates/common/design-system/tokens/shadows.css +9 -0
- package/templates/common/design-system/tokens/spacing.css +26 -0
- package/templates/common/design-system/tokens/typography.css +32 -0
- package/templates/common/eslint-rules/no-raw-tailwind-values.js +127 -0
- package/templates/common/public/assets/Dwire-model.png +0 -0
- package/templates/common/public/assets/bare-metal-logo.png +0 -0
- package/templates/common/public/assets/meridian-logo.svg +8 -0
- package/templates/common/public/assets/seattle.avif +0 -0
- package/templates/nextjs/template/.aci.yaml +26 -0
- package/templates/nextjs/template/.storybook/main.ts +13 -0
- package/templates/nextjs/template/.storybook/preview.ts +34 -0
- package/templates/nextjs/template/eslint.config.mjs +36 -0
- package/templates/nextjs/template/next-env.d.ts +6 -0
- package/templates/nextjs/template/next.config.ts +8 -0
- package/templates/nextjs/template/package.json.tmpl +46 -0
- package/templates/nextjs/template/postcss.config.mjs +7 -0
- package/templates/nextjs/template/src/app/[[...slug]]/page.tsx +8 -0
- package/templates/nextjs/template/src/app/gradial/assets/[releaseId]/[...path]/route.ts +31 -0
- package/templates/nextjs/template/src/app/layout.tsx +29 -0
- package/templates/nextjs/template/src/cms/contracts/components/button.contract.ts +19 -0
- package/templates/nextjs/template/src/cms/contracts/components/container.contract.ts +20 -0
- package/templates/nextjs/template/src/cms/contracts/components/homeHero.contract.ts +36 -0
- package/templates/nextjs/template/src/cms/contracts/components/index.ts +15 -0
- package/templates/nextjs/template/src/cms/contracts/components/siteFooter.contract.ts +45 -0
- package/templates/nextjs/template/src/cms/contracts/components/siteNavigation.contract.ts +30 -0
- package/templates/nextjs/template/src/cms/contracts/layouts/index.ts +16 -0
- package/templates/nextjs/template/src/cms/registry.ts +28 -0
- package/templates/nextjs/template/src/components/chrome/Footer.tsx +86 -0
- package/templates/nextjs/template/src/components/chrome/Header.tsx +74 -0
- package/templates/nextjs/template/src/components/elements/AtomicBlock.tsx +13 -0
- package/templates/nextjs/template/src/components/elements/Button.tsx +40 -0
- package/templates/nextjs/template/src/components/elements/ButtonBlock.tsx +18 -0
- package/templates/nextjs/template/src/components/elements/Container.tsx +14 -0
- package/templates/nextjs/template/src/components/elements/Icon.tsx +29 -0
- package/templates/nextjs/template/src/components/elements/Logo.tsx +38 -0
- package/templates/nextjs/template/src/components/sections/ContainerSection.tsx +28 -0
- package/templates/nextjs/template/src/components/sections/FeatureCard.tsx +25 -0
- package/templates/nextjs/template/src/components/sections/FeatureGrid.tsx +36 -0
- package/templates/nextjs/template/src/components/sections/HomeHero.tsx +62 -0
- package/templates/nextjs/template/src/components/sections/StatsBar.tsx +30 -0
- package/templates/nextjs/template/src/middleware.ts +4 -0
- package/templates/nextjs/template/src/stories/Button.stories.tsx +38 -0
- package/templates/nextjs/template/src/stories/Header.stories.tsx +30 -0
- package/templates/nextjs/template/src/stories/HomeHero.stories.tsx +33 -0
- package/templates/nextjs/template/tsconfig.json +23 -0
- package/templates/nextjs/template/vercel.json +6 -0
- package/dist/content/contract.d.ts +0 -83
- package/dist/content/contract.js +0 -104
- package/dist/content/tailwind-validator.d.ts +0 -6
- package/dist/content/tailwind-validator.js +0 -31
- package/dist/content/validation.d.ts +0 -108
- package/dist/content/validation.js +0 -183
- package/dist/react/GradialMedia.d.ts +0 -24
- package/dist/react/GradialMedia.js +0 -31
- package/dist/react/GradialPicture.d.ts +0 -14
- package/dist/react/GradialPicture.js +0 -30
- package/dist/react/GradialVideoPlayer.d.ts +0 -13
- package/dist/sveltekit/index.d.ts +0 -25
- package/dist/sveltekit/index.js +0 -66
- package/dist/sveltekit/preview.d.ts +0 -5
- package/dist/sveltekit/preview.js +0 -33
- package/src/types/component.ts +0 -49
- package/src/types/config.ts +0 -37
- package/src/types/data.ts +0 -47
- package/src/types/index.ts +0 -10
- package/src/types/layout.ts +0 -29
- package/src/types/media.ts +0 -125
- package/src/types/page.ts +0 -47
- package/src/types/render-mode.ts +0 -10
- package/src/types/renderer.ts +0 -83
- package/src/types/video.ts +0 -66
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
@import "tailwindcss" source(none);
|
|
2
|
+
@import "./tokens/index.css";
|
|
3
|
+
|
|
4
|
+
@source "../../src/**/*.astro";
|
|
5
|
+
@source "../../content/**/*.json";
|
|
6
|
+
@source "../fixtures/**/*.ts";
|
|
7
|
+
|
|
8
|
+
:root {
|
|
9
|
+
color-scheme: light;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[dir="rtl"] {
|
|
13
|
+
--gradient-hero-overlay: var(--gradient-hero-overlay-rtl);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.theme-auto,
|
|
17
|
+
.theme-light {
|
|
18
|
+
--color-fg: var(--color-fg-primary);
|
|
19
|
+
--color-fg-muted: var(--color-fg-secondary);
|
|
20
|
+
--color-surface-default: var(--color-page);
|
|
21
|
+
--color-surface-raised-default: var(--color-surface-raised);
|
|
22
|
+
--color-edge: var(--color-border);
|
|
23
|
+
--color-icon-default: var(--color-accent-primary);
|
|
24
|
+
--color-link-hover: var(--color-accent-primary);
|
|
25
|
+
--color-callout-icon-bg-default: var(--color-callout-icon-bg-light);
|
|
26
|
+
--rich-text-quote-bg-default: var(--rich-text-quote-bg);
|
|
27
|
+
--rich-text-inline-code-bg-default: var(--rich-text-inline-code-bg);
|
|
28
|
+
--shadow-card-default: var(--shadow-card);
|
|
29
|
+
--gradient-cta-default: var(--gradient-cta);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.theme-dark {
|
|
33
|
+
--color-fg: var(--color-fg-inverse);
|
|
34
|
+
--color-fg-muted: var(--color-fg-inverse-muted);
|
|
35
|
+
--color-surface-default: var(--color-page-inverse);
|
|
36
|
+
--color-surface-raised-default: var(--color-page-inverse);
|
|
37
|
+
--color-edge: var(--color-edge-inverse);
|
|
38
|
+
--color-icon-default: var(--color-fg-inverse-muted);
|
|
39
|
+
--color-link-hover: var(--color-accent-secondary);
|
|
40
|
+
--rich-text-quote-bg-default: var(--rich-text-quote-bg-dark);
|
|
41
|
+
--rich-text-inline-code-bg-default: var(--rich-text-inline-code-bg-dark);
|
|
42
|
+
--shadow-card-default: var(--shadow-card-dark);
|
|
43
|
+
--gradient-cta-default: var(--gradient-cta-dark);
|
|
44
|
+
--button-primary-bg: var(--color-white);
|
|
45
|
+
--button-primary-text: var(--color-black);
|
|
46
|
+
--button-primary-border: var(--color-white);
|
|
47
|
+
--button-secondary-bg: transparent;
|
|
48
|
+
--button-secondary-text: var(--color-white);
|
|
49
|
+
--button-secondary-border: var(--color-white);
|
|
50
|
+
--button-outline-bg: transparent;
|
|
51
|
+
--button-outline-text: var(--color-white);
|
|
52
|
+
--button-outline-border: var(--color-edge-inverse);
|
|
53
|
+
--button-tertiary-text: var(--color-accent-secondary);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.theme-accent {
|
|
57
|
+
--color-fg: var(--color-black);
|
|
58
|
+
--color-fg-muted: var(--color-black);
|
|
59
|
+
--color-surface-default: var(--color-accent-secondary);
|
|
60
|
+
--color-surface-raised-default: var(--color-accent-secondary);
|
|
61
|
+
--color-edge: transparent;
|
|
62
|
+
--color-icon-default: var(--color-black);
|
|
63
|
+
--color-link-hover: var(--color-black);
|
|
64
|
+
--gradient-cta-default: var(--gradient-cta);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.theme-dark .theme-auto {
|
|
68
|
+
--color-fg: var(--color-fg-inverse);
|
|
69
|
+
--color-fg-muted: var(--color-fg-inverse-soft);
|
|
70
|
+
--color-surface-default: var(--color-page-dark);
|
|
71
|
+
--color-surface-raised-default: var(--color-surface-raised-dark);
|
|
72
|
+
--color-edge: var(--color-edge-dark);
|
|
73
|
+
--color-icon-default: var(--color-accent-secondary);
|
|
74
|
+
--color-link-hover: var(--color-accent-secondary);
|
|
75
|
+
--color-callout-icon-bg: var(--color-callout-icon-bg-dark);
|
|
76
|
+
--rich-text-quote-bg-default: var(--rich-text-quote-bg-dark);
|
|
77
|
+
--rich-text-inline-code-bg-default: var(--rich-text-inline-code-bg-dark);
|
|
78
|
+
--shadow-card-default: var(--shadow-card-dark);
|
|
79
|
+
--gradient-cta-default: var(--gradient-cta-dark);
|
|
80
|
+
--button-primary-bg: var(--color-white);
|
|
81
|
+
--button-primary-text: var(--color-black);
|
|
82
|
+
--button-primary-border: var(--color-white);
|
|
83
|
+
--button-secondary-bg: transparent;
|
|
84
|
+
--button-secondary-text: var(--color-white);
|
|
85
|
+
--button-secondary-border: var(--color-white);
|
|
86
|
+
--button-outline-bg: transparent;
|
|
87
|
+
--button-outline-text: var(--color-white);
|
|
88
|
+
--button-outline-border: var(--color-edge-inverse);
|
|
89
|
+
--button-tertiary-text: var(--color-accent-secondary);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.theme-dark .theme-accent {
|
|
93
|
+
--color-fg: var(--color-fg-inverse);
|
|
94
|
+
--color-fg-muted: var(--color-fg-inverse-soft);
|
|
95
|
+
--color-surface-default: var(--color-surface-dark);
|
|
96
|
+
--color-surface-raised-default: var(--color-surface-raised-dark);
|
|
97
|
+
--color-edge: var(--color-edge-dark);
|
|
98
|
+
--color-icon-default: var(--color-accent-secondary);
|
|
99
|
+
--color-link-hover: var(--color-accent-secondary);
|
|
100
|
+
--rich-text-quote-bg-default: var(--rich-text-quote-bg-dark);
|
|
101
|
+
--rich-text-inline-code-bg-default: var(--rich-text-inline-code-bg-dark);
|
|
102
|
+
--gradient-cta-default: var(--gradient-cta-dark);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.bm-header {
|
|
106
|
+
background: var(--header-bg);
|
|
107
|
+
--color-fg: var(--header-text);
|
|
108
|
+
--color-fg-muted: var(--header-muted);
|
|
109
|
+
--color-edge: var(--header-border);
|
|
110
|
+
--color-link-hover: var(--header-link-hover);
|
|
111
|
+
--color-icon-default: var(--header-icon);
|
|
112
|
+
--button-secondary-text: var(--color-white);
|
|
113
|
+
--button-secondary-border: var(--color-white);
|
|
114
|
+
--button-outline-text: var(--color-white);
|
|
115
|
+
--button-outline-border: var(--header-border);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.bm-footer {
|
|
119
|
+
background: var(--footer-bg);
|
|
120
|
+
--color-fg: var(--footer-text);
|
|
121
|
+
--color-fg-muted: var(--footer-muted);
|
|
122
|
+
--color-edge: var(--footer-border);
|
|
123
|
+
--color-link-hover: var(--footer-link-hover);
|
|
124
|
+
--color-icon-default: var(--footer-muted);
|
|
125
|
+
--button-primary-bg: var(--color-white);
|
|
126
|
+
--button-primary-text: var(--color-black);
|
|
127
|
+
--button-primary-border: var(--color-white);
|
|
128
|
+
--button-secondary-text: var(--color-white);
|
|
129
|
+
--button-secondary-border: var(--color-white);
|
|
130
|
+
--button-outline-text: var(--color-white);
|
|
131
|
+
--button-outline-border: var(--footer-border);
|
|
132
|
+
--button-tertiary-text: var(--footer-link-hover);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.bm-mobile-nav {
|
|
136
|
+
background: var(--mobile-nav-bg);
|
|
137
|
+
--color-fg: var(--mobile-nav-text);
|
|
138
|
+
--color-fg-muted: var(--mobile-nav-muted);
|
|
139
|
+
--color-edge: var(--mobile-nav-border);
|
|
140
|
+
--color-link-hover: var(--mobile-nav-link-hover);
|
|
141
|
+
--color-icon-default: var(--mobile-nav-muted);
|
|
142
|
+
--button-primary-bg: var(--color-white);
|
|
143
|
+
--button-primary-text: var(--color-black);
|
|
144
|
+
--button-primary-border: var(--color-white);
|
|
145
|
+
--button-secondary-text: var(--color-white);
|
|
146
|
+
--button-secondary-border: var(--color-white);
|
|
147
|
+
--button-outline-text: var(--color-white);
|
|
148
|
+
--button-outline-border: var(--mobile-nav-border);
|
|
149
|
+
--button-tertiary-text: var(--mobile-nav-link-hover);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@media (prefers-color-scheme: dark) {
|
|
153
|
+
:root {
|
|
154
|
+
color-scheme: dark;
|
|
155
|
+
--color-fg: var(--color-fg-inverse);
|
|
156
|
+
--color-fg-muted: var(--color-fg-inverse-soft);
|
|
157
|
+
--color-surface-default: var(--color-page-dark);
|
|
158
|
+
--color-surface-raised-default: var(--color-surface-raised-dark);
|
|
159
|
+
--color-chrome-surface-default: var(--color-chrome-surface);
|
|
160
|
+
--color-edge: var(--color-edge-dark);
|
|
161
|
+
--color-icon-default: var(--color-accent-secondary);
|
|
162
|
+
--color-link-hover: var(--color-accent-secondary);
|
|
163
|
+
--color-callout-icon-bg: var(--color-callout-icon-bg-dark);
|
|
164
|
+
--rich-text-quote-bg-default: var(--rich-text-quote-bg-dark);
|
|
165
|
+
--rich-text-inline-code-bg-default: var(--rich-text-inline-code-bg-dark);
|
|
166
|
+
--shadow-card-default: var(--shadow-card-dark);
|
|
167
|
+
--gradient-cta-default: var(--gradient-cta-dark);
|
|
168
|
+
--button-primary-bg: var(--color-white);
|
|
169
|
+
--button-primary-text: var(--color-black);
|
|
170
|
+
--button-primary-border: var(--color-white);
|
|
171
|
+
--button-secondary-bg: transparent;
|
|
172
|
+
--button-secondary-text: var(--color-white);
|
|
173
|
+
--button-secondary-border: var(--color-white);
|
|
174
|
+
--button-outline-bg: transparent;
|
|
175
|
+
--button-outline-text: var(--color-white);
|
|
176
|
+
--button-outline-border: var(--color-edge-inverse);
|
|
177
|
+
--button-tertiary-text: var(--color-accent-secondary);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.theme-auto {
|
|
181
|
+
--color-fg: var(--color-fg-inverse);
|
|
182
|
+
--color-fg-muted: var(--color-fg-inverse-soft);
|
|
183
|
+
--color-surface-default: var(--color-page-dark);
|
|
184
|
+
--color-surface-raised-default: var(--color-surface-raised-dark);
|
|
185
|
+
--color-edge: var(--color-edge-dark);
|
|
186
|
+
--color-icon-default: var(--color-accent-secondary);
|
|
187
|
+
--color-link-hover: var(--color-accent-secondary);
|
|
188
|
+
--color-callout-icon-bg: var(--color-callout-icon-bg-dark);
|
|
189
|
+
--rich-text-quote-bg-default: var(--rich-text-quote-bg-dark);
|
|
190
|
+
--rich-text-inline-code-bg-default: var(--rich-text-inline-code-bg-dark);
|
|
191
|
+
--shadow-card-default: var(--shadow-card-dark);
|
|
192
|
+
--gradient-cta-default: var(--gradient-cta-dark);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.theme-accent {
|
|
196
|
+
--color-fg: var(--color-fg-inverse);
|
|
197
|
+
--color-fg-muted: var(--color-fg-inverse-soft);
|
|
198
|
+
--color-surface-default: var(--color-surface-dark);
|
|
199
|
+
--color-surface-raised-default: var(--color-surface-raised-dark);
|
|
200
|
+
--color-edge: var(--color-edge-dark);
|
|
201
|
+
--color-icon-default: var(--color-accent-secondary);
|
|
202
|
+
--color-link-hover: var(--color-accent-secondary);
|
|
203
|
+
--rich-text-quote-bg-default: var(--rich-text-quote-bg-dark);
|
|
204
|
+
--rich-text-inline-code-bg-default: var(--rich-text-inline-code-bg-dark);
|
|
205
|
+
--gradient-cta-default: var(--gradient-cta-dark);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
* {
|
|
210
|
+
box-sizing: border-box;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
html {
|
|
214
|
+
scroll-behavior: smooth;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
body {
|
|
218
|
+
margin: 0;
|
|
219
|
+
min-width: 320px;
|
|
220
|
+
background: var(--color-surface-default);
|
|
221
|
+
color: var(--color-fg);
|
|
222
|
+
font-family: var(--font-family-base);
|
|
223
|
+
font-size: var(--text-size-body);
|
|
224
|
+
line-height: var(--leading-body);
|
|
225
|
+
-webkit-font-smoothing: antialiased;
|
|
226
|
+
text-rendering: optimizeLegibility;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
a {
|
|
230
|
+
color: inherit;
|
|
231
|
+
text-decoration: none;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
button,
|
|
235
|
+
input,
|
|
236
|
+
select,
|
|
237
|
+
textarea {
|
|
238
|
+
font: inherit;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
img,
|
|
242
|
+
svg {
|
|
243
|
+
display: block;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
:focus-visible {
|
|
247
|
+
outline: calc(var(--spacing) * 0.75) solid var(--color-focus);
|
|
248
|
+
outline-offset: calc(var(--spacing) * 1);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@layer base {
|
|
252
|
+
h1, h2, h3, h4, h5, h6 {
|
|
253
|
+
margin-block: 0;
|
|
254
|
+
font-family: var(--font-family-heading);
|
|
255
|
+
font-weight: var(--font-weight-semibold);
|
|
256
|
+
line-height: var(--leading-heading);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
h1 {
|
|
260
|
+
font-size: var(--text-size-h1-mobile);
|
|
261
|
+
font-weight: var(--font-weight-bold);
|
|
262
|
+
line-height: var(--leading-tight);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
h2 { font-size: var(--text-size-h2-mobile); }
|
|
266
|
+
h3 { font-size: var(--text-size-h3); }
|
|
267
|
+
h4 { font-size: var(--text-size-body-large); }
|
|
268
|
+
h5 { font-size: var(--text-size-body); }
|
|
269
|
+
h6 { font-size: var(--text-size-body-small); }
|
|
270
|
+
|
|
271
|
+
@media (min-width: 768px) {
|
|
272
|
+
h1 { font-size: var(--text-size-h1); }
|
|
273
|
+
h2 { font-size: var(--text-size-h2); }
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
p, ul, ol, blockquote, pre {
|
|
277
|
+
margin-block: 0;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
ul { list-style: disc; padding-left: 1.4em; }
|
|
281
|
+
ol { list-style: decimal; padding-left: 1.4em; }
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.bm-rich-text-section {
|
|
285
|
+
background: var(--color-surface-default);
|
|
286
|
+
padding: var(--spacing-section-y) var(--spacing-container);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.bm-rich-text-section--quiet {
|
|
290
|
+
background: var(--color-surface-muted);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.bm-rich-text {
|
|
294
|
+
max-width: var(--max-width-rich-text);
|
|
295
|
+
margin-inline: auto;
|
|
296
|
+
color: var(--color-fg);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.bm-rich-text--wide {
|
|
300
|
+
max-width: var(--max-width-rich-text-wide);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.bm-rich-text__eyebrow {
|
|
304
|
+
margin: 0 0 calc(var(--spacing) * 4);
|
|
305
|
+
color: var(--color-accent-primary);
|
|
306
|
+
font-size: var(--text-size-eyebrow);
|
|
307
|
+
font-weight: var(--font-weight-bold);
|
|
308
|
+
letter-spacing: var(--letter-spacing-label);
|
|
309
|
+
text-transform: uppercase;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.bm-rich-text__heading {
|
|
313
|
+
margin: 0;
|
|
314
|
+
color: var(--color-fg);
|
|
315
|
+
font-family: var(--font-family-heading);
|
|
316
|
+
font-size: var(--text-size-h2-mobile);
|
|
317
|
+
font-weight: var(--font-weight-semibold);
|
|
318
|
+
line-height: var(--leading-heading);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.bm-rich-text__body {
|
|
322
|
+
margin-top: var(--rich-text-heading-space);
|
|
323
|
+
color: var(--color-fg);
|
|
324
|
+
font-size: var(--text-size-body-large);
|
|
325
|
+
line-height: var(--leading-relaxed);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.bm-rich-text__body--inline {
|
|
329
|
+
margin-top: 0;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.bm-rich-text__body > * {
|
|
333
|
+
margin-block: 0;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.bm-rich-text__body > * + * {
|
|
337
|
+
margin-top: var(--rich-text-flow-space);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.bm-rich-text__body h2,
|
|
341
|
+
.bm-rich-text__body h3,
|
|
342
|
+
.bm-rich-text__body h4 {
|
|
343
|
+
color: var(--color-fg);
|
|
344
|
+
font-family: var(--font-family-heading);
|
|
345
|
+
font-weight: var(--font-weight-semibold);
|
|
346
|
+
line-height: var(--leading-heading);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.bm-rich-text__body h2 {
|
|
350
|
+
font-size: var(--text-size-h3);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.bm-rich-text__body h3,
|
|
354
|
+
.bm-rich-text__body h4 {
|
|
355
|
+
font-size: var(--text-size-body-large);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.bm-rich-text__body a {
|
|
359
|
+
color: var(--color-link-hover);
|
|
360
|
+
font-weight: var(--font-weight-semibold);
|
|
361
|
+
text-decoration: underline;
|
|
362
|
+
text-decoration-thickness: var(--rich-text-link-decoration-thickness);
|
|
363
|
+
text-underline-offset: var(--rich-text-link-underline-offset);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.bm-rich-text__body ul {
|
|
367
|
+
list-style: disc;
|
|
368
|
+
padding-left: var(--rich-text-list-indent);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.bm-rich-text__body ol {
|
|
372
|
+
list-style: decimal;
|
|
373
|
+
padding-left: var(--rich-text-list-indent);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.bm-rich-text__body li + li {
|
|
377
|
+
margin-top: calc(var(--spacing) * 3);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.bm-rich-text__body blockquote {
|
|
381
|
+
border-left: var(--rich-text-blockquote-border-width) solid var(--rich-text-quote-border);
|
|
382
|
+
background: var(--rich-text-quote-bg-default);
|
|
383
|
+
padding: calc(var(--spacing) * 5) calc(var(--spacing) * 6);
|
|
384
|
+
font-weight: var(--font-weight-medium);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.bm-rich-text__body code {
|
|
388
|
+
border-radius: calc(var(--spacing) * 1);
|
|
389
|
+
background: var(--rich-text-inline-code-bg-default);
|
|
390
|
+
color: var(--rich-text-inline-code-text);
|
|
391
|
+
font-size: var(--text-size-caption);
|
|
392
|
+
padding: var(--rich-text-inline-code-padding);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
@media (min-width: 768px) {
|
|
396
|
+
.bm-rich-text__heading {
|
|
397
|
+
font-size: var(--text-size-h2);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
--color-black: #000000;
|
|
3
|
+
--color-white: #ffffff;
|
|
4
|
+
--color-page: var(--color-white);
|
|
5
|
+
--color-page-dark: #101014;
|
|
6
|
+
--color-page-inverse: #000000;
|
|
7
|
+
--color-chrome-surface: var(--color-page-inverse);
|
|
8
|
+
--color-chrome-surface-default: var(--color-chrome-surface);
|
|
9
|
+
--color-surface: #ffffff;
|
|
10
|
+
--color-surface-muted: #f6f6f7;
|
|
11
|
+
--color-surface-raised: #ffffff;
|
|
12
|
+
--color-surface-dark: #101014;
|
|
13
|
+
--color-surface-raised-dark: #16161d;
|
|
14
|
+
--color-fg-primary: #050505;
|
|
15
|
+
--color-fg-secondary: #4b4b50;
|
|
16
|
+
--color-fg-base-muted: #8d8d96;
|
|
17
|
+
--color-fg-inverse: #f7f7f7;
|
|
18
|
+
--color-fg-inverse-soft: #c8c8ce;
|
|
19
|
+
--color-fg-inverse-muted: #8f8f96;
|
|
20
|
+
--color-border: color-mix(in srgb, var(--color-black) 12%, transparent);
|
|
21
|
+
--color-edge-dark: color-mix(in srgb, var(--color-white) 16%, transparent);
|
|
22
|
+
--color-edge-inverse: color-mix(in srgb, var(--color-white) 26%, transparent);
|
|
23
|
+
--color-focus: #9a78ff;
|
|
24
|
+
--color-fg: var(--color-fg-primary);
|
|
25
|
+
--color-fg-muted: var(--color-fg-secondary);
|
|
26
|
+
--color-surface-default: var(--color-page);
|
|
27
|
+
--color-surface-raised-default: var(--color-surface-raised);
|
|
28
|
+
--color-edge: var(--color-border);
|
|
29
|
+
--color-accent-primary: #8b72ff;
|
|
30
|
+
--color-accent-secondary: #c9a7ff;
|
|
31
|
+
--color-accent-tertiary: #f0b2a6;
|
|
32
|
+
--color-accent-pink: #f0d9ee;
|
|
33
|
+
--color-accent-blue: #8ea2ff;
|
|
34
|
+
--color-accent-warm: #f0b2a6;
|
|
35
|
+
--color-icon-default: var(--color-accent-primary);
|
|
36
|
+
--color-link-hover: var(--color-accent-primary);
|
|
37
|
+
--color-brand-900: #241f54;
|
|
38
|
+
--color-brand-700: #5e45b8;
|
|
39
|
+
--color-brand-400: #8b72ff;
|
|
40
|
+
--color-brand-350: #a476ff;
|
|
41
|
+
--color-brand-300: #a98aff;
|
|
42
|
+
--color-brand-200: #c9a7ff;
|
|
43
|
+
--color-brand-100: #d5b7ff;
|
|
44
|
+
--gradient-hero-overlay: linear-gradient(
|
|
45
|
+
90deg,
|
|
46
|
+
color-mix(in srgb, var(--color-black) 68%, transparent),
|
|
47
|
+
color-mix(in srgb, var(--color-black) 50%, transparent) 48%,
|
|
48
|
+
color-mix(in srgb, var(--color-black) 12%, transparent)
|
|
49
|
+
);
|
|
50
|
+
--gradient-hero-overlay-rtl: linear-gradient(
|
|
51
|
+
270deg,
|
|
52
|
+
color-mix(in srgb, var(--color-black) 68%, transparent),
|
|
53
|
+
color-mix(in srgb, var(--color-black) 50%, transparent) 48%,
|
|
54
|
+
color-mix(in srgb, var(--color-black) 12%, transparent)
|
|
55
|
+
);
|
|
56
|
+
--gradient-cta: linear-gradient(135deg, var(--color-brand-400) 0%, var(--color-brand-100) 48%, var(--color-brand-350) 100%);
|
|
57
|
+
--gradient-cta-dark: linear-gradient(135deg, var(--color-brand-900) 0%, var(--color-brand-700) 52%, #14141f 100%);
|
|
58
|
+
--gradient-cta-default: var(--gradient-cta);
|
|
59
|
+
--gradient-top-rail: linear-gradient(90deg, var(--color-brand-300) 0%, var(--color-accent-pink) 52%, var(--color-accent-blue) 100%);
|
|
60
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
--width-logo-mobile: calc(var(--spacing) * 31);
|
|
3
|
+
--width-logo: calc(var(--spacing) * 52);
|
|
4
|
+
--width-logo-footer-mobile: calc(var(--spacing) * 37);
|
|
5
|
+
--width-logo-footer: calc(var(--spacing) * 56);
|
|
6
|
+
--logo-filter: brightness(1.18) saturate(1.14);
|
|
7
|
+
--text-button: var(--text-size-body-small);
|
|
8
|
+
--leading-button: 1;
|
|
9
|
+
--spacing-button-x: calc(var(--spacing) * 4);
|
|
10
|
+
--spacing-button-y: calc(var(--spacing) * 3);
|
|
11
|
+
--height-button-min: calc(var(--spacing) * 10);
|
|
12
|
+
--button-hover-opacity: 0.85;
|
|
13
|
+
--transition-duration-fast: 200ms;
|
|
14
|
+
--button-primary-bg: var(--color-black);
|
|
15
|
+
--button-primary-text: var(--color-white);
|
|
16
|
+
--button-primary-border: var(--color-black);
|
|
17
|
+
--button-secondary-bg: transparent;
|
|
18
|
+
--button-secondary-text: var(--color-black);
|
|
19
|
+
--button-secondary-border: var(--color-black);
|
|
20
|
+
--button-outline-bg: transparent;
|
|
21
|
+
--button-outline-text: var(--color-black);
|
|
22
|
+
--button-outline-border: var(--color-border);
|
|
23
|
+
--button-tertiary-bg: transparent;
|
|
24
|
+
--button-tertiary-text: var(--color-accent-primary);
|
|
25
|
+
--button-tertiary-border: transparent;
|
|
26
|
+
--header-bg: var(--color-chrome-surface-default);
|
|
27
|
+
--header-text: var(--color-fg-inverse);
|
|
28
|
+
--header-muted: var(--color-fg-inverse-soft);
|
|
29
|
+
--header-border: var(--color-edge-inverse);
|
|
30
|
+
--header-link-hover: var(--color-accent-secondary);
|
|
31
|
+
--header-icon: var(--color-fg-inverse-muted);
|
|
32
|
+
--mobile-nav-bg: var(--color-chrome-surface-default);
|
|
33
|
+
--mobile-nav-text: var(--color-fg-inverse);
|
|
34
|
+
--mobile-nav-muted: var(--color-fg-inverse-muted);
|
|
35
|
+
--mobile-nav-border: var(--color-edge-inverse);
|
|
36
|
+
--mobile-nav-link-hover: var(--color-accent-secondary);
|
|
37
|
+
--mobile-nav-link-size: calc(var(--spacing) * 12);
|
|
38
|
+
--mobile-nav-link-line-height: 1.05;
|
|
39
|
+
--footer-bg: var(--color-chrome-surface-default);
|
|
40
|
+
--footer-text: var(--color-fg-inverse);
|
|
41
|
+
--footer-muted: var(--color-fg-inverse-muted);
|
|
42
|
+
--footer-border: var(--color-edge-inverse);
|
|
43
|
+
--footer-link-hover: var(--color-accent-secondary);
|
|
44
|
+
--footer-grid-columns: 1fr 2fr;
|
|
45
|
+
--color-callout-icon-bg-light: color-mix(in srgb, var(--color-accent-primary) 8%, var(--color-white));
|
|
46
|
+
--color-callout-icon-bg-dark: color-mix(in srgb, var(--color-accent-primary) 18%, transparent);
|
|
47
|
+
--color-callout-icon-bg: var(--color-callout-icon-bg-light);
|
|
48
|
+
--callout-icon-color: var(--color-accent-primary);
|
|
49
|
+
--max-width-rich-text: var(--max-width-container-narrow);
|
|
50
|
+
--max-width-rich-text-wide: calc(var(--spacing) * 216);
|
|
51
|
+
--rich-text-flow-space: calc(var(--spacing) * 6);
|
|
52
|
+
--rich-text-heading-space: calc(var(--spacing) * 10);
|
|
53
|
+
--rich-text-link-decoration-thickness: 0.09em;
|
|
54
|
+
--rich-text-link-underline-offset: 0.18em;
|
|
55
|
+
--rich-text-list-indent: 1.4em;
|
|
56
|
+
--rich-text-blockquote-border-width: calc(var(--spacing) * 1.2);
|
|
57
|
+
--rich-text-inline-code-padding: 0.08em 0.32em;
|
|
58
|
+
--rich-text-quote-border: var(--color-accent-primary);
|
|
59
|
+
--rich-text-quote-bg: color-mix(in srgb, var(--color-accent-primary) 6%, var(--color-white));
|
|
60
|
+
--rich-text-quote-bg-dark: color-mix(in srgb, var(--color-accent-primary) 16%, transparent);
|
|
61
|
+
--rich-text-quote-bg-default: var(--rich-text-quote-bg);
|
|
62
|
+
--rich-text-inline-code-bg: color-mix(in srgb, var(--color-fg-base-muted) 8%, var(--color-white));
|
|
63
|
+
--rich-text-inline-code-bg-dark: color-mix(in srgb, var(--color-white) 12%, transparent);
|
|
64
|
+
--rich-text-inline-code-bg-default: var(--rich-text-inline-code-bg);
|
|
65
|
+
--rich-text-inline-code-text: var(--color-fg);
|
|
66
|
+
--max-width-cta: calc(var(--spacing) * 304);
|
|
67
|
+
--z-header: 50;
|
|
68
|
+
--z-overlay: 60;
|
|
69
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
--shadow-card: 0 calc(var(--spacing) * 5.5) calc(var(--spacing) * 15) color-mix(in srgb, var(--color-black) 8%, transparent);
|
|
3
|
+
--shadow-card-dark: 0 calc(var(--spacing) * 5.5) calc(var(--spacing) * 15) color-mix(in srgb, var(--color-black) 36%, transparent);
|
|
4
|
+
--shadow-card-default: var(--shadow-card);
|
|
5
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
--max-width-container: calc(var(--spacing) * 352);
|
|
3
|
+
--max-width-container-narrow: calc(var(--spacing) * 208);
|
|
4
|
+
--spacing-container: clamp(calc(var(--spacing) * 4), 4vw, calc(var(--spacing) * 11));
|
|
5
|
+
--spacing-section-y: clamp(calc(var(--spacing) * 18), 7vw, calc(var(--spacing) * 32));
|
|
6
|
+
--height-header: calc(var(--spacing) * 20);
|
|
7
|
+
--spacing-footer-y: clamp(calc(var(--spacing) * 18), 8vw, calc(var(--spacing) * 32));
|
|
8
|
+
--height-hero-min: clamp(calc(var(--spacing) * 144), 68vw, calc(var(--spacing) * 192));
|
|
9
|
+
--width-hero-content: calc(var(--spacing) * 180);
|
|
10
|
+
--spacing-card: clamp(calc(var(--spacing) * 5.5), 2vw, calc(var(--spacing) * 8));
|
|
11
|
+
--spacing-cta-y: clamp(calc(var(--spacing) * 17), 8vw, calc(var(--spacing) * 29));
|
|
12
|
+
--spacing-cta-x: clamp(calc(var(--spacing) * 6), 5vw, calc(var(--spacing) * 20));
|
|
13
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
--font-family-base: "Inter", "Helvetica Neue", Arial, sans-serif;
|
|
3
|
+
--font-family-heading: "Inter", "Helvetica Neue", Arial, sans-serif;
|
|
4
|
+
--font-weight-regular: 400;
|
|
5
|
+
--font-weight-medium: 560;
|
|
6
|
+
--font-weight-semibold: 650;
|
|
7
|
+
--font-weight-bold: 760;
|
|
8
|
+
--text-size-brand: 1.5rem;
|
|
9
|
+
--text-size-eyebrow: 0.8125rem;
|
|
10
|
+
--text-size-caption: 0.8125rem;
|
|
11
|
+
--text-size-body-small: 0.9375rem;
|
|
12
|
+
--text-size-body: 1.0625rem;
|
|
13
|
+
--text-size-body-large: 1.25rem;
|
|
14
|
+
--text-size-h1-mobile: 3.25rem;
|
|
15
|
+
--text-size-h1: 5rem;
|
|
16
|
+
--text-size-h2-mobile: 2.5rem;
|
|
17
|
+
--text-size-h2: 3.25rem;
|
|
18
|
+
--text-size-h3: 1.75rem;
|
|
19
|
+
--leading-tight: 0.96;
|
|
20
|
+
--leading-heading: 1.08;
|
|
21
|
+
--leading-body: 1.5;
|
|
22
|
+
--leading-relaxed: 1.68;
|
|
23
|
+
--letter-spacing-label: 0;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="astro/client" />
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { KernelPageBlock } from '@gradial/aci/content';
|
|
2
|
+
|
|
3
|
+
export interface AtomicBlockStoryFixture {
|
|
4
|
+
id: string;
|
|
5
|
+
storybookId: string;
|
|
6
|
+
title: string;
|
|
7
|
+
block: KernelPageBlock;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const atomicBlockStoryFixtures: AtomicBlockStoryFixture[] = [
|
|
11
|
+
{
|
|
12
|
+
id: 'button-variants',
|
|
13
|
+
storybookId: 'core-atomic-blocks-button--variants',
|
|
14
|
+
title: 'Button / All Variants',
|
|
15
|
+
block: {
|
|
16
|
+
id: 'fixture-button-variants',
|
|
17
|
+
component: 'container',
|
|
18
|
+
props: {
|
|
19
|
+
theme: 'auto',
|
|
20
|
+
blocks: [
|
|
21
|
+
{ id: 'btn-primary', component: 'button', props: { label: 'Primary button', href: '#', variant: 'primary' } },
|
|
22
|
+
{ id: 'btn-secondary', component: 'button', props: { label: 'Secondary button', href: '#', variant: 'secondary' } },
|
|
23
|
+
{ id: 'btn-tertiary', component: 'button', props: { label: 'Tertiary button', href: '#', variant: 'tertiary' } },
|
|
24
|
+
{ id: 'btn-icon-before', component: 'button', props: { label: 'Icon before', href: '#', variant: 'primary', icon: 'arrow-right', iconPosition: 'before' } },
|
|
25
|
+
{ id: 'btn-icon-after', component: 'button', props: { label: 'Icon after', href: '#', variant: 'secondary', icon: 'arrow-right', iconPosition: 'after' } },
|
|
26
|
+
{ id: 'btn-new-window', component: 'button', props: { label: 'Opens in new tab', href: 'https://example.com', variant: 'primary', newWindow: true, icon: 'arrow-right', iconPosition: 'after' } }
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
export const atomicBlockVisualStoryIds = atomicBlockStoryFixtures.map((fixture) => fixture.storybookId);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { KernelPageBlock } from '@gradial/aci/content';
|
|
2
|
+
|
|
3
|
+
export interface CompositionStoryFixture {
|
|
4
|
+
id: string;
|
|
5
|
+
storybookId: string;
|
|
6
|
+
title: string;
|
|
7
|
+
direction?: 'ltr' | 'rtl';
|
|
8
|
+
block: KernelPageBlock;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const compositionStoryFixtures: CompositionStoryFixture[] = [
|
|
12
|
+
{
|
|
13
|
+
id: 'container-buttons',
|
|
14
|
+
storybookId: 'composition-container--buttons',
|
|
15
|
+
title: 'Container / Buttons',
|
|
16
|
+
block: {
|
|
17
|
+
id: 'fixture-container-buttons',
|
|
18
|
+
component: 'container',
|
|
19
|
+
props: {
|
|
20
|
+
theme: 'auto',
|
|
21
|
+
className: 'space-y-4',
|
|
22
|
+
blocks: [
|
|
23
|
+
{ id: 'btn-1', component: 'button', props: { label: 'Primary action', href: '#', variant: 'primary', icon: 'arrow_forward', iconPosition: 'after' } },
|
|
24
|
+
{ id: 'btn-2', component: 'button', props: { label: 'Secondary action', href: '#', variant: 'secondary' } }
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
export const compositionVisualStoryIds = compositionStoryFixtures.map((fixture) => fixture.storybookId);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export {
|
|
2
|
+
compositionStoryFixtures,
|
|
3
|
+
compositionVisualStoryIds,
|
|
4
|
+
type CompositionStoryFixture
|
|
5
|
+
} from './composition';
|
|
6
|
+
|
|
7
|
+
export {
|
|
8
|
+
sectionStoryFixtures,
|
|
9
|
+
sectionVisualStoryIds,
|
|
10
|
+
type SectionStoryFixture
|
|
11
|
+
} from './sections';
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
atomicBlockStoryFixtures,
|
|
15
|
+
atomicBlockVisualStoryIds,
|
|
16
|
+
type AtomicBlockStoryFixture
|
|
17
|
+
} from './atomicBlocks';
|