Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci-website-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
- name: Typecheck website
run: pnpm --filter @comfyorg/website typecheck

- name: Run website unit tests
run: pnpm --filter @comfyorg/website test:unit

- name: Build website
env:
WEBSITE_ASHBY_API_KEY: ${{ secrets.WEBSITE_ASHBY_API_KEY }}
Expand Down
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ When working from a TDD or design doc, record its tradeoffs, alternatives consid
- NEVER use the `dark:` tailwind variant
- Instead use a semantic value from the `style.css` theme
- e.g. `bg-node-component-surface`
- NEVER write out a design-system value — consume the token
- `packages/design-system` is the single source of truth for every token it ships: colors, fonts, icons, spacing, radii, shadows, text sizes
- Read the value from the package — a Tailwind class, `var(--token)`, or `readDesignToken()` where an API needs a concrete string. A literal that merely equals the token today still drifts the day the token changes, and it is invisible when it does
- See [Consuming tokens](packages/design-system/README.md#consuming-tokens) for the per-context table, the SVG `fill` caveat, and the two cases where a literal is unavoidable
- NEVER use `:class="[]"` to merge class names
- Always use `import { cn } from '@comfyorg/tailwind-utils'`
- e.g. `<div :class="cn('text-node-component-header-icon', hasError && 'text-danger')" />`
Expand Down
48 changes: 24 additions & 24 deletions apps/website/src/components/common/HubspotFormEmbed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,58 +18,58 @@ const HUBSPOT_SCRIPT_SRC = `https://js-${HUBSPOT_REGION}.hsforms.net/forms/embed
const hasEmbedLoadError = ref(false)

const hubspotFormStyles: Record<`--${string}`, string> = {
'--hsf-global__font-family': "'PP Formula', sans-serif",
'--hsf-global__color': '#c2bfb9',
'--hsf-background__background-color': '#211927',
'--hsf-global__font-family': 'var(--font-formula)',
'--hsf-global__color': 'var(--color-primary-comfy-canvas)',
'--hsf-background__background-color': 'var(--color-primary-comfy-ink)',
'--hsf-background__border-width': '0',
'--hsf-background__padding': '0',
'--hsf-button__font-family': "'PP Formula', sans-serif",
'--hsf-button__font-family': 'var(--font-formula)',
'--hsf-button__font-size': '14px',
'--hsf-button__color': '#211927',
'--hsf-button__background-color': '#f2ff59',
'--hsf-button__color': 'var(--color-primary-comfy-ink)',
'--hsf-button__background-color': 'var(--color-primary-comfy-yellow)',
'--hsf-button__border-radius': '16px',
'--hsf-button__padding': '10px 24px',
'--hsf-richtext__font-family': "'PP Formula', sans-serif",
'--hsf-richtext__color': '#c2bfb9',
'--hsf-heading__font-family': "'PP Formula', sans-serif",
'--hsf-heading__color': '#c2bfb9',
'--hsf-field-label__font-family': "'PP Formula', sans-serif",
'--hsf-richtext__font-family': 'var(--font-formula)',
'--hsf-richtext__color': 'var(--color-primary-comfy-canvas)',
'--hsf-heading__font-family': 'var(--font-formula)',
'--hsf-heading__color': 'var(--color-primary-comfy-canvas)',
'--hsf-field-label__font-family': 'var(--font-formula)',
'--hsf-field-label__font-size': '12px',
'--hsf-field-label__color': '#c2bfb9',
'--hsf-field-description__font-family': "'PP Formula', sans-serif",
'--hsf-field-description__color': '#c2bfb9',
'--hsf-field-footer__font-family': "'PP Formula', sans-serif",
'--hsf-field-footer__color': '#c2bfb9',
'--hsf-field-input__font-family': "'PP Formula', sans-serif",
'--hsf-field-input__color': '#c2bfb9',
'--hsf-field-label__color': 'var(--color-primary-comfy-canvas)',
'--hsf-field-description__font-family': 'var(--font-formula)',
'--hsf-field-description__color': 'var(--color-primary-comfy-canvas)',
'--hsf-field-footer__font-family': 'var(--font-formula)',
'--hsf-field-footer__color': 'var(--color-primary-comfy-canvas)',
'--hsf-field-input__font-family': 'var(--font-formula)',
'--hsf-field-input__color': 'var(--color-primary-comfy-canvas)',
'--hsf-field-input__background-color': '#2a2230',
'--hsf-field-input__placeholder-color': '#585159',
'--hsf-field-input__border-color': '#3b3539',
'--hsf-field-input__border-width': '1px',
'--hsf-field-input__border-style': 'solid',
'--hsf-field-input__border-radius': '16px',
'--hsf-field-input__padding': '16px',
'--hsf-field-textarea__font-family': "'PP Formula', sans-serif",
'--hsf-field-textarea__color': '#c2bfb9',
'--hsf-field-textarea__font-family': 'var(--font-formula)',
'--hsf-field-textarea__color': 'var(--color-primary-comfy-canvas)',
'--hsf-field-textarea__background-color': '#2a2230',
'--hsf-field-textarea__placeholder-color': '#585159',
'--hsf-field-textarea__border-color': '#3b3539',
'--hsf-field-textarea__border-width': '1px',
'--hsf-field-textarea__border-style': 'solid',
'--hsf-field-textarea__border-radius': '16px',
'--hsf-field-textarea__padding': '16px',
'--hsf-field-checkbox__color': '#c2bfb9',
'--hsf-field-checkbox__color': 'var(--color-primary-comfy-canvas)',
'--hsf-field-checkbox__background-color': '#2a2230',
'--hsf-field-checkbox__border-color': '#464147',
'--hsf-field-checkbox__border-width': '1px',
'--hsf-field-checkbox__border-style': 'solid',
'--hsf-field-radio__color': '#c2bfb9',
'--hsf-field-radio__color': 'var(--color-primary-comfy-canvas)',
'--hsf-field-radio__background-color': '#2a2230',
'--hsf-field-radio__border-color': '#464147',
'--hsf-field-radio__border-width': '1px',
'--hsf-field-radio__border-style': 'solid',
'--hsf-erroralert__font-family': "'PP Formula', sans-serif",
'--hsf-infoalert__font-family': "'PP Formula', sans-serif"
'--hsf-erroralert__font-family': 'var(--font-formula)',
'--hsf-infoalert__font-family': 'var(--font-formula)'
}

onMounted(() => {
Expand Down
Loading
Loading