FIRST CH TOOLS / Design / 81 WEB STYLE PROMPT
Site Style to AI Brand Guide
Paste the HTML and CSS of your own site and this tool measures what actually renders — colours by role, the type scale, line height, Japanese fonts, spacing and corner radius — and turns it into one brand guide you can hand to Claude Code, Cursor or another AI coding assistant. The guide contains only values and structure: none of the page's text, images or copy. No URL is ever fetched; everything runs inside this browser.
What you paste is only measured inside this browser — never uploaded or stored. Scripts, images, external CSS and web fonts are not loaded.
Colours by role
Type scale
Spacing (common values)
Corner radius
Brand guide for AI
How to Use
- Paste your page sourceOpen your site, choose "View page source", copy everything and paste it in — or select the HTML file. For sites that build the page with JavaScript, open DevTools, right-click <html> in Elements and choose "Copy outerHTML" to measure the rendered page instead.
- MeasureClick "Measure and build the guide" to see the colours, type sizes, spacing and radius along with the guide. Stylesheets loaded with <link> are not fetched; paste their contents into "External CSS" to include them.
- Use the guideCopy or save it and give it to Claude Code, Cursor or any other AI assistant. You can edit any value in the text before you hand it over.
About This Tool
Ask an AI to build a screen and it tends to bring in a blue your site never uses, a font size just slightly bigger than body text and spacing that matches nothing else. Give it your existing colours and type rules up front and the result fits in with the rest of the site. This tool writes your own site's brand guide out for an AI. It renders the pasted HTML off-screen inside your browser, reads the values each element actually ends up with (getComputedStyle) and summarises (1) colours by role (background, body text, headings, secondary text, primary, links, surfaces and borders, with contrast ratios), (2) the type scale (px, rem, weight, line height, where each size is used and its size at phone width), (3) fonts (whether a Japanese font is specified, Google Fonts families and weights, line height and letter spacing for body and headings, and Japanese settings such as palt and word-break: keep-all), (4) spacing (whether values follow a 4px or 8px grid, section padding, gaps), (5) corner radius and shadows, (6) how buttons, inputs and links look and (7) the max content width, breakpoints and page structure.
The guide only contains numbers, colour codes, font names and element names — never the page's text, headings, images or class names. CSS custom properties already defined on :root are listed with their names and values. Similar colours (within an RGB distance of 12) are merged; text colours are weighted by character count and surface colours by area to decide their role. The type scale calls the body size base, the steps above it lg, xl… and the steps below sm, xs…. While measuring, scripts, images, external CSS and web fonts are not loaded (the page is shown in a frame that blocks all network requests), so fonts are read from the declared values rather than the glyphs that would load.
There is no option to fetch a page by URL. The HTML and CSS you paste are only measured inside this browser — never uploaded or stored. You can paste up to 3 MB in total, and up to 6,000 elements are measured. To check how readable the measured colours are, use the Contrast Checker; to make font sizes scale with the viewport, use the CSS clamp() Calculator; for a px-to-rem table, use PX ⇄ REM / EM.
Other Tools
- 01Batch Image → WebP ConverterWebP Converter
- 02White Background RemoverWhite BG Remover
- 03WCAG Contrast CheckerContrast Checker
- 04Character CounterCharacter Counter
- 05llms.txt Generatorllms.txt Generator
- 06JSON-LD GeneratorJSON-LD Generator
- 07Markdown → PDFMD → PDF
- 08OGP Meta Tag WizardOGP Wizard
- 09Favicon GeneratorFavicon Generator
- 10TikTok PublisherTikTok Publisher
- 11Encoding & Line Ending ConverterEncoding Converter
- 12Batch Image → AVIF ConverterAVIF Converter
- 13Test Data GeneratorTest Data Generator
- 14Marp Markdown → SlidesMarp Slides
- 15Text & Code Diff CheckerDiff Checker
- 16Cron Expression ExplainerCron Explainer
- 17Base64 & Data URI EncoderBase64 & Data URI
- 18URL Parameter Editor & UTM BuilderURL Parameters
- 19HTML Entity Escape & UnescapeHTML Escape
- 20JSON ⇄ YAML ConverterJSON ⇄ YAML
- 21PX ⇄ REM / EM ConverterPX ⇄ REM / EM 単位変換
- 22Color Converter & AlphaColorコード変換&アルファ透過
- 23MD5 / SHA-256 Hash Generatorハッシュ生成
- 24JWT Decoder & Expiry CheckerJWTデコーダー&有効期限チェッカー
- 25User-Agent ParserUser-Agent解析&デバイス判定
- 26UUID & ULID GeneratorUUID (v4) & ULID 一括生成
- 27Aspect Ratio Calculatorアスペクト比計算&サイズ算出
- 28Markdown Table & CSV/TSV ConverterMarkdownテーブル整形&CSV/TSV変換
- 29SQL Query FormatterSQLクエリフォーマッター&整形
- 30QR Code GeneratorQR Code Generator
- 31Regex Tester正規表現テスター
- 32Unix Timestamp ConverterUNIXタイムスタンプ⇄日時変換
- 33New Tab Memo新規タブメモ帳
- 34Image Resizer & Cropper画像リサイズ&クロップ
- 35EXIF Viewer & RemoverEXIF情報の確認&除去
- 36robots.txt Generatorrobots.txt ジェネレーター
- 37Password Generator安全なパスワード生成
- 38Case Converter文字列ケース変換
- 39CSV/TSV ⇄ JSON ConverterCSV/TSV ⇄ JSON 相互変換
- 40PDF Merge, Split & ExtractPDF結合・分割・ページ抽出
- 41Full-width ⇄ Half-width Converter全角⇄半角変換&テキストクリーナー
- 42X (Twitter) Post CounterX(Twitter)投稿の文字ウェイト計算
- 43CSS clamp() Fluid Typography CalculatorCSS clamp() 計算機
- 44CSS Gradient GeneratorCSSグラデーションジェネレーター
- 45Image Colour Palette Extractor画像からカラーパレット抽出
- 46QR Code ReaderQRコード読み取り
- 47SVG Optimizer & Data URISVG最適化&data URI化
- 48Redirect Generatorリダイレクトルール ジェネレーター
- 49IP / CIDR CalculatorIPアドレス・CIDR計算機
- 50ICS Calendar Event GeneratorICS Generator
- 51cubic-bezier Easing Preview & ComparisonEasing Preview
- 52CSS box-shadow Generatorbox-shadow ジェネレーター
- 53Japanese Dummy Text Generator和文ダミーテキスト生成
- 54Social Media Image ResizerSNS画像サイズ一括書き出し
- 55Time Zone Converter & World Clockタイムゾーン変換・世界時計
- 56Date & Business Day Calculator日数・営業日計算
- 57HTML → MarkdownHTML→Markdown変換
- 58HEIC to JPEG/PNG ConverterHEIC Converter
- 59Print Size & DPI Calculator印刷サイズ・DPI計算機
- 60Color Blindness Simulator色覚シミュレーター
- 61SERP Preview & Meta Tag Length CheckerSERPプレビュー&メタタグ文字数チェック
- 62Flexbox & CSS Grid GeneratorFlexbox / CSS Grid ジェネレーター
- 63Text Line Toolsテキスト行操作ツール
- 64Screenshot Frame & Background Makerスクリーンショット枠装飾
- 65Japanese Era ⇄ Western Calendar Converter和暦 ⇄ 西暦変換
- 66URL Slug Generator (Japanese → Romaji)URLスラッグ生成(日本語→ローマ字)
- 67htpasswd Generatorhtpasswd ジェネレーター
- 68OGP Image GeneratorOGP画像ジェネレーター
- 69Stamp Shape Generatorスタンプ形ジェネレーター
- 70Stay Awakeスリープ防止
- 71Screen Recorder with Click Auto-Zoom画面録画+クリック自動ズーム
- 723D Device Mockup Generator3Dデバイスモックアップジェネレーター
- 73OpenAPI Docs & TS Types GeneratorOpenAPI→日本語ドキュメント&TS型定義
- 74Screen Review Board画面レビューボード
- 75AI Decision JournalAI活用案件の判断ログメモ
- 76Card Binder Plannerカードバインダー配置プランナー
- 77e-Stat CSV to Charte-Stat CSV かんたんグラフ化
- 78FAQ Schema (JSON-LD) & Markdown GeneratorFAQ構造化データ(JSON-LD)&Markdown ジェネレーター
- 79Code to Imageコード画像化
- 80Wiki Duplicate, Orphan & Term Checker社内文書の重複・孤立・表記ゆれチェッカー