Repository navigation
0.12.0: Import & Modernize, and 90 layouts - #22
Merged
Merged
Conversation
- Reads element lists, copied sections and template exports with their global classes; merges source classes and element styles per element. - Colors become design tokens by role (section/card/button backgrounds, headings, text, borders, shadows) and background context; the source's brand colors are detected and map to primary/accent; alpha survives via color-mix. - Font sizes (px, rem at 62.5%, clamp), spacing and radii land on the token scale; Automatic CSS / Core Framework variables are mapped, unknown ones reported; fonts come from the kit. - Each element's styles move into one deduplicated bs-<block>-<role> class; custom CSS is rewritten to the class and its colors mapped. - Adds missing mobile rules (grid columns, stacking rows, full-width button rows, fixed widths as maximums, section gutter and rhythm). - Report of every change and warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01APhfigKq7DMdgedQ4Pr9VK
- New "Modernize" tab: paste or import Bricks JSON (or load BricksSnap's own example), brand kit on the left, before/after/side-by-side preview at desktop, tablet and phone, a report of every change (colors, font sizes, spacing, classes, mobile rules, warnings, quality checks) and export: download, copy for Ctrl+V, Open in Staging with the design system. The class prefix is editable. - bricks_modernize_template MCP tool with the same engine. - Engine: light tinted borders stay neutral, icon color and size move into the class, the prefix prefers the section's own label, brand detection ignores tints and counts icon colors. - KitControls can hide the business profile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01APhfigKq7DMdgedQ4Pr9VK
New layouts for every section type, built from common patterns on the existing classes and brand kit: - Header: centred logo, floating bar, dark - Hero: bento tiles, centred with numbers, statement with wide image, image left with social proof, with enquiry form - Services: numbered, photo cards, tabs; benefits: cards, image in the middle, dark with rules; steps: vertical, centred numbers - Numbers, about, timeline, team and portfolio: cards, splits, collage, statement, horizontal timeline, photo cards, list, bento, project index - Pricing: switch (Bricks tabs), plans as rows, price tiles - Reviews: quote wall, one featured quote, large photo - FAQ: accordion (Bricks accordion with FAQ schema), cards - CTA, contact, logos, blog, gallery, footer, login, 404, coming soon: background image, rules, photo card, contact cards, centred form, logo tiles, marquee, featured and list blog, masonry and bento gallery, big name and CTA footers, split screens Tabs and accordion use Bricks' nested elements with the _hidden classes Bricks' script expects (tab-title, tab-pane, accordion-content-wrapper); pane classes never set display. The preview renders them like Bricks (first tab open), and the validator accepts _hidden. Tests cover all layouts for the one-class-per-property rule, check that no class is defined twice and that tabs and accordion have Bricks' structure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01APhfigKq7DMdgedQ4Pr9VK
- docs/MODERNIZE.md: what Modernize changes, the mobile rules, how to use it, limits, the MCP tool, and to import only JSON you may use - Release notes 0.12.0 and changelog - Studio, remote library (206 templates), MCP tool lists (eleven tools) - Roadmap: v0.12, and "Open in BricksSnap" cooperation and a community gallery with an explicit open license for later Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01APhfigKq7DMdgedQ4Pr9VK
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 0.12.0. See
docs/RELEASE-0.12.0.md.Import & Modernize
bs-<block>-<role>classes;bricks_modernize_template, so the server has eleven tools.90 layouts (was 40)
_hiddenclasses Bricks' script expects._hidden.Docs
docs/MODERNIZE.md.Verified
tab-title,tab-pane,accordion-title-wrapper,accordion-content-wrapperandbrx-open, as the layouts do;render-elementsoutputs_hiddenclasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01APhfigKq7DMdgedQ4Pr9VK
Generated by Claude Code