S2 Framework Lite
Last updated
Last updated
The S2 Framework is lightweight and optimized for speed, SEO, and accessibility. However, if you are looking for an even lighter version, there are options:
S2 Lite: Keep the essential parts we recommend.
S2 for Templates: Remove everything except the Style Guide.
If you want to minimize the footprint of the S2 Framework, we generally recommend slimming down the style guide after you have completed most of your website design. The handcrafted styles and layouts in the Framework are always handy while you work on your project. 😊
Follow these steps to create a Lite version of our recommendation:
Delete these pages:
"Filter UI" page
"S2 Components" page
"For Drafting" page
Make the "Home" page your homepage:
Remove DELETE-ME
from the Home page.
As the cover page of the style guide will become "Old Home", you can also delete that page.
Go to the "Styles" pages:
Remove Filter UI, and S2 Components nav links. You can also remove the color mode switch from the style guide's main navigation.
Add the cc-last
combo class to the last nav link.
Remove the "Mode Utilities" section.
Go to the "UI Elements" page:
Remove the whole "Mode Switching" section.
Remove the section that contains animation="pulse"
and animation="pulse-bg"
.
Go to the "Layouts" page, and remove the Grid Layout Utilities section.
Open the Global-Code component inside page
div, and remove these code embed elements:
js
02_css-animations
03_modes
You may want to rename 04_custom
into 02_custom
. This is optional.
Go to the Variables panel, and remove Dark mode from the Colors variable collection.
Clean up all unused interactions.
Clean up all unused styles.
Go to Site settings, then Custom code, and remove all code from the global Head code and Footer code. Remember to click "Save".