-
Notifications
You must be signed in to change notification settings - Fork 46
Build a One Off Snowflake
Create something new that's not offered by the Bolt Design System, and it is supposed to be used for an edge case or one particular page. Keep the following in mind when you are building a snowflake.
This goes without saying but it is always good to double check first on https://boltdesignsystem.com/.
If you think there is reusability, stop right now. It is not a snowflake, you would want to build a new component.
Since a snowflake does not and should not belong to Bolt, do not use the .c-bolt
prefix. You can prefix it with something like .c-base
. See full list of prefixes and namespaces.
Bolt settings and tools consist of many common base styles, such as:
- margin
- padding
- breakpoints
- colors
- typography
- spacing
- shadows
- z-index
Even though you are building a snowflake, you can still use these settings (SCSS and CSS variables) and tools (SCSS functions and mixins) from Bolt. This way, whatever you build still feels consistent with the design system. Another benefit would be internationalization support, take Japanese for example, Bolt has specific leading, font-size, and spacing system for it. If you build with Bolt settings and tools, everything will translate well visually. Settings and tools are located in /packages/core/styles
.
I hope I've said it enough times that you'd get the point.
Submit your code and demo to the Bolt team. Create a formal JIRA ticket to request this to be added as an official Bolt component.
- Basic A11y Checklist
- Get started with Bolt locally
- Bolt Specific Standards and Conventions
- How to save SVG graphics and SVG icons
- Upgrade to minor release
- Upgrade to 4.x
- Upgrade to 5.x
- Release Workflow
- VS Code Configuration
- Bolt Doc Writing Guide
- Prefixing Custom Attributes
- Standard Props for Passing Content in Twig
- Building Websites with Bolt in Drupal
- From Design Mockup to Code
- Override with Utility Classes