Claude Platform Docs

Link your Claude organization button

Add the button that sends a customer from your product to Claude’s approval page to start Linked billing.

This page lists the HTML, CSS, colors, sizes, and logo of the Link your Claude organization button for Linked billing.

Link your Claude organization button, light and dark, with the Claude logo before its words

The button in light and dark

HTML and CSS

The only parts of the button’s look that you may change are its size and whether you use the light or the dark button. The font, the colors, and the logo’s size compared with the words stay as Colors and sizes shows them.

The button’s CSS and HTML fit into your page like this:

  • CSS: The <style> block from Button CSS goes in your page’s <head>. If your Content Security Policy doesn’t allow inline styles, its rules go in your style sheet instead.
  • HTML: The <a> element from Sample HTML goes where the button appears. It holds the logo, so the button needs no Anthropic host in your Content Security Policy.
  • Route: The element’s href, /claude/billing/link in the sample, points to your back end’s route that starts the approval.
  • Dark button: The claude-button-dark class, added beside claude-button on the element, gives the dark button.
  • Size: To resize the button, change only the font-size line in Button CSS, not the size inside the font line.

For how you may use the Claude name and logo, see the Linked Billing Beta Terms.

If your route needs a form submission, such as a POST, use a <button type="submit" class="claude-button"> inside a form in place of the <a> element. It holds the same logo and words. The form’s action is your route, and the same styles apply.

A rule in your own style sheet, such as one for .nav a, can override the button’s styles. The button then doesn’t match the picture and the tables in Colors and sizes. To keep its design, write such a rule so that it skips elements with the claude-button class.

Colors and sizes

PartLight buttonDark button
Background#FFFFFF#141413
Text#141413#FAF9F5
Border#87867F#73726C
Background on hover#F5F4ED#262624
Logo#D97757#D97757

At the default font size of 14 pixels, on a page whose root font size is 16 pixels, the button has these sizes:

PartSize
Height40 pixels
Padding8 pixels above and below, 12 pixels at the sides
Corner radius8 pixels
Border1 pixel
Logo20 by 20 pixels
Gap between the logo and the words10 pixels
Text14 pixels, weight 500, in the system’s sans-serif font
Focus outline2 pixels in the text color, 2 pixels out from the button, with a 2-pixel ring in the fill color around the button

Every size except the border and the focus outline scales with the button’s font size.

For a button built without HTML, such as in a mobile or desktop app, the logo is the following file, claude-logo.svg. That button takes the colors and sizes in Colors and sizes, scaled together as that section describes if you change its size. As in the sample HTML, hide the logo from screen readers in that button too, because the words already name it.

Next steps

The approval page, spend caps, and emails that your customers see, so that you can support them

Add test users, publish your app, and change or delete it

Was this page helpful?